	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accept_client
_accept_client:                         ## @accept_client
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$4, -60(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	callq	_accept
	movl	%eax, %r12d
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movl	(%r15), %r12d
	jmp	LBB0_14
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.4:
	movq	%rsp, %r13
	movq	_INET6_ADDRSTRLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	$50, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	-56(%rbp), %rdx
	cmpq	$129, %rdx
	je	LBB0_5
## %bb.6:
	cmpq	$128, %rdx
	jne	LBB0_10
## %bb.7:
	movl	$128, %edi
	jmp	LBB0_8
LBB0_5:
	movl	$129, %edi
LBB0_8:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_inet_ntop
	movq	%rax, %rdx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	-56(%rbp), %rdx
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_sprintf
	movq	%r15, %rdx
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movq	%r13, %rsp
LBB0_12:
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	callq	_fcntl
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_SOCKET,4,2             ## @INVALID_SOCKET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"accept()"

	.comm	_INET6_ADDRSTRLEN,4,2           ## @INET6_ADDRSTRLEN
L_.str.1:                               ## @.str.1
	.asciz	"<unknown: %lu>"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"accepting connection from: %s\n"

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_FIONBIO,4,2                    ## @FIONBIO
	.no_dead_strip	_accept_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accept_client
_accept_client:                         ; @accept_client
	.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
	sub	sp, sp, #32
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w8, #4
	stur	w8, [x29, #-52]
	sub	x1, x29, #48
	sub	x2, x29, #52
	bl	_accept
	mov	x19, x0
Lloh3:
	adrp	x22, _INVALID_SOCKET@GOTPAGE
Lloh4:
	ldr	x22, [x22, _INVALID_SOCKET@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	cbz	w21, LBB0_14
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	ldr	w19, [x22]
	b	LBB0_14
LBB0_3:
	cbz	w21, LBB0_12
; %bb.4:
	mov	x22, sp
Lloh7:
	adrp	x8, _INET6_ADDRSTRLEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INET6_ADDRSTRLEN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	add	w3, w8, #50
	mov	x9, x3
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x3, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldur	x2, [x29, #-48]
	cmp	x2, #129
	b.eq	LBB0_7
; %bb.5:
	cmp	x2, #128
	b.ne	LBB0_10
; %bb.6:
	mov	w0, #128
	b	LBB0_8
LBB0_7:
	mov	w0, #129
LBB0_8:
	sub	x1, x29, #48
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_inet_ntop
	mov	x2, x0
	cbnz	x0, LBB0_11
; %bb.9:
	ldur	x2, [x29, #-48]
LBB0_10:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_sprintf
	mov	x2, x21
LBB0_11:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	sp, x22
LBB0_12:
	cbz	w20, LBB0_14
; %bb.13:
Lloh19:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fcntl
LBB0_14:
	ldur	x8, [x29, #-40]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	sub	sp, x29, #32
	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
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_SOCKET,4,2             ; @INVALID_SOCKET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"accept()"

	.comm	_INET6_ADDRSTRLEN,4,2           ; @INET6_ADDRSTRLEN
l_.str.1:                               ; @.str.1
	.asciz	"<unknown: %lu>"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"accepting connection from: %s\n"

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_FIONBIO,4,2                    ; @FIONBIO
	.no_dead_strip	_accept_client
.subsections_via_symbols
