	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_client
_tcp_client:                            ## @tcp_client
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movl	$1, %edi
	callq	_sleep
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kill
	movl	%ebx, (%r13)
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	$16, -64(%rbp)
	movq	_INADDR_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ntohl
	movl	%eax, -56(%rbp)
	movl	%r15d, -60(%rbp)
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kill
	movl	%ebx, (%r15)
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_4:
	movl	$16, -48(%rbp)
	leaq	-80(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r12d, %edi
	callq	_getsockname
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kill
	movl	%ebx, (%r15)
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_6:
	movb	$65, -41(%rbp)
	movq	_MSG_NOSIGNAL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-41(%rbp), %rsi
	movl	%r12d, %edi
	movl	$1, %edx
	callq	_send
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	cmpl	$1, %eax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kill
	movl	%ebx, (%r13)
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_9:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kill
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_10:
	movl	$5, %edi
	callq	_sleep
	leaq	-80(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_tcp_drop
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kill
	movl	%ebx, (%r13)
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_12:
	movl	$5, %edi
	callq	_sleep
	movb	$65, -41(%rbp)
	movl	(%r15), %ecx
	leaq	-41(%rbp), %rsi
	movl	%r12d, %edi
	movl	$1, %edx
	callq	_send
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kill
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
	jmp	LBB0_16
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	_EPIPE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_16
## %bb.15:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kill
	movl	%ebx, (%r15)
	leaq	L_.str.7(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_16:
	movl	%r12d, %edi
	callq	_close
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_errno,4,2                      ## @errno
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_INADDR_LOOPBACK,4,2            ## @INADDR_LOOPBACK
L_.str.1:                               ## @.str.1
	.asciz	"connect"

L_.str.2:                               ## @.str.2
	.asciz	"getsockname"

	.comm	_MSG_NOSIGNAL,4,2               ## @MSG_NOSIGNAL
L_.str.3:                               ## @.str.3
	.asciz	"tcp_client: send (1)"

L_.str.4:                               ## @.str.4
	.asciz	"tcp_client: send (1) len"

L_.str.5:                               ## @.str.5
	.asciz	"tcp_client: tcp_drop"

L_.str.6:                               ## @.str.6
	.asciz	"tcp_client: send (2): success"

	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.7:                               ## @.str.7
	.asciz	"tcp_client: send (2)"

	.no_dead_strip	_tcp_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_client
_tcp_client:                            ; @tcp_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	mov	w0, #1
	bl	_sleep
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x22, _errno@GOTPAGE
Lloh7:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w23, [x22]
Lloh8:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
	str	w23, [x22]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
	mov	w22, #16
	add	x0, sp, #32
	mov	w1, #16
	bl	_bzero
Lloh13:
	adrp	x8, _AF_INET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	str	w22, [sp, #32]
Lloh16:
	adrp	x8, _INADDR_LOOPBACK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INADDR_LOOPBACK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_ntohl
	stp	w21, w0, [sp, #36]
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #16
	bl	_connect
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh19:
	adrp	x21, _errno@GOTPAGE
Lloh20:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w23, [x21]
Lloh21:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
	str	w23, [x21]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:
	str	w22, [sp, #12]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x19
	bl	_getsockname
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh26:
	adrp	x21, _errno@GOTPAGE
Lloh27:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w22, [x21]
Lloh28:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
	str	w22, [x21]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_6:
	mov	w8, #65
	strb	w8, [sp, #11]
Lloh33:
	adrp	x21, _MSG_NOSIGNAL@GOTPAGE
Lloh34:
	ldr	x21, [x21, _MSG_NOSIGNAL@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x1, sp, #11
	mov	x0, x19
	mov	w2, #1
	bl	_send
	tbnz	w0, #31, LBB0_8
; %bb.7:
	cmp	w0, #1
	b.ne	LBB0_9
	b	LBB0_10
LBB0_8:
Lloh35:
	adrp	x22, _errno@GOTPAGE
Lloh36:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w23, [x22]
Lloh37:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
	str	w23, [x22]
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_9:
Lloh42:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_10:
	mov	w0, #5
	bl	_sleep
	add	x0, sp, #16
	add	x1, sp, #32
	bl	_tcp_drop
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh47:
	adrp	x22, _errno@GOTPAGE
Lloh48:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w23, [x22]
Lloh49:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
	str	w23, [x22]
Lloh52:
	adrp	x1, l_.str.5@PAGE
Lloh53:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_12:
	mov	w0, #5
	bl	_sleep
	mov	w8, #65
	strb	w8, [sp, #11]
	ldr	w3, [x21]
	add	x1, sp, #11
	mov	x0, x19
	mov	w2, #1
	bl	_send
	tbnz	w0, #31, LBB0_14
; %bb.13:
Lloh54:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
Lloh57:
	adrp	x1, l_.str.6@PAGE
Lloh58:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #-1
	bl	_errx
	b	LBB0_16
LBB0_14:
Lloh59:
	adrp	x21, _errno@GOTPAGE
Lloh60:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w22, [x21]
Lloh61:
	adrp	x8, _EPIPE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_16
; %bb.15:
Lloh64:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh65:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
	str	w22, [x21]
Lloh67:
	adrp	x1, l_.str.7@PAGE
Lloh68:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_16:
	mov	x0, x19
	bl	_close
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_errno,4,2                      ; @errno
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_INADDR_LOOPBACK,4,2            ; @INADDR_LOOPBACK
l_.str.1:                               ; @.str.1
	.asciz	"connect"

l_.str.2:                               ; @.str.2
	.asciz	"getsockname"

	.comm	_MSG_NOSIGNAL,4,2               ; @MSG_NOSIGNAL
l_.str.3:                               ; @.str.3
	.asciz	"tcp_client: send (1)"

l_.str.4:                               ; @.str.4
	.asciz	"tcp_client: send (1) len"

l_.str.5:                               ; @.str.5
	.asciz	"tcp_client: tcp_drop"

l_.str.6:                               ; @.str.6
	.asciz	"tcp_client: send (2): success"

	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.7:                               ; @.str.7
	.asciz	"tcp_client: send (2)"

	.no_dead_strip	_tcp_client
.subsections_via_symbols
