	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phase2_inetd
_phase2_inetd:                          ## @phase2_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_PROTO_TCP_SERVER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_proto2ascii
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_msg
	movq	32(%rbx), %rdi
	movq	(%rbx), %rax
	movq	16(%rbx), %rsi
	movl	(%rsi), %ecx
	addq	$4, %rsi
	movq	_INETD_NOWAIT@GOTPCREL(%rip), %rdx
	xorl	%r9d, %r9d
	cmpq	(%rdx), %rax
	sete	%r9b
	movq	%r15, (%rsp)
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_socket_listen_accept
	movq	%rax, 32(%rbx)
LBB0_2:
	movl	$1, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ASSERT                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTO_TCP_SERVER,8,3           ## @PROTO_TCP_SERVER
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_M_WARN,4,2                     ## @M_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inetd(%s): this OS does not provide the getsockname() function, using AF_INET"

	.comm	_INETD_NOWAIT,8,3               ## @INETD_NOWAIT
	.comm	_D_SOCKET_DEBUG,4,2             ## @D_SOCKET_DEBUG
	.no_dead_strip	_phase2_inetd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phase2_inetd
_phase2_inetd:                          ; @phase2_inetd
	.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
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _PROTO_TCP_SERVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROTO_TCP_SERVER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x3
	mov	x21, x2
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9, #4]
Lloh6:
	adrp	x8, _M_WARN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	w1, #0
	bl	_proto2ascii
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_msg
	ldr	x0, [x19, #32]
	ldr	x1, [x19, #16]
	ldr	w3, [x1], #4
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _INETD_NOWAIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INETD_NOWAIT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w5, eq
	mov	x2, x21
	mov	w4, #0
	mov	x6, x20
	bl	_socket_listen_accept
	str	x0, [x19, #32]
LBB0_2:
	mov	w0, #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	_ASSERT
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_TCP_SERVER,8,3           ; @PROTO_TCP_SERVER
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_M_WARN,4,2                     ; @M_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inetd(%s): this OS does not provide the getsockname() function, using AF_INET"

	.comm	_INETD_NOWAIT,8,3               ; @INETD_NOWAIT
	.comm	_D_SOCKET_DEBUG,4,2             ; @D_SOCKET_DEBUG
	.no_dead_strip	_phase2_inetd
.subsections_via_symbols
