	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_close_link_socket
_do_close_link_socket:                  ## @do_close_link_socket
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	64(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpq	$0, 72(%rbx)
	je	LBB0_3
## %bb.2:
	callq	_link_socket_close
	movq	$0, 64(%rbx)
LBB0_3:
	movq	56(%rbx), %rax
	movq	(%rax), %rcx
	movq	_SIGUSR1@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rcx
	jne	LBB0_9
## %bb.4:
	cmpq	$0, 40(%rbx)
	jne	LBB0_10
## %bb.5:
	movq	8(%rax), %rax
	movq	_SIG_SOURCE_HARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.6:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpq	$0, (%rax)
	jne	LBB0_10
LBB0_8:
	cmpq	$0, 48(%rbx)
	jne	LBB0_10
LBB0_9:
	xorl	%esi, %esi
	cmpl	$0, 24(%rbx)
	sete	%sil
	movq	%rbx, %rdi
	callq	_clear_remote_addrlist
	movq	56(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_11
LBB0_10:
	cmpq	$0, 40(%rbx)
	jne	LBB0_12
LBB0_11:
	movl	8(%rbx), %edi
	callq	_CLEAR
	movq	56(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_13
LBB0_12:
	cmpq	$0, 32(%rbx)
	jne	LBB0_17
LBB0_13:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.14:
	cmpl	$0, 24(%rbx)
	jne	LBB0_16
## %bb.15:
	callq	_freeaddrinfo
LBB0_16:
	movq	$0, (%rbx)
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGUSR1,8,3                    ## @SIGUSR1
	.comm	_SIG_SOURCE_HARD,8,3            ## @SIG_SOURCE_HARD
	.no_dead_strip	_do_close_link_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_close_link_socket
_do_close_link_socket:                  ; @do_close_link_socket
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #64]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_link_socket_close
	str	xzr, [x19, #64]
LBB0_3:
	ldr	x8, [x19, #56]
	ldr	x9, [x8]
Lloh0:
	adrp	x20, _SIGUSR1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SIGUSR1@GOTPAGEOFF]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.4:
	ldr	x9, [x19, #40]
	cbnz	x9, LBB0_10
; %bb.5:
	ldr	x8, [x8, #8]
Lloh2:
	adrp	x9, _SIG_SOURCE_HARD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SIG_SOURCE_HARD@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x8]
	cbnz	x8, LBB0_10
LBB0_8:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_10
LBB0_9:
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	_clear_remote_addrlist
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_12
LBB0_11:
	ldr	w0, [x19, #8]
	bl	_CLEAR
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_12:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_17
LBB0_13:
	ldr	x0, [x19]
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_16
; %bb.15:
	bl	_freeaddrinfo
LBB0_16:
	str	xzr, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGUSR1,8,3                    ; @SIGUSR1
	.comm	_SIG_SOURCE_HARD,8,3            ; @SIG_SOURCE_HARD
	.no_dead_strip	_do_close_link_socket
.subsections_via_symbols
