	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_hci_connect
_ng_hci_connect:                        ## @ng_hci_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	movslq	%eax, %r14
	cmpq	%rbx, (%r14)
	jne	LBB0_1
## %bb.9:
	movq	_NG_HCI_UNIT_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r14)
	jmp	LBB0_10
LBB0_1:
	cmpq	%rbx, 8(%r14)
	jne	LBB0_3
## %bb.2:
	movq	_ng_hci_acl_rcvdata@GOTPCREL(%rip), %r15
	jmp	LBB0_6
LBB0_3:
	cmpq	%rbx, 16(%r14)
	jne	LBB0_4
## %bb.5:
	movq	_ng_hci_sco_rcvdata@GOTPCREL(%rip), %r15
LBB0_6:
	movq	_ng_hci_upper_rcvmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NG_HOOK_SET_RCVMSG
	jmp	LBB0_7
LBB0_4:
	movq	_ng_hci_raw_rcvdata@GOTPCREL(%rip), %r15
LBB0_7:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_NG_HOOK_SET_RCVDATA
	cmpq	%rbx, 24(%r14)
	je	LBB0_10
## %bb.8:
	movl	36(%r14), %edi
	movq	_ng_hci_node_is_up@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ng_send_fn
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ng_hci_upper_rcvmsg,4,2        ## @ng_hci_upper_rcvmsg
	.comm	_ng_hci_acl_rcvdata,4,2         ## @ng_hci_acl_rcvdata
	.comm	_ng_hci_sco_rcvdata,4,2         ## @ng_hci_sco_rcvdata
	.comm	_ng_hci_raw_rcvdata,4,2         ## @ng_hci_raw_rcvdata
	.comm	_ng_hci_node_is_up,4,2          ## @ng_hci_node_is_up
	.comm	_NG_HCI_UNIT_CONNECTED,4,2      ## @NG_HCI_UNIT_CONNECTED
	.no_dead_strip	_ng_hci_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_hci_connect
_ng_hci_connect:                        ; @ng_hci_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
	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_HCI_UNIT_CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_HCI_UNIT_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #32]
	orr	w8, w9, w8
	str	w8, [x20, #32]
	b	LBB0_10
LBB0_2:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x21, _ng_hci_acl_rcvdata@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ng_hci_acl_rcvdata@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x20, #16]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.5:
Lloh5:
	adrp	x21, _ng_hci_sco_rcvdata@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ng_hci_sco_rcvdata@GOTPAGEOFF]
LBB0_6:
Lloh7:
	adrp	x8, _ng_hci_upper_rcvmsg@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ng_hci_upper_rcvmsg@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NG_HOOK_SET_RCVMSG
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x21, _ng_hci_raw_rcvdata@GOTPAGE
Lloh11:
	ldr	x21, [x21, _ng_hci_raw_rcvdata@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_NG_HOOK_SET_RCVDATA
	ldr	x8, [x20, #24]
	cmp	x8, x19
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x20, #36]
Lloh12:
	adrp	x8, _ng_hci_node_is_up@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ng_hci_node_is_up@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_ng_send_fn
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ng_hci_upper_rcvmsg,4,2        ; @ng_hci_upper_rcvmsg
	.comm	_ng_hci_acl_rcvdata,4,2         ; @ng_hci_acl_rcvdata
	.comm	_ng_hci_sco_rcvdata,4,2         ; @ng_hci_sco_rcvdata
	.comm	_ng_hci_raw_rcvdata,4,2         ; @ng_hci_raw_rcvdata
	.comm	_ng_hci_node_is_up,4,2          ; @ng_hci_node_is_up
	.comm	_NG_HCI_UNIT_CONNECTED,4,2      ; @NG_HCI_UNIT_CONNECTED
	.no_dead_strip	_ng_hci_connect
.subsections_via_symbols
