	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_btsocket_hci_raw_control    ## -- Begin function ng_btsocket_hci_raw_control
	.p2align	4, 0x90
_ng_btsocket_hci_raw_control:           ## @ng_btsocket_hci_raw_control
	.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
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_so2hci_raw_pcb
	movq	%rax, %r15
	movq	_NG_NODESIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	incl	%r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	movq	_ng_btsocket_hci_raw_node@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_mtx_lock
	movq	24(%r15), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_9
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_56
## %bb.8:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_snprintf
	addl	$-128, %r13d
	cmpl	$18, %r13d
	ja	LBB0_30
## %bb.11:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	movq	_NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_51
## %bb.13:
	movq	_NGM_HCI_NODE_SET_ROLE_SWITCH@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_14:
	movq	_NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_51
## %bb.15:
	movq	_NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_16:
	movq	_NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_51
## %bb.17:
	movq	_NGM_HCI_NODE_RESET_STAT@GOTPCREL(%rip), %rax
	jmp	LBB0_49
LBB0_18:
	movq	_NGM_HCI_NODE_GET_ROLE_SWITCH@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_19:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	jle	LBB0_55
## %bb.20:
	movq	_NG_HCI_MAX_NEIGHBOR_NUM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_55
## %bb.21:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_55
## %bb.22:
	movq	_NGM_HCI_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NGM_HCI_NODE_GET_NEIGHBOR_CACHE@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_23:
	movq	_NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_24:
	movq	_NGM_HCI_NODE_GET_DEBUG@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_25:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_55
## %bb.26:
	movq	_NG_HCI_MAX_CON_NUM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_55
## %bb.27:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_55
## %bb.28:
	movq	_NGM_HCI_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NGM_HCI_NODE_GET_CON_LIST@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_29:
	movq	_NGM_HCI_NODE_GET_BUFFER@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_30:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_52
LBB0_31:
	movq	_NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_51
## %bb.32:
	movq	_NGM_HCI_NODE_SET_PACKET_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_33:
	movq	_NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_51
## %bb.34:
	movq	_NGM_HCI_NODE_SET_DEBUG@GOTPCREL(%rip), %rax
LBB0_35:
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$4, %ecx
	jmp	LBB0_50
LBB0_36:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_54
## %bb.37:
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NGM_LISTNAMES@GOTPCREL(%rip), %rax
LBB0_38:
	movl	(%rax), %edx
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	callq	_NG_MKMESSAGE
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	jmp	LBB0_55
LBB0_39:
	movq	_NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_51
## %bb.40:
	movq	_NGM_HCI_NODE_INIT@GOTPCREL(%rip), %rax
	jmp	LBB0_49
LBB0_41:
	movq	_NGM_HCI_NODE_GET_STATE@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_42:
	movq	_NGM_HCI_NODE_GET_STAT@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_43:
	movq	_NGM_HCI_NODE_GET_PACKET_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_44:
	movq	_NGM_HCI_NODE_GET_FEATURES@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_45:
	movq	_NGM_HCI_NODE_GET_BDADDR@GOTPCREL(%rip), %rax
LBB0_46:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	$4, %r8d
	callq	_ng_btsocket_hci_raw_send_sync_ngmsg
	movl	%eax, %ebx
	jmp	LBB0_53
LBB0_47:
	movq	_NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_51
## %bb.48:
	movq	_NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE@GOTPCREL(%rip), %rax
LBB0_49:
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_50:
	callq	_ng_btsocket_hci_raw_send_ngmsg
	movl	%eax, %ebx
	jmp	LBB0_53
LBB0_51:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_52:
	movl	(%rax), %ebx
LBB0_53:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock
	jmp	LBB0_7
LBB0_54:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
LBB0_55:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock
	movl	(%rbx), %ebx
	jmp	LBB0_7
