	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_run
_server_run:                            ## @server_run
	.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
	xorl	%eax, %eax
	callq	_server_listen
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rbx
	leaq	L_.str.1(%rip), %r13
	movq	_SHUT_RDWR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$4, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	xorl	%edi, %edi
	callq	_fflush
	movl	%r15d, %edi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	callq	_raccept
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	__ntop
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	%r14d, %edi
	callq	_server_process
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_rshutdown
	movl	%r14d, %edi
	callq	_rclose
	jmp	LBB0_2
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waiting for connection..."

L_.str.1:                               ## @.str.1
	.asciz	"client: %s\n"

	.comm	_SHUT_RDWR,4,2                  ## @SHUT_RDWR
	.no_dead_strip	_server_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_run
_server_run:                            ; @server_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_server_listen
	mov	x19, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	w23, #4
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x24, _SHUT_RDWR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SHUT_RDWR@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w23, [sp, #20]
	mov	x0, x20
	bl	_printf
	mov	x0, #0
	bl	_fflush
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x19
	bl	_raccept
	mov	x22, x0
	add	x0, sp, #24
	bl	__ntop
	str	x0, [sp]
	mov	x0, x21
	bl	_printf
	mov	x0, x22
	bl	_server_process
	ldr	w1, [x24]
	mov	x0, x22
	bl	_rshutdown
	mov	x0, x22
	bl	_rclose
	b	LBB0_2
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waiting for connection..."

l_.str.1:                               ; @.str.1
	.asciz	"client: %s\n"

	.comm	_SHUT_RDWR,4,2                  ; @SHUT_RDWR
	.no_dead_strip	_server_run
.subsections_via_symbols
