	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_child
_run_child:                             ## @run_child
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	_listen_socket@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	jns	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_bzero
	movl	$16, -32(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_INADDR_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, -24(%rbp)
	movq	_TEST_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, -28(%rbp)
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_bind
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movq	%rax, %rsi
	callq	_printf
	movl	$-1, %ebx
LBB0_8:
	xorl	%eax, %eax
	callq	_cancel_alarm
	movq	_accept_socket@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jle	LBB0_10
## %bb.9:
	callq	_close
LBB0_10:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jle	LBB0_12
## %bb.11:
	callq	_close
LBB0_12:
	movl	%ebx, %edi
	callq	__exit
LBB0_5:
	movq	(%r14), %rdi
	movl	$-1, %ebx
	movl	$-1, %esi
	callq	_listen
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	jmp	LBB0_8
LBB0_7:
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	movq	_accept_socket@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_TEST_SECONDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setup_alarm
	xorl	%eax, %eax
	callq	_receive_test
	negq	%rax
	sbbl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_listen_socket,8,3              ## @listen_socket
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"# socket: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_INADDR_LOOPBACK,4,2            ## @INADDR_LOOPBACK
	.comm	_TEST_PORT,4,2                  ## @TEST_PORT
L_.str.1:                               ## @.str.1
	.asciz	"# bind: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"# listen: %s\n"

	.comm	_accept_socket,8,3              ## @accept_socket
	.comm	_TEST_SECONDS,4,2               ## @TEST_SECONDS
	.no_dead_strip	_run_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_child
_run_child:                             ; @run_child
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
Lloh6:
	adrp	x20, _listen_socket@GOTPAGE
Lloh7:
	ldr	x20, [x20, _listen_socket@GOTPAGEOFF]
	str	x0, [x20]
Lloh8:
	adrp	x21, _accept_socket@GOTPAGE
Lloh9:
	ldr	x21, [x21, _accept_socket@GOTPAGEOFF]
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	w19, #16
	mov	x0, sp
	mov	w1, #16
	bl	_bzero
Lloh15:
	adrp	x8, _AF_INET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w19, [sp]
	str	w8, [sp, #12]
Lloh18:
	adrp	x8, _INADDR_LOOPBACK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INADDR_LOOPBACK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [sp, #8]
Lloh21:
	adrp	x8, _TEST_PORT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TEST_PORT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [sp, #4]
	ldr	x0, [x20]
	mov	x1, sp
	mov	w2, #16
	bl	_bind
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x0, [x20]
	mov	w1, #-1
	bl	_listen
	tbz	x0, #63, LBB0_12
; %bb.5:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_printf
	mov	w19, #-1
LBB0_7:
	bl	_cancel_alarm
	ldr	x0, [x21]
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.8:
	bl	_close
LBB0_9:
	ldr	x0, [x20]
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.10:
	bl	_close
LBB0_11:
	mov	x0, x19
	bl	__exit
LBB0_12:
	ldr	x0, [x20]
	mov	x1, #0
	mov	x2, #0
	bl	_accept
	str	x0, [x21]
Lloh34:
	adrp	x8, _TEST_SECONDS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TEST_SECONDS@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_setup_alarm
	bl	_receive_test
	cmp	x0, #0
	csetm	w19, ne
	b	LBB0_7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_listen_socket,8,3              ; @listen_socket
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"# socket: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_INADDR_LOOPBACK,4,2            ; @INADDR_LOOPBACK
	.comm	_TEST_PORT,4,2                  ; @TEST_PORT
l_.str.1:                               ; @.str.1
	.asciz	"# bind: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"# listen: %s\n"

	.comm	_accept_socket,8,3              ; @accept_socket
	.comm	_TEST_SECONDS,4,2               ; @TEST_SECONDS
	.no_dead_strip	_run_child
.subsections_via_symbols