LBB0_56:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_43, LBB0_43-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_44, LBB0_44-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_31
	.long	L0_0_set_14
	.long	L0_0_set_33
	.long	L0_0_set_16
	.long	L0_0_set_36
	.long	L0_0_set_39
	.long	L0_0_set_41
	.long	L0_0_set_42
	.long	L0_0_set_18
	.long	L0_0_set_43
	.long	L0_0_set_19
	.long	L0_0_set_23
	.long	L0_0_set_44
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_29
	.long	L0_0_set_45
	.long	L0_0_set_47
	.end_data_region
                                        ## -- End function
	.comm	_NG_NODESIZ,4,2                 ## @NG_NODESIZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ng_btsocket_hci_raw_node,8,3   ## @ng_btsocket_hci_raw_node
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:"

	.comm	_NGM_HCI_NODE_GET_STATE,4,2     ## @NGM_HCI_NODE_GET_STATE
	.comm	_NG_BTSOCKET_HCI_RAW_PRIVILEGED,4,2 ## @NG_BTSOCKET_HCI_RAW_PRIVILEGED
	.comm	_NGM_HCI_NODE_INIT,4,2          ## @NGM_HCI_NODE_INIT
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_NGM_HCI_NODE_GET_DEBUG,4,2     ## @NGM_HCI_NODE_GET_DEBUG
	.comm	_NGM_HCI_NODE_SET_DEBUG,4,2     ## @NGM_HCI_NODE_SET_DEBUG
	.comm	_NGM_HCI_NODE_GET_BUFFER,4,2    ## @NGM_HCI_NODE_GET_BUFFER
	.comm	_NGM_HCI_NODE_GET_BDADDR,4,2    ## @NGM_HCI_NODE_GET_BDADDR
	.comm	_NGM_HCI_NODE_GET_FEATURES,4,2  ## @NGM_HCI_NODE_GET_FEATURES
	.comm	_NGM_HCI_NODE_GET_STAT,4,2      ## @NGM_HCI_NODE_GET_STAT
	.comm	_NGM_HCI_NODE_RESET_STAT,4,2    ## @NGM_HCI_NODE_RESET_STAT
	.comm	_NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE,4,2 ## @NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE
	.comm	_NG_HCI_MAX_NEIGHBOR_NUM,4,2    ## @NG_HCI_MAX_NEIGHBOR_NUM
	.comm	_NGM_HCI_COOKIE,4,2             ## @NGM_HCI_COOKIE
	.comm	_NGM_HCI_NODE_GET_NEIGHBOR_CACHE,4,2 ## @NGM_HCI_NODE_GET_NEIGHBOR_CACHE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PZERO,4,2                      ## @PZERO
	.comm	_PCATCH,4,2                     ## @PCATCH
	.comm	_ng_btsocket_hci_raw_ioctl_timeout,4,2 ## @ng_btsocket_hci_raw_ioctl_timeout
	.comm	_hz,4,2                         ## @hz
	.comm	_NG_HCI_MAX_CON_NUM,4,2         ## @NG_HCI_MAX_CON_NUM
	.comm	_NGM_HCI_NODE_GET_CON_LIST,4,2  ## @NGM_HCI_NODE_GET_CON_LIST
	.comm	_NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK,4,2 ## @NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK
	.comm	_NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK,4,2 ## @NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK
	.comm	_NGM_HCI_NODE_GET_PACKET_MASK,4,2 ## @NGM_HCI_NODE_GET_PACKET_MASK
	.comm	_NGM_HCI_NODE_SET_PACKET_MASK,4,2 ## @NGM_HCI_NODE_SET_PACKET_MASK
	.comm	_NGM_HCI_NODE_GET_ROLE_SWITCH,4,2 ## @NGM_HCI_NODE_GET_ROLE_SWITCH
	.comm	_NGM_HCI_NODE_SET_ROLE_SWITCH,4,2 ## @NGM_HCI_NODE_SET_ROLE_SWITCH
	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTNAMES,4,2              ## @NGM_LISTNAMES
	.comm	_NG_HCI_NODE_TYPE,4,2           ## @NG_HCI_NODE_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_btsocket_hci_raw_control    ; -- Begin function ng_btsocket_hci_raw_control
	.p2align	2
_ng_btsocket_hci_raw_control:           ; @ng_btsocket_hci_raw_control
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x23, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_so2hci_raw_pcb
	mov	x22, x0
