	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_accept_inetd
_server_accept_inetd:                   ## @server_accept_inetd
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_startup_pipe@GOTPCREL(%rip), %rbx
	movl	$-1, (%rbx)
	movq	_rexeced_flag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_REEXEC_CONFIG_PASS_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_close
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dup
	movl	%eax, (%r14)
	movl	%eax, (%r15)
	movq	_debug_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_REEXEC_STARTUP_PIPE_FD@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_dup
	movl	%eax, (%rbx)
	movl	(%r12), %edi
	callq	_close
	jmp	LBB0_4
LBB0_3:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dup
	movl	%eax, (%r15)
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dup
	movl	%eax, (%r14)
LBB0_4:
	movq	__PATH_DEVNULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.5:
	movl	%eax, %ebx
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_dup2
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_dup2
	movq	_log_stderr@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:
	cmpl	(%r12), %ebx
	jle	LBB0_11
LBB0_10:
	movl	%ebx, %edi
	callq	_close
LBB0_11:
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debug                          ## TAILCALL
LBB0_6:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_dup2
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	jg	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_startup_pipe,4,2               ## @startup_pipe
	.comm	_rexeced_flag,8,3               ## @rexeced_flag
	.comm	_REEXEC_CONFIG_PASS_FD,4,2      ## @REEXEC_CONFIG_PASS_FD
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_debug_flag,4,2                 ## @debug_flag
	.comm	_REEXEC_STARTUP_PIPE_FD,4,2     ## @REEXEC_STARTUP_PIPE_FD
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	__PATH_DEVNULL,4,2              ## @_PATH_DEVNULL
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_log_stderr,8,3                 ## @log_stderr
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inetd sockets after dupping: %d, %d"

	.no_dead_strip	_server_accept_inetd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_accept_inetd
_server_accept_inetd:                   ; @server_accept_inetd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _startup_pipe@GOTPAGE
Lloh1:
	ldr	x21, [x21, _startup_pipe@GOTPAGEOFF]
	mov	w8, #-1
	str	w8, [x21]
Lloh2:
	adrp	x8, _rexeced_flag@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rexeced_flag@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x22, _STDIN_FILENO@GOTPAGE
Lloh6:
	ldr	x22, [x22, _STDIN_FILENO@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _REEXEC_CONFIG_PASS_FD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REEXEC_CONFIG_PASS_FD@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_close
	ldr	w0, [x22]
	bl	_dup
	str	w0, [x19]
	str	w0, [x20]
Lloh10:
	adrp	x8, _debug_flag@GOTPAGE
Lloh11:
	ldr	x8, [x8, _debug_flag@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.2:
Lloh13:
	adrp	x23, _REEXEC_STARTUP_PIPE_FD@GOTPAGE
Lloh14:
	ldr	x23, [x23, _REEXEC_STARTUP_PIPE_FD@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_dup
	str	w0, [x21]
	ldr	w0, [x23]
	bl	_close
	b	LBB0_4
LBB0_3:
	ldr	w0, [x22]
	bl	_dup
	str	w0, [x20]
Lloh15:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_dup
	str	w0, [x19]
LBB0_4:
Lloh18:
	adrp	x8, __PATH_DEVNULL@GOTPAGE
Lloh19:
	ldr	x8, [x8, __PATH_DEVNULL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.5:
	mov	x21, x0
	ldr	w1, [x22]
	bl	_dup2
Lloh24:
	adrp	x22, _STDOUT_FILENO@GOTPAGE
Lloh25:
	ldr	x22, [x22, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_dup2
Lloh26:
	adrp	x24, _log_stderr@GOTPAGE
Lloh27:
	ldr	x24, [x24, _log_stderr@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh28:
	adrp	x23, _STDERR_FILENO@GOTPAGE
Lloh29:
	ldr	x23, [x23, _STDERR_FILENO@GOTPAGEOFF]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_dup2
	ldr	x8, [x24]
LBB0_7:
	cmp	x8, #0
	csel	x8, x22, x23, eq
	ldr	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_close
LBB0_9:
	ldr	w1, [x20]
	ldr	w2, [x19]
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_debug
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_startup_pipe,4,2               ; @startup_pipe
	.comm	_rexeced_flag,8,3               ; @rexeced_flag
	.comm	_REEXEC_CONFIG_PASS_FD,4,2      ; @REEXEC_CONFIG_PASS_FD
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_debug_flag,4,2                 ; @debug_flag
	.comm	_REEXEC_STARTUP_PIPE_FD,4,2     ; @REEXEC_STARTUP_PIPE_FD
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	__PATH_DEVNULL,4,2              ; @_PATH_DEVNULL
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_log_stderr,8,3                 ; @log_stderr
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inetd sockets after dupping: %d, %d"

	.no_dead_strip	_server_accept_inetd
.subsections_via_symbols
