	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function child_close_fds
_child_close_fds:                       ## @child_close_fds
	.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	%rdi, %r14
	movq	_auth_sock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.1:
	callq	_close
	movl	$-1, (%rbx)
LBB0_2:
	xorl	%eax, %eax
	callq	_packet_get_connection_in
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_packet_get_connection_out
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_packet_get_connection_in
	movl	%eax, %edi
	callq	_close
	cmpl	%ebx, %r15d
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_packet_get_connection_out
	movl	%eax, %edi
	callq	_close
LBB0_4:
	movq	%r14, %rdi
	callq	_channel_close_all
	xorl	%eax, %eax
	callq	_endpwent
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_closefrom                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STDERR_FILENO,8,3              ## @STDERR_FILENO
	.no_dead_strip	_child_close_fds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function child_close_fds
_child_close_fds:                       ; @child_close_fds
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x20, _auth_sock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _auth_sock@GOTPAGEOFF]
	ldr	w0, [x20]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	bl	_close
	mov	w8, #-1
	str	w8, [x20]
LBB0_2:
	bl	_packet_get_connection_in
	mov	x20, x0
	bl	_packet_get_connection_out
	mov	x21, x0
	bl	_packet_get_connection_in
	bl	_close
	cmp	w20, w21
	b.eq	LBB0_4
; %bb.3:
	bl	_packet_get_connection_out
	bl	_close
LBB0_4:
	mov	x0, x19
	bl	_channel_close_all
	bl	_endpwent
Lloh2:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x0, x8, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_closefrom
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STDERR_FILENO,8,3              ; @STDERR_FILENO
	.no_dead_strip	_child_close_fds
.subsections_via_symbols
