Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TestSwift`top_level_code at main.swift:
- 0x100179ae0: pushq %rbp
- 0x100179ae1: movq %rsp, %rbp
- 0x100179ae4: subq $0x1f0, %rsp
- 0x100179aeb: movq $0x0, -0x18(%rbp)
- 0x100179af3: movq $0x0, -0x20(%rbp)
- 0x100179afb: movq $0x0, -0x10(%rbp)
- 0x100179b03: movb $0x1, -0x8(%rbp)
- 0x100179b07: movq -0x10(%rbp), %rax
- 0x100179b0b: movq -0x20(%rbp), %rcx
- 0x100179b0f: movq -0x18(%rbp), %rdx
- 0x100179b13: movq %rdx, 0x60096(%rip) ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 8
- 0x100179b1a: movq %rcx, 0x60087(%rip) ; TestSwift.canBeNil : Swift.Optional<Swift.String>
- 0x100179b21: movq %rax, 0x60090(%rip) ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 16
- 0x100179b28: movb $0x1, 0x60091(%rip) ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 23
- 0x100179b2f: leaq 0x31baa(%rip), %rdi ; "line 13"
- 0x100179b36: movl $0x7, %esi
- 0x100179b3b: movl $0x1, %edx
- 0x100179b40: callq 0x100016670 ; Swift.String.init (Swift.String.Type)(_builtinStringLiteral : Builtin.RawPointer, byteSize : Builtin.Word, isASCII : Builtin.Int1) -> Swift.String
- 0x100179b45: movq %rax, -0x38(%rbp)
- 0x100179b49: movq %rdx, -0x30(%rbp)
- 0x100179b4d: movq %rcx, -0x28(%rbp)
- 0x100179b51: leaq 0x50358(%rip), %rax ; direct type metadata for Swift.String
- 0x100179b58: addq $0x8, %rax
- 0x100179b5c: leaq -0x38(%rbp), %rdi
- 0x100179b60: movq %rax, %rsi
- 0x100179b63: callq 0x1000b8650 ; Swift.println <A>(A) -> ()
- 0x100179b68: movq 0x60049(%rip), %rax ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 16
- 0x100179b6f: movq 0x6003a(%rip), %rcx ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 8
- 0x100179b76: movq 0x6002b(%rip), %rdx ; TestSwift.canBeNil : Swift.Optional<Swift.String>
- 0x100179b7d: movb 0x6003c(%rip), %r8b ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 24
- 0x100179b84: testb %r8b, %r8b
- 0x100179b87: movq %rax, -0x140(%rbp)
- 0x100179b8e: movq %rcx, -0x148(%rbp)
- 0x100179b95: movq %rdx, -0x150(%rbp)
- 0x100179b9c: movb %r8b, -0x151(%rbp)
- 0x100179ba3: jne 0x100179bb6 ; top_level_code + 214 at main.swift:5
- 0x100179ba5: jmp 0x100179ba7 ; top_level_code + 199 at main.swift:3
- 0x100179ba7: movq -0x140(%rbp), %rax
- 0x100179bae: movq %rax, %rdi
- 0x100179bb1: callq 0x1001a2fc0 ; swift_unknownRetain
- 0x100179bb6: movb -0x151(%rbp), %al
- 0x100179bbc: testb $0x1, %al
- 0x100179bbe: jne 0x100179bd1 ; top_level_code + 241 at main.swift:5
- 0x100179bc0: jmp 0x100179bc2 ; top_level_code + 226 at main.swift:5
- 0x100179bc2: movq -0x140(%rbp), %rax
- 0x100179bc9: movq %rax, %rdi
- 0x100179bcc: callq 0x1001a2fc0 ; swift_unknownRetain
- 0x100179bd1: leaq 0x502d8(%rip), %rax ; direct type metadata for Swift.String
- 0x100179bd8: addq $0x8, %rax
- 0x100179bde: leaq -0x58(%rbp), %rcx
- 0x100179be2: movq -0x150(%rbp), %rdx
- 0x100179be9: movq %rdx, -0x58(%rbp)
- 0x100179bed: movq -0x148(%rbp), %rsi
- 0x100179bf4: movq %rsi, -0x50(%rbp)
- 0x100179bf8: movq -0x140(%rbp), %rdi
- 0x100179bff: movq %rdi, -0x48(%rbp)
- 0x100179c03: movb -0x151(%rbp), %r8b
- 0x100179c0a: andb $0x1, %r8b
- 0x100179c0e: movb %r8b, -0x40(%rbp)
- 0x100179c12: movq %rcx, %rdi
- 0x100179c15: movq %rax, %rsi
- 0x100179c18: callq 0x100006ed0 ; Swift.!= infix <A>(Swift.Optional<A>, Swift._OptionalNilComparisonType) -> Swift.Bool
- 0x100179c1d: testb $0x1, %al
- 0x100179c1f: jne 0x100179c26 ; top_level_code + 326 at main.swift:12
- 0x100179c21: jmp 0x100179e2e ; top_level_code + 846 at main.swift:5
- 0x100179c26: movb -0x151(%rbp), %al
- 0x100179c2c: testb $0x1, %al
- 0x100179c2e: jne 0x100179c41 ; top_level_code + 353 at main.swift:12
- 0x100179c30: jmp 0x100179c32 ; top_level_code + 338 at main.swift:12
- 0x100179c32: movq -0x140(%rbp), %rax
- 0x100179c39: movq %rax, %rdi
- 0x100179c3c: callq 0x1001a2fc0 ; swift_unknownRetain
- 0x100179c41: movq -0x150(%rbp), %rax
- 0x100179c48: movq %rax, -0x120(%rbp)
- 0x100179c4f: movq -0x148(%rbp), %rcx
- 0x100179c56: movq %rcx, -0x118(%rbp)
- 0x100179c5d: movq -0x140(%rbp), %rdx
- 0x100179c64: movq %rdx, -0x110(%rbp)
- 0x100179c6b: movb -0x151(%rbp), %sil
- 0x100179c72: andb $0x1, %sil
- 0x100179c76: movb %sil, -0x108(%rbp)
- 0x100179c7d: movq -0x110(%rbp), %rdi
- 0x100179c84: movq -0x120(%rbp), %r8
- 0x100179c8b: movq -0x118(%rbp), %r9
- 0x100179c92: movb -0x108(%rbp), %sil
- 0x100179c99: testb %sil, %sil
- 0x100179c9c: movq %rdi, -0x160(%rbp)
- 0x100179ca3: movq %r8, -0x168(%rbp)
- 0x100179caa: movq %r9, -0x170(%rbp)
- 0x100179cb1: movb %sil, -0x171(%rbp)
- 0x100179cb8: je 0x100179cee ; top_level_code + 526 at main.swift:5
- 0x100179cba: jmp 0x100179cbc ; top_level_code + 476 at main.swift:5
- 0x100179cbc: movb -0x171(%rbp), %al
- 0x100179cc2: testb $0x1, %al
- 0x100179cc4: je 0x100179cee ; top_level_code + 526 at main.swift:5
- 0x100179cc6: jmp 0x100179cc8 ; top_level_code + 488 at main.swift:5
- 0x100179cc8: movq -0x168(%rbp), %rax
- 0x100179ccf: movq -0x160(%rbp), %rcx
- 0x100179cd6: orq %rcx, %rax
- 0x100179cd9: movq -0x170(%rbp), %rdx
- 0x100179ce0: orq %rdx, %rax
- 0x100179ce3: movq %rax, -0x180(%rbp)
- 0x100179cea: je 0x100179d1c ; top_level_code + 572 at main.swift:5
- 0x100179cec: jmp 0x100179cee ; top_level_code + 526 at main.swift:5
- 0x100179cee: movq -0x110(%rbp), %rdi
- 0x100179cf5: movb -0x151(%rbp), %al
- 0x100179cfb: testb $0x1, %al
- 0x100179cfd: movq %rdi, -0x188(%rbp)
- 0x100179d04: jne 0x100179d17 ; top_level_code + 567 at main.swift:5
- 0x100179d06: jmp 0x100179d08 ; top_level_code + 552 at main.swift:5
- 0x100179d08: movq -0x140(%rbp), %rax
- 0x100179d0f: movq %rax, %rdi
- 0x100179d12: callq 0x1001a3010 ; swift_unknownRelease
- 0x100179d17: jmp 0x100179dab ; top_level_code + 715 at main.swift:5
- 0x100179d1c: jmp 0x100179d1e ; top_level_code + 574 at main.swift:5
- 0x100179d1e: leaq 0x31a92(%rip), %rdi ; "fatal error"
- 0x100179d25: movabsq $0xb, %rsi
- 0x100179d2f: movabsq $0x2, %rax
- 0x100179d39: leaq 0x319e0(%rip), %rcx ; "unexpectedly found nil while unwrapping an Optional value"
- 0x100179d40: movabsq $0x39, %r8
- 0x100179d4a: leaq 0x31a0f(%rip), %rdx ; "/SourceCache/swiftlang/swiftlang-600.0.57.4/src/tools/swift/stdlib/core/Optional.swift"
- 0x100179d51: movabsq $0x56, %r9
- 0x100179d5b: movabsq $0x66, %r10
- 0x100179d65: movq %rdx, -0x190(%rbp)
- 0x100179d6c: movq %rax, %rdx
- 0x100179d6f: movq %r9, -0x198(%rbp)
- 0x100179d76: movq %rax, %r9
- 0x100179d79: movq -0x190(%rbp), %rax
- 0x100179d80: movq %rax, (%rsp)
- 0x100179d84: movq $0x56, 0x8(%rsp)
- 0x100179d8d: movq $0x2, 0x10(%rsp)
- 0x100179d96: movq $0x66, 0x18(%rsp)
- 0x100179d9f: movq %r10, -0x1a0(%rbp)
- 0x100179da6: callq 0x10003a400 ; Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt) -> ()
- 0x100179dab: leaq 0x31a1e(%rip), %rdi ; "canBeNil isn't nil"
- 0x100179db2: movabsq $0x12, %rsi
- 0x100179dbc: movl $0x1, %edx
- 0x100179dc1: movq -0x188(%rbp), %rax
- 0x100179dc8: movq %rdi, -0x1a8(%rbp)
- 0x100179dcf: movq %rax, %rdi
- 0x100179dd2: movq %rsi, -0x1b0(%rbp)
- 0x100179dd9: movl %edx, -0x1b4(%rbp)
- 0x100179ddf: callq 0x1001a3010 ; swift_unknownRelease
- 0x100179de4: movq -0x1a8(%rbp), %rdi
- 0x100179deb: movq -0x1b0(%rbp), %rsi
- 0x100179df2: movl -0x1b4(%rbp), %edx
- 0x100179df8: callq 0x100016670 ; Swift.String.init (Swift.String.Type)(_builtinStringLiteral : Builtin.RawPointer, byteSize : Builtin.Word, isASCII : Builtin.Int1) -> Swift.String
- 0x100179dfd: leaq 0x500ac(%rip), %rsi ; direct type metadata for Swift.String
- 0x100179e04: addq $0x8, %rsi
- 0x100179e0b: leaq -0x138(%rbp), %rdi
- 0x100179e12: movq %rax, -0x138(%rbp)
- 0x100179e19: movq %rdx, -0x130(%rbp)
- 0x100179e20: movq %rcx, -0x128(%rbp)
- 0x100179e27: callq 0x1000b8650 ; Swift.println <A>(A) -> ()
- 0x100179e2c: jmp 0x100179e4b ; top_level_code + 875 at main.swift:9
- 0x100179e2e: movb -0x151(%rbp), %al
- 0x100179e34: testb $0x1, %al
- 0x100179e36: jne 0x100179e49 ; top_level_code + 873 at main.swift:5
- 0x100179e38: jmp 0x100179e3a ; top_level_code + 858 at main.swift:5
- 0x100179e3a: movq -0x140(%rbp), %rax
- 0x100179e41: movq %rax, %rdi
- 0x100179e44: callq 0x1001a3010 ; swift_unknownRelease
- 0x100179e49: jmp 0x100179e4b ; top_level_code + 875 at main.swift:9
- 0x100179e4b: leaq 0x31896(%rip), %rdi ; "line 19"
- 0x100179e52: movl $0x7, %eax
- 0x100179e57: movl %eax, %esi
- 0x100179e59: movl $0x1, %edx
- 0x100179e5e: callq 0x100016670 ; Swift.String.init (Swift.String.Type)(_builtinStringLiteral : Builtin.RawPointer, byteSize : Builtin.Word, isASCII : Builtin.Int1) -> Swift.String
- 0x100179e63: movq %rax, -0x70(%rbp)
- 0x100179e67: movq %rdx, -0x68(%rbp)
- 0x100179e6b: movq %rcx, -0x60(%rbp)
- 0x100179e6f: leaq 0x5003a(%rip), %rax ; direct type metadata for Swift.String
- 0x100179e76: addq $0x8, %rax
- 0x100179e7a: leaq -0x70(%rbp), %rdi
- 0x100179e7e: movq %rax, %rsi
- 0x100179e81: callq 0x1000b8650 ; Swift.println <A>(A) -> ()
- 0x100179e86: leaq -0x90(%rbp), %rax
- 0x100179e8d: movb 0x5fd2c(%rip), %r8b ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 24
- 0x100179e94: testb %r8b, %r8b
- 0x100179e97: movq %rax, -0x1c0(%rbp)
- 0x100179e9e: jne 0x100179eec ; top_level_code + 1036 at main.swift:11
- 0x100179ea0: jmp 0x100179ea2 ; top_level_code + 962 at main.swift:11
- 0x100179ea2: movq 0x5fcff(%rip), %rax ; TestSwift.canBeNil : Swift.Optional<Swift.String>
- 0x100179ea9: movq -0x1c0(%rbp), %rcx
- 0x100179eb0: movq %rax, (%rcx)
- 0x100179eb3: movq 0x5fcf6(%rip), %rax ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 8
- 0x100179eba: movq %rax, 0x8(%rcx)
- 0x100179ebe: movq 0x5fcf3(%rip), %rax ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 16
- 0x100179ec5: movq %rax, %rdi
- 0x100179ec8: movq %rax, -0x1c8(%rbp)
- 0x100179ecf: callq 0x1001a2fc0 ; swift_unknownRetain
- 0x100179ed4: movq -0x1c0(%rbp), %rax
- 0x100179edb: movq -0x1c8(%rbp), %rcx
- 0x100179ee2: movq %rcx, 0x10(%rax)
- 0x100179ee6: movb $0x0, -0x78(%rbp)
- 0x100179eea: jmp 0x100179f22 ; top_level_code + 1090 at main.swift:11
- 0x100179eec: movq 0x5fcc5(%rip), %rax ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 16
- 0x100179ef3: movq 0x5fcae(%rip), %rcx ; TestSwift.canBeNil : Swift.Optional<Swift.String>
- 0x100179efa: movq 0x5fcaf(%rip), %rdx ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 8
- 0x100179f01: movb 0x5fcb8(%rip), %sil ; TestSwift.canBeNil : Swift.Optional<Swift.String> + 24
- 0x100179f08: movq %rdx, -0x88(%rbp)
- 0x100179f0f: movq %rcx, -0x90(%rbp)
- 0x100179f16: movq %rax, -0x80(%rbp)
- 0x100179f1a: andb $0x1, %sil
- 0x100179f1e: movb %sil, -0x78(%rbp)
- 0x100179f22: leaq 0x4ff87(%rip), %rax ; direct type metadata for Swift.String
- 0x100179f29: addq $0x8, %rax
- 0x100179f2f: leaq 0x46802(%rip), %rcx ; protocol witness table for Swift.String : Swift.Equatable
- 0x100179f36: leaq -0xb0(%rbp), %rdx
- 0x100179f3d: leaq -0x90(%rbp), %rsi
- 0x100179f44: movq $0x0, -0xc8(%rbp)
- 0x100179f4f: movq $0x0, -0xd0(%rbp)
- 0x100179f5a: movq $0x0, -0xc0(%rbp)
- 0x100179f65: movb $0x1, -0xb8(%rbp)
- 0x100179f6c: movq -0xc0(%rbp), %rdi
- 0x100179f73: movq -0xd0(%rbp), %r8
- 0x100179f7a: movq -0xc8(%rbp), %r9
- 0x100179f81: movb -0xb8(%rbp), %r10b
- 0x100179f88: movq %r9, -0xa8(%rbp)
- 0x100179f8f: movq %r8, -0xb0(%rbp)
- 0x100179f96: movq %rdi, -0xa0(%rbp)
- 0x100179f9d: andb $0x1, %r10b
- 0x100179fa1: movb %r10b, -0x98(%rbp)
- 0x100179fa8: movq %rsi, %rdi
- 0x100179fab: movq %rdx, %rsi
- 0x100179fae: movq %rax, %rdx
- 0x100179fb1: callq 0x1000057a0 ; Swift.!= infix <A : Swift.Equatable>(Swift.Optional<A>, Swift.Optional<A>) -> Swift.Bool
- 0x100179fb6: testb $0x1, %al
- 0x100179fb8: jne 0x100179fbc ; top_level_code + 1244 at main.swift:11
- 0x100179fba: jmp 0x10017a006 ; top_level_code + 1318 at main.swift:12
- 0x100179fbc: leaq 0x3173d(%rip), %rdi ; "canBeNil also not nil"
- 0x100179fc3: movabsq $0x15, %rsi
- 0x100179fcd: movl $0x1, %edx
- 0x100179fd2: callq 0x100016670 ; Swift.String.init (Swift.String.Type)(_builtinStringLiteral : Builtin.RawPointer, byteSize : Builtin.Word, isASCII : Builtin.Int1) -> Swift.String
- 0x100179fd7: leaq 0x4fed2(%rip), %rsi ; direct type metadata for Swift.String
- 0x100179fde: addq $0x8, %rsi
- 0x100179fe5: leaq -0x100(%rbp), %rdi
- 0x100179fec: movq %rax, -0x100(%rbp)
- 0x100179ff3: movq %rdx, -0xf8(%rbp)
- 0x100179ffa: movq %rcx, -0xf0(%rbp)
- 0x10017a001: callq 0x1000b8650 ; Swift.println <A>(A) -> ()
- 0x10017a006: leaq 0x316e3(%rip), %rdi ; "line 25"
- 0x10017a00d: movabsq $0x7, %rsi
- 0x10017a017: movl $0x1, %edx
- 0x10017a01c: callq 0x100016670 ; Swift.String.init (Swift.String.Type)(_builtinStringLiteral : Builtin.RawPointer, byteSize : Builtin.Word, isASCII : Builtin.Int1) -> Swift.String
- 0x10017a021: leaq 0x4fe88(%rip), %rsi ; direct type metadata for Swift.String
- 0x10017a028: addq $0x8, %rsi
- 0x10017a02f: leaq -0xe8(%rbp), %rdi
- 0x10017a036: movq %rax, -0xe8(%rbp)
- 0x10017a03d: movq %rdx, -0xe0(%rbp)
- 0x10017a044: movq %rcx, -0xd8(%rbp)
- 0x10017a04b: callq 0x1000b8650 ; Swift.println <A>(A) -> ()
- 0x10017a050: addq $0x1f0, %rsp
- 0x10017a057: popq %rbp
- 0x10017a058: retq
Advertisement
Add Comment
Please, Sign In to add comment