	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_l2cap_connect
_ng_l2cap_connect:                      ## @ng_l2cap_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	movslq	%eax, %r14
	cmpq	%rbx, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_ng_l2cap_lower_rcvmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NG_HOOK_SET_RCVMSG
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	cmpq	%rbx, 8(%r14)
	je	LBB0_6
## %bb.3:
	cmpq	%rbx, 16(%r14)
	jne	LBB0_4
LBB0_6:
	movq	_ng_l2cap_upper_rcvmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NG_HOOK_SET_RCVMSG
	movl	24(%r14), %edi
	movq	_ng_l2cap_send_hook_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ng_send_fn                     ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ng_l2cap_lower_rcvmsg,4,2      ## @ng_l2cap_lower_rcvmsg
	.comm	_ng_l2cap_upper_rcvmsg,4,2      ## @ng_l2cap_upper_rcvmsg
	.comm	_ng_l2cap_send_hook_info,4,2    ## @ng_l2cap_send_hook_info
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ng_l2cap_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_l2cap_connect
_ng_l2cap_connect:                      ; @ng_l2cap_connect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_PRIVATE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	ldr	x8, [x20]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ng_l2cap_lower_rcvmsg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ng_l2cap_lower_rcvmsg@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NG_HOOK_SET_RCVMSG
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x20, #16]
	cmp	x8, x19
	b.ne	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ng_l2cap_upper_rcvmsg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ng_l2cap_upper_rcvmsg@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NG_HOOK_SET_RCVMSG
	ldr	w0, [x20, #24]
Lloh6:
	adrp	x8, _ng_l2cap_send_hook_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ng_l2cap_send_hook_info@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ng_send_fn
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ng_l2cap_lower_rcvmsg,4,2      ; @ng_l2cap_lower_rcvmsg
	.comm	_ng_l2cap_upper_rcvmsg,4,2      ; @ng_l2cap_upper_rcvmsg
	.comm	_ng_l2cap_send_hook_info,4,2    ; @ng_l2cap_send_hook_info
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ng_l2cap_connect
.subsections_via_symbols
