	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_conn_change_link_key       ## -- Begin function hci_conn_change_link_key
	.p2align	4, 0x90
_hci_conn_change_link_key:              ## @hci_conn_change_link_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_BT_DBG
	movq	_HCI_CONN_AUTH_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, -16(%rbp)
	movl	(%rbx), %edi
	movq	_HCI_OP_CHANGE_CONN_LINK_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rcx
	movl	$4, %edx
	callq	_hci_send_cmd
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p"

	.comm	_HCI_CONN_AUTH_PEND,4,2         ## @HCI_CONN_AUTH_PEND
	.comm	_HCI_OP_CHANGE_CONN_LINK_KEY,4,2 ## @HCI_OP_CHANGE_CONN_LINK_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_conn_change_link_key       ; -- Begin function hci_conn_change_link_key
	.p2align	2
_hci_conn_change_link_key:              ; @hci_conn_change_link_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
Lloh2:
	adrp	x8, _HCI_CONN_AUTH_PEND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCI_CONN_AUTH_PEND@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_and_set_bit
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_cpu_to_le16
	str	w0, [sp, #8]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _HCI_OP_CHANGE_CONN_LINK_KEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCI_OP_CHANGE_CONN_LINK_KEY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	w2, #4
	bl	_hci_send_cmd
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p"

	.comm	_HCI_CONN_AUTH_PEND,4,2         ; @HCI_CONN_AUTH_PEND
	.comm	_HCI_OP_CHANGE_CONN_LINK_KEY,4,2 ; @HCI_OP_CHANGE_CONN_LINK_KEY
.subsections_via_symbols