Lloh3:
	adrp	x8, _NG_NODESIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_NODESIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w24, w8, #1
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	cbz	x0, LBB0_5
; %bb.1:
Lloh8:
	adrp	x8, _ng_btsocket_hci_raw_node@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ng_btsocket_hci_raw_node@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	add	x19, x22, #12
	mov	x0, x19
	bl	_mtx_lock
	ldr	x3, [x22, #24]
	ldr	x8, [x3]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_mtx_unlock
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_58
; %bb.8:
	mov	x0, x20
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	bl	_mtx_unlock
Lloh18:
	adrp	x8, _EHOSTUNREACH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EHOSTUNREACH@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x24
	bl	_snprintf
	sub	w8, w23, #128
	cmp	w8, #18
	b.hi	LBB0_31
; %bb.11:
Lloh22:
	adrp	x9, lJTI0_0@PAGE
Lloh23:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	ldr	w8, [x22, #8]
Lloh24:
	adrp	x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.13:
Lloh27:
	adrp	x8, _NGM_HCI_NODE_SET_ROLE_SWITCH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NGM_HCI_NODE_SET_ROLE_SWITCH@GOTPAGEOFF]
	b	LBB0_36
LBB0_14:
	ldr	w8, [x22, #8]
Lloh29:
	adrp	x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGE
Lloh30:
	ldr	x9, [x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.15:
Lloh32:
	adrp	x8, _NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK@GOTPAGEOFF]
	b	LBB0_36
LBB0_16:
	ldr	w8, [x22, #8]
Lloh34:
	adrp	x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.17:
Lloh37:
	adrp	x8, _NGM_HCI_NODE_RESET_STAT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NGM_HCI_NODE_RESET_STAT@GOTPAGEOFF]
	b	LBB0_49
LBB0_18:
Lloh39:
	adrp	x8, _NGM_HCI_NODE_GET_ROLE_SWITCH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_ROLE_SWITCH@GOTPAGEOFF]
	b	LBB0_46
LBB0_19:
	ldr	w8, [x20]
Lloh41:
	adrp	x21, _EINVAL@GOTPAGE
Lloh42:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_55
; %bb.20:
Lloh43:
	adrp	x9, _NG_HCI_MAX_NEIGHBOR_NUM@GOTPAGE
Lloh44:
	ldr	x9, [x9, _NG_HCI_MAX_NEIGHBOR_NUM@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_55
; %bb.21:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_54
; %bb.22:
Lloh46:
	adrp	x8, _NGM_HCI_COOKIE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _NGM_HCI_COOKIE@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _NGM_HCI_NODE_GET_NEIGHBOR_CACHE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_NEIGHBOR_CACHE@GOTPAGEOFF]
	b	LBB0_29
LBB0_23:
Lloh51:
	adrp	x8, _NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK@GOTPAGE
Lloh52:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK@GOTPAGEOFF]
	b	LBB0_46
LBB0_24:
Lloh53:
	adrp	x8, _NGM_HCI_NODE_GET_DEBUG@GOTPAGE
Lloh54:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_DEBUG@GOTPAGEOFF]
	b	LBB0_46
LBB0_25:
	ldr	w8, [x20]
Lloh55:
	adrp	x21, _EINVAL@GOTPAGE
Lloh56:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	cbz	w8, LBB0_55
; %bb.26:
Lloh57:
	adrp	x9, _NG_HCI_MAX_CON_NUM@GOTPAGE
Lloh58:
	ldr	x9, [x9, _NG_HCI_MAX_CON_NUM@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_55
; %bb.27:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_54
; %bb.28:
Lloh60:
	adrp	x8, _NGM_HCI_COOKIE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _NGM_HCI_COOKIE@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
Lloh63:
	adrp	x8, _NGM_HCI_NODE_GET_CON_LIST@GOTPAGE
Lloh64:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_CON_LIST@GOTPAGEOFF]
LBB0_29:
	ldr	w2, [x8]
Lloh65:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh66:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh67:
	ldr	w4, [x8]
	mov	x0, #0
	mov	w3, #0
	bl	_NG_MKMESSAGE
Lloh68:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh69:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	b	LBB0_55
LBB0_30:
Lloh70:
	adrp	x8, _NGM_HCI_NODE_GET_BUFFER@GOTPAGE
Lloh71:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_BUFFER@GOTPAGEOFF]
	b	LBB0_46
LBB0_31:
Lloh72:
	adrp	x8, _EINVAL@GOTPAGE
