	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ksocket_connect
_ng_ksocket_connect:                    ## @ng_ksocket_connect
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_NG_HOOK_NODE
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	movq	%rax, %rbx
	movq	8(%rax), %r14
	leaq	8(%r14), %rdi
	callq	_SOCKBUF_LOCK
	movq	8(%rbx), %rdi
	movq	_SO_RCV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ng_ksocket_incoming@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%r15d, %ecx
	callq	_soupcall_set
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	callq	_SOCKBUF_UNLOCK
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_SOCKBUF_LOCK
	movq	8(%rbx), %rdi
	movq	_SO_SND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movl	%r15d, %ecx
	callq	_soupcall_set
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_SOCKBUF_UNLOCK
	movq	8(%rbx), %rdi
	callq	_SOCK_LOCK
	movq	_SS_NBIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rdi
	orl	%eax, (%rdi)
	callq	_SOCK_UNLOCK
	movq	_KSF_CLONED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ng_ksocket_incoming2@GOTPCREL(%rip), %rdx
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_ng_send_fn
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SO_RCV,4,2                     ## @SO_RCV
	.comm	_ng_ksocket_incoming,4,2        ## @ng_ksocket_incoming
	.comm	_SO_SND,4,2                     ## @SO_SND
	.comm	_SS_NBIO,4,2                    ## @SS_NBIO
	.comm	_KSF_CLONED,4,2                 ## @KSF_CLONED
	.comm	_ng_ksocket_incoming2,4,2       ## @ng_ksocket_incoming2
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.no_dead_strip	_ng_ksocket_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ksocket_connect
_ng_ksocket_connect:                    ; @ng_ksocket_connect
	.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
	bl	_NG_HOOK_NODE
	mov	x19, x0
	bl	_NG_NODE_PRIVATE
	mov	x21, x0
	ldr	x20, [x0, #8]
	add	x0, x20, #8
	bl	_SOCKBUF_LOCK
	ldr	x0, [x21, #8]
Lloh0:
	adrp	x8, _SO_RCV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SO_RCV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x22, _ng_ksocket_incoming@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ng_ksocket_incoming@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x3, x19
	bl	_soupcall_set
	ldr	x8, [x21, #8]
	add	x0, x8, #8
	bl	_SOCKBUF_UNLOCK
	ldr	x8, [x21, #8]
	add	x0, x8, #4
	bl	_SOCKBUF_LOCK
	ldr	x0, [x21, #8]
Lloh5:
	adrp	x8, _SO_SND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SO_SND@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x3, x19
	bl	_soupcall_set
	ldr	x8, [x21, #8]
	add	x0, x8, #4
	bl	_SOCKBUF_UNLOCK
	ldr	x0, [x21, #8]
	bl	_SOCK_LOCK
Lloh8:
	adrp	x8, _SS_NBIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SS_NBIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x0, [x21, #8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	bl	_SOCK_UNLOCK
	ldr	w8, [x21]
Lloh11:
	adrp	x9, _KSF_CLONED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KSF_CLONED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
Lloh17:
	adrp	x2, _ng_ksocket_incoming2@GOTPAGE
Lloh18:
	ldr	x2, [x2, _ng_ksocket_incoming2@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x3, x20
	bl	_ng_send_fn
LBB0_2:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SO_RCV,4,2                     ; @SO_RCV
	.comm	_ng_ksocket_incoming,4,2        ; @ng_ksocket_incoming
	.comm	_SO_SND,4,2                     ; @SO_SND
	.comm	_SS_NBIO,4,2                    ; @SS_NBIO
	.comm	_KSF_CLONED,4,2                 ; @KSF_CLONED
	.comm	_ng_ksocket_incoming2,4,2       ; @ng_ksocket_incoming2
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.no_dead_strip	_ng_ksocket_connect
.subsections_via_symbols
