	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_socket
_close_socket:                          ## @close_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	(%rdi), %rax
	movq	_AUTH_CONNECTION@GOTPCREL(%rip), %rcx
	movb	$1, %r14b
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_xcount@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	-1(%rsi), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_debug
	decq	(%r14)
	setne	%r14b
LBB0_2:
	movl	8(%rbx), %edi
	callq	_close
	movl	$-1, 8(%rbx)
	movq	_AUTH_UNUSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	20(%rbx), %edi
	callq	_sshbuf_free
	movl	16(%rbx), %edi
	callq	_sshbuf_free
	movl	12(%rbx), %edi
	callq	_sshbuf_free
	testb	%r14b, %r14b
	je	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cleanup_exit                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTH_CONNECTION,8,3            ## @AUTH_CONNECTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xcount %d -> %d"

	.comm	_xcount,8,3                     ## @xcount
	.comm	_AUTH_UNUSED,8,3                ## @AUTH_UNUSED
	.no_dead_strip	_close_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_socket
_close_socket:                          ; @close_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	x8, [x0]
Lloh0:
	adrp	x9, _AUTH_CONNECTION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTH_CONNECTION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _xcount@GOTPAGE
Lloh4:
	ldr	x20, [x20, _xcount@GOTPAGEOFF]
	ldr	x1, [x20]
	sub	x2, x1, #1
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	cset	w20, ne
	b	LBB0_3
LBB0_2:
	mov	w20, #1
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_close
	mov	w8, #-1
	str	w8, [x19, #8]
Lloh7:
	adrp	x8, _AUTH_UNUSED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AUTH_UNUSED@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w0, [x19, #20]
	bl	_sshbuf_free
	ldr	w0, [x19, #16]
	bl	_sshbuf_free
	ldr	w0, [x19, #12]
	bl	_sshbuf_free
	tbz	w20, #0, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cleanup_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTH_CONNECTION,8,3            ; @AUTH_CONNECTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xcount %d -> %d"

	.comm	_xcount,8,3                     ; @xcount
	.comm	_AUTH_UNUSED,8,3                ; @AUTH_UNUSED
	.no_dead_strip	_close_socket
.subsections_via_symbols
