	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	%rdi, %r15
	movq	_TCP_SIDE_CLIENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_tcp_setup_new
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movq	(%r14), %r14
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_tcp_addr
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_tcp_close
	movl	%r15d, %ebx
	jmp	LBB0_7
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movl	(%r14), %edi
	movl	-32(%rbp), %edx
	leaq	-32(%rbp), %rsi
	callq	_bind
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_tcp_close
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_SIDE_CLIENT,4,2            ## @TCP_SIDE_CLIENT
	.comm	_errno,4,2                      ## @errno
	.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x8, x1
	mov	x21, x0
Lloh0:
	adrp	x9, _TCP_SIDE_CLIENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCP_SIDE_CLIENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_tcp_setup_new
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.1:
	cbz	x21, LBB0_6
; %bb.2:
	ldr	x19, [x19]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	bl	_tcp_addr
	cbz	w0, LBB0_5
; %bb.3:
	mov	x20, x0
LBB0_4:
	mov	x0, x19
	bl	_tcp_close
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19]
	ldr	w2, [sp, #8]
	add	x1, sp, #8
	bl	_bind
	cmn	w0, #1
	b.eq	LBB0_8
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_SIDE_CLIENT,4,2            ; @TCP_SIDE_CLIENT
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_tcp_client
.subsections_via_symbols
