	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_conn_auth
_hci_conn_auth:                         ## @hci_conn_auth
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_BT_DBG
	cmpq	%r14, (%rbx)
	jge	LBB0_2
## %bb.1:
	movq	%r14, (%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	_HCI_LM_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r14d
	testl	%eax, 8(%rbx)
	jne	LBB0_5
LBB0_3:
	movq	%r15, 24(%rbx)
	movq	_HCI_CONN_AUTH_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_test_and_set_bit
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	16(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, -32(%rbp)
	movl	12(%rbx), %edi
	movq	_HCI_OP_AUTH_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	movl	$4, %edx
	callq	_hci_send_cmd
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p"

	.comm	_HCI_LM_AUTH,4,2                ## @HCI_LM_AUTH
	.comm	_HCI_CONN_AUTH_PEND,4,2         ## @HCI_CONN_AUTH_PEND
	.comm	_HCI_OP_AUTH_REQUESTED,4,2      ## @HCI_OP_AUTH_REQUESTED
	.no_dead_strip	_hci_conn_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_conn_auth
_hci_conn_auth:                         ; @hci_conn_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
	ldr	x8, [x19]
	cmp	x8, x21
	b.ge	LBB0_2
; %bb.1:
	str	x21, [x19]
	b	LBB0_4
LBB0_2:
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x9, _HCI_LM_AUTH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HCI_LM_AUTH@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_7
LBB0_4:
	str	x20, [x19, #24]
Lloh5:
	adrp	x8, _HCI_CONN_AUTH_PEND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCI_CONN_AUTH_PEND@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_and_set_bit
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #16]
	bl	_cpu_to_le16
	str	w0, [sp, #8]
	ldr	w0, [x19, #12]
Lloh8:
	adrp	x8, _HCI_OP_AUTH_REQUESTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCI_OP_AUTH_REQUESTED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	w2, #4
	bl	_hci_send_cmd
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p"

	.comm	_HCI_LM_AUTH,4,2                ; @HCI_LM_AUTH
	.comm	_HCI_CONN_AUTH_PEND,4,2         ; @HCI_CONN_AUTH_PEND
	.comm	_HCI_OP_AUTH_REQUESTED,4,2      ; @HCI_OP_AUTH_REQUESTED
	.no_dead_strip	_hci_conn_auth
.subsections_via_symbols
