	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_accept_newconn
_siw_accept_newconn:                    ## @siw_accept_newconn
	.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), %r12
	movq	$0, -40(%rbp)
	movq	(%rdi), %rax
	movq	_SIW_EPSTATE_LISTENING@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.1:
	movl	40(%rbx), %edi
	callq	_siw_cep_alloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_siw_cm_alloc_work
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movups	24(%rbx), %xmm0
	movups	%xmm0, 24(%r14)
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_kernel_accept
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	jmp	LBB0_13
LBB0_6:
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_siw_cep_get
	movq	-40(%rbp), %rdi
	movq	(%rdi), %rax
	movq	%r14, 8(%rax)
	movq	_siw_tcp_nagle@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
LBB0_9:
	movq	_SIW_EPSTATE_AWAIT_MPAREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_SIW_CM_WORK_MPATIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_siw_cm_queue_work
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_10
LBB0_13:
	movq	%r14, %rdi
	callq	_siw_cep_put
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_siw_socket_disassoc
	movq	-40(%rbp), %rdi
	callq	_sock_release
	movq	$0, 8(%r14)
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_cep
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, -44(%rbp)
	movq	_SOL_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCP_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	callq	_kernel_setsockopt
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_10:
	movq	%rbx, 16(%r14)
	movq	%rbx, %rdi
	callq	_siw_cep_get
	movq	-40(%rbp), %rax
	movq	(%rax), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	movq	%r14, %rdi
	callq	_siw_cep_set_inuse
	movq	%r14, %rdi
	callq	_siw_proc_mpareq
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_siw_cep_set_free
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_16
## %bb.12:
	movq	%rbx, %rdi
	callq	_siw_cep_put
	movq	$0, 16(%r14)
	testl	%r15d, %r15d
	jne	LBB0_13
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_EPSTATE_LISTENING,8,3      ## @SIW_EPSTATE_LISTENING
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kernel_accept() error: %d\n"

	.comm	_siw_tcp_nagle,4,2              ## @siw_tcp_nagle
	.comm	_SOL_TCP,4,2                    ## @SOL_TCP
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
L_.str.1:                               ## @.str.1
	.asciz	"setsockopt NODELAY error: %d\n"

	.comm	_SIW_EPSTATE_AWAIT_MPAREQ,8,3   ## @SIW_EPSTATE_AWAIT_MPAREQ
	.comm	_SIW_CM_WORK_MPATIMEOUT,4,2     ## @SIW_CM_WORK_MPATIMEOUT
L_.str.2:                               ## @.str.2
	.asciz	"immediate mpa request\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.3:                               ## @.str.3
	.asciz	"error %d\n"

	.no_dead_strip	_siw_accept_newconn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_accept_newconn
_siw_accept_newconn:                    ; @siw_accept_newconn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	xzr, [sp, #24]
	ldp	x8, x21, [x0]
Lloh0:
	adrp	x9, _SIW_EPSTATE_LISTENING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIW_EPSTATE_LISTENING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19, #40]
	bl	_siw_cep_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	w1, #4
	bl	_siw_cm_alloc_work
	cbz	x0, LBB0_5
; %bb.3:
	mov	w21, #0
	b	LBB0_10
LBB0_4:
	mov	w21, #0
	b	LBB0_12
LBB0_5:
	ldur	q0, [x19, #24]
	stur	q0, [x20, #24]
Lloh3:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #24
	mov	x0, x21
	bl	_kernel_accept
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_siw_dbg_cep
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_10
LBB0_8:
	ldr	x8, [sp, #24]
	str	x8, [x20, #8]
	mov	x0, x20
	bl	_siw_cep_get
	ldr	x0, [sp, #24]
	ldr	x8, [x0]
	str	x20, [x8, #8]
Lloh8:
	adrp	x8, _siw_tcp_nagle@GOTPAGE
Lloh9:
	ldr	x8, [x8, _siw_tcp_nagle@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
LBB0_9:
Lloh11:
	adrp	x8, _SIW_EPSTATE_AWAIT_MPAREQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIW_EPSTATE_AWAIT_MPAREQ@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh14:
	adrp	x8, _SIW_CM_WORK_MPATIMEOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIW_CM_WORK_MPATIMEOUT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_siw_cm_queue_work
	mov	x21, x0
	cbz	w0, LBB0_16
LBB0_10:
	mov	x0, x20
	bl	_siw_cep_put
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_siw_socket_disassoc
	ldr	x0, [sp, #24]
	bl	_sock_release
	str	xzr, [x20, #8]
LBB0_12:
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	mov	w8, #1
	str	w8, [sp, #20]
Lloh19:
	adrp	x8, _SOL_TCP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SOL_TCP@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _TCP_NODELAY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TCP_NODELAY@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	add	x3, sp, #20
	mov	w4, #4
	bl	_kernel_setsockopt
	cbz	w0, LBB0_9
; %bb.15:
	mov	x21, x0
	str	x21, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_16:
	str	x19, [x20, #16]
	mov	x0, x19
	bl	_siw_cep_get
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	bl	_atomic_read
	cbz	x0, LBB0_13
; %bb.17:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
	mov	x0, x20
	bl	_siw_cep_set_inuse
	mov	x0, x20
	bl	_siw_proc_mpareq
	mov	x21, x0
	mov	x0, x20
	bl	_siw_cep_set_free
Lloh29:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_13
; %bb.18:
	mov	x0, x19
	bl	_siw_cep_put
	str	xzr, [x20, #16]
	cbnz	w21, LBB0_10
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_EPSTATE_LISTENING,8,3      ; @SIW_EPSTATE_LISTENING
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kernel_accept() error: %d\n"

	.comm	_siw_tcp_nagle,4,2              ; @siw_tcp_nagle
	.comm	_SOL_TCP,4,2                    ; @SOL_TCP
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
l_.str.1:                               ; @.str.1
	.asciz	"setsockopt NODELAY error: %d\n"

	.comm	_SIW_EPSTATE_AWAIT_MPAREQ,8,3   ; @SIW_EPSTATE_AWAIT_MPAREQ
	.comm	_SIW_CM_WORK_MPATIMEOUT,4,2     ; @SIW_CM_WORK_MPATIMEOUT
l_.str.2:                               ; @.str.2
	.asciz	"immediate mpa request\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.3:                               ; @.str.3
	.asciz	"error %d\n"

	.no_dead_strip	_siw_accept_newconn
.subsections_via_symbols
