	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ksocket_incoming
_ng_ksocket_incoming:                   ## @ng_ksocket_incoming
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r15
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_NG_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_NG_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_atomic_cmpset_int
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	andl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	cmovel	%r14d, %ebx
	orl	%r13d, %ebx
	movq	_ng_ksocket_incoming2@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	callq	_ng_send_fn1
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_atomic_store_rel_int
LBB0_3:
	movq	_SU_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_NG_WAITOK,4,2                  ## @NG_WAITOK
	.comm	_NG_QUEUE,4,2                   ## @NG_QUEUE
	.comm	_ng_ksocket_incoming2,4,2       ## @ng_ksocket_incoming2
	.comm	_SU_OK,4,2                      ## @SU_OK
	.no_dead_strip	_ng_ksocket_incoming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ksocket_incoming
_ng_ksocket_incoming:                   ; @ng_ksocket_incoming
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_NG_NODE_PRIVATE
	mov	x19, x0
Lloh0:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _NG_WAITOK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_WAITOK@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _NG_QUEUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NG_QUEUE@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
	mov	w1, #0
	mov	w2, #1
	bl	_atomic_cmpset_int
	cbz	x0, LBB0_3
; %bb.1:
	tst	w23, w22
	csel	w8, wzr, w24, eq
	orr	w5, w8, w25
Lloh9:
	adrp	x2, _ng_ksocket_incoming2@GOTPAGE
Lloh10:
	ldr	x2, [x2, _ng_ksocket_incoming2@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, #0
	mov	x3, x20
	mov	w4, #0
	bl	_ng_send_fn1
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_atomic_store_rel_int
LBB0_3:
Lloh11:
	adrp	x8, _SU_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SU_OK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_NG_WAITOK,4,2                  ; @NG_WAITOK
	.comm	_NG_QUEUE,4,2                   ; @NG_QUEUE
	.comm	_ng_ksocket_incoming2,4,2       ; @ng_ksocket_incoming2
	.comm	_SU_OK,4,2                      ; @SU_OK
	.no_dead_strip	_ng_ksocket_incoming
.subsections_via_symbols