Lloh73:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_52
LBB0_32:
	ldr	w8, [x22, #8]
Lloh74:
	adrp	x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGE
Lloh75:
	ldr	x9, [x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.33:
Lloh77:
	adrp	x8, _NGM_HCI_NODE_SET_PACKET_MASK@GOTPAGE
Lloh78:
	ldr	x8, [x8, _NGM_HCI_NODE_SET_PACKET_MASK@GOTPAGEOFF]
	b	LBB0_36
LBB0_34:
	ldr	w8, [x22, #8]
Lloh79:
	adrp	x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGE
Lloh80:
	ldr	x9, [x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.35:
Lloh82:
	adrp	x8, _NGM_HCI_NODE_SET_DEBUG@GOTPAGE
Lloh83:
	ldr	x8, [x8, _NGM_HCI_NODE_SET_DEBUG@GOTPAGEOFF]
LBB0_36:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	mov	w3, #4
	b	LBB0_50
LBB0_37:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_56
; %bb.38:
Lloh84:
	adrp	x8, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh85:
	ldr	x8, [x8, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
Lloh87:
	adrp	x8, _NGM_LISTNAMES@GOTPAGE
Lloh88:
	ldr	x8, [x8, _NGM_LISTNAMES@GOTPAGEOFF]
Lloh89:
	ldr	w2, [x8]
Lloh90:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh91:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh92:
	ldr	w4, [x8]
	mov	x0, #0
	mov	w3, #0
	bl	_NG_MKMESSAGE
Lloh93:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh94:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	b	LBB0_57
LBB0_39:
	ldr	w8, [x22, #8]
Lloh95:
	adrp	x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGE
Lloh96:
	ldr	x9, [x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.40:
Lloh98:
	adrp	x8, _NGM_HCI_NODE_INIT@GOTPAGE
Lloh99:
	ldr	x8, [x8, _NGM_HCI_NODE_INIT@GOTPAGEOFF]
	b	LBB0_49
LBB0_41:
Lloh100:
	adrp	x8, _NGM_HCI_NODE_GET_STATE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_STATE@GOTPAGEOFF]
	b	LBB0_46
LBB0_42:
Lloh102:
	adrp	x8, _NGM_HCI_NODE_GET_STAT@GOTPAGE
Lloh103:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_STAT@GOTPAGEOFF]
	b	LBB0_46
LBB0_43:
Lloh104:
	adrp	x8, _NGM_HCI_NODE_GET_PACKET_MASK@GOTPAGE
Lloh105:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_PACKET_MASK@GOTPAGEOFF]
	b	LBB0_46
LBB0_44:
Lloh106:
	adrp	x8, _NGM_HCI_NODE_GET_FEATURES@GOTPAGE
Lloh107:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_FEATURES@GOTPAGEOFF]
	b	LBB0_46
LBB0_45:
Lloh108:
	adrp	x8, _NGM_HCI_NODE_GET_BDADDR@GOTPAGE
Lloh109:
	ldr	x8, [x8, _NGM_HCI_NODE_GET_BDADDR@GOTPAGEOFF]
LBB0_46:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	mov	w4, #4
	bl	_ng_btsocket_hci_raw_send_sync_ngmsg
	mov	x20, x0
	b	LBB0_53
LBB0_47:
	ldr	w8, [x22, #8]
Lloh110:
	adrp	x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGE
Lloh111:
	ldr	x9, [x9, _NG_BTSOCKET_HCI_RAW_PRIVILEGED@GOTPAGEOFF]
Lloh112:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.48:
Lloh113:
	adrp	x8, _NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE@GOTPAGE
Lloh114:
	ldr	x8, [x8, _NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE@GOTPAGEOFF]
LBB0_49:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, #0
	mov	w3, #0
LBB0_50:
	bl	_ng_btsocket_hci_raw_send_ngmsg
	mov	x20, x0
	b	LBB0_53
LBB0_51:
Lloh115:
	adrp	x8, _EPERM@GOTPAGE
Lloh116:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_52:
	ldr	w20, [x8]
LBB0_53:
	mov	x0, x19
	bl	_mtx_unlock
	b	LBB0_7
LBB0_54:
Lloh117:
	adrp	x21, _EINVAL@GOTPAGE
Lloh118:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
LBB0_55:
	mov	x0, x19
	bl	_mtx_unlock
	ldr	w20, [x21]
	b	LBB0_7
LBB0_56:
Lloh119:
	adrp	x20, _EINVAL@GOTPAGE
Lloh120:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
LBB0_57:
	mov	x0, x19
	bl	_mtx_unlock
	ldr	w20, [x20]
	b	LBB0_7
LBB0_58:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh115, Lloh116
	.loh AdrpLdrGot	Lloh117, Lloh118
	.loh AdrpLdrGot	Lloh119, Lloh120
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_32-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_34-LBB0_12)>>2
	.byte	(LBB0_16-LBB0_12)>>2
	.byte	(LBB0_37-LBB0_12)>>2
	.byte	(LBB0_39-LBB0_12)>>2
	.byte	(LBB0_41-LBB0_12)>>2
	.byte	(LBB0_42-LBB0_12)>>2
	.byte	(LBB0_18-LBB0_12)>>2
	.byte	(LBB0_43-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
	.byte	(LBB0_23-LBB0_12)>>2
	.byte	(LBB0_44-LBB0_12)>>2
	.byte	(LBB0_24-LBB0_12)>>2
	.byte	(LBB0_25-LBB0_12)>>2
	.byte	(LBB0_30-LBB0_12)>>2
	.byte	(LBB0_45-LBB0_12)>>2
	.byte	(LBB0_47-LBB0_12)>>2
                                        ; -- End function
	.comm	_NG_NODESIZ,4,2                 ; @NG_NODESIZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ng_btsocket_hci_raw_node,8,3   ; @ng_btsocket_hci_raw_node
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:"

	.comm	_NGM_HCI_NODE_GET_STATE,4,2     ; @NGM_HCI_NODE_GET_STATE
	.comm	_NG_BTSOCKET_HCI_RAW_PRIVILEGED,4,2 ; @NG_BTSOCKET_HCI_RAW_PRIVILEGED
	.comm	_NGM_HCI_NODE_INIT,4,2          ; @NGM_HCI_NODE_INIT
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_NGM_HCI_NODE_GET_DEBUG,4,2     ; @NGM_HCI_NODE_GET_DEBUG
	.comm	_NGM_HCI_NODE_SET_DEBUG,4,2     ; @NGM_HCI_NODE_SET_DEBUG
	.comm	_NGM_HCI_NODE_GET_BUFFER,4,2    ; @NGM_HCI_NODE_GET_BUFFER
	.comm	_NGM_HCI_NODE_GET_BDADDR,4,2    ; @NGM_HCI_NODE_GET_BDADDR
	.comm	_NGM_HCI_NODE_GET_FEATURES,4,2  ; @NGM_HCI_NODE_GET_FEATURES
	.comm	_NGM_HCI_NODE_GET_STAT,4,2      ; @NGM_HCI_NODE_GET_STAT
	.comm	_NGM_HCI_NODE_RESET_STAT,4,2    ; @NGM_HCI_NODE_RESET_STAT
	.comm	_NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE,4,2 ; @NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE
	.comm	_NG_HCI_MAX_NEIGHBOR_NUM,4,2    ; @NG_HCI_MAX_NEIGHBOR_NUM
	.comm	_NGM_HCI_COOKIE,4,2             ; @NGM_HCI_COOKIE
	.comm	_NGM_HCI_NODE_GET_NEIGHBOR_CACHE,4,2 ; @NGM_HCI_NODE_GET_NEIGHBOR_CACHE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PZERO,4,2                      ; @PZERO
	.comm	_PCATCH,4,2                     ; @PCATCH
	.comm	_ng_btsocket_hci_raw_ioctl_timeout,4,2 ; @ng_btsocket_hci_raw_ioctl_timeout
	.comm	_hz,4,2                         ; @hz
	.comm	_NG_HCI_MAX_CON_NUM,4,2         ; @NG_HCI_MAX_CON_NUM
	.comm	_NGM_HCI_NODE_GET_CON_LIST,4,2  ; @NGM_HCI_NODE_GET_CON_LIST
	.comm	_NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK,4,2 ; @NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK
	.comm	_NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK,4,2 ; @NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK
	.comm	_NGM_HCI_NODE_GET_PACKET_MASK,4,2 ; @NGM_HCI_NODE_GET_PACKET_MASK
	.comm	_NGM_HCI_NODE_SET_PACKET_MASK,4,2 ; @NGM_HCI_NODE_SET_PACKET_MASK
	.comm	_NGM_HCI_NODE_GET_ROLE_SWITCH,4,2 ; @NGM_HCI_NODE_GET_ROLE_SWITCH
	.comm	_NGM_HCI_NODE_SET_ROLE_SWITCH,4,2 ; @NGM_HCI_NODE_SET_ROLE_SWITCH
	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTNAMES,4,2              ; @NGM_LISTNAMES
	.comm	_NG_HCI_NODE_TYPE,4,2           ; @NG_HCI_NODE_TYPE
.subsections_via_symbols
