	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_cc_write_voice_setting
_hci_cc_write_voice_setting:            ## @hci_cc_write_voice_setting
	.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, %r14
	movq	(%rsi), %rax
	movq	(%rax), %rbx
	movl	24(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_BT_DBG
	testq	%rbx, %rbx
	je	LBB0_1
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_HCI_OP_WRITE_VOICE_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hci_sent_cmd_data
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rdi
	callq	_get_unaligned_le16
	cmpq	%rax, (%r14)
	je	LBB0_4
## %bb.3:
	movq	%rax, (%r14)
	movl	24(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rdx
	callq	_BT_DBG
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.5:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_tasklet_disable
	movq	_HCI_NOTIFY_VOICE_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*16(%r14)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tasklet_enable                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s status 0x%x"

	.comm	_HCI_OP_WRITE_VOICE_SETTING,4,2 ## @HCI_OP_WRITE_VOICE_SETTING
L_.str.1:                               ## @.str.1
	.asciz	"%s voice setting 0x%04x"

	.comm	_HCI_NOTIFY_VOICE_SETTING,4,2   ## @HCI_NOTIFY_VOICE_SETTING
	.no_dead_strip	_hci_cc_write_voice_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_cc_write_voice_setting
_hci_cc_write_voice_setting:            ; @hci_cc_write_voice_setting
	.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
	ldr	x8, [x1]
	ldr	x20, [x8]
	ldr	w1, [x0, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_BT_DBG
	cbz	x20, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x8, _HCI_OP_WRITE_VOICE_SETTING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCI_OP_WRITE_VOICE_SETTING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hci_sent_cmd_data
	cbz	x0, LBB0_1
; %bb.3:
	bl	_get_unaligned_le16
	ldr	x8, [x19]
	cmp	x8, x0
	b.eq	LBB0_1
; %bb.4:
	mov	x2, x0
	str	x0, [x19]
	ldr	w1, [x19, #24]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_DBG
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_1
; %bb.5:
	add	x20, x19, #8
	mov	x0, x20
	bl	_tasklet_disable
	ldr	x8, [x19, #16]
Lloh7:
	adrp	x9, _HCI_NOTIFY_VOICE_SETTING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HCI_NOTIFY_VOICE_SETTING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tasklet_enable
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s status 0x%x"

	.comm	_HCI_OP_WRITE_VOICE_SETTING,4,2 ; @HCI_OP_WRITE_VOICE_SETTING
l_.str.1:                               ; @.str.1
	.asciz	"%s voice setting 0x%04x"

	.comm	_HCI_NOTIFY_VOICE_SETTING,4,2   ; @HCI_NOTIFY_VOICE_SETTING
	.no_dead_strip	_hci_cc_write_voice_setting
.subsections_via_symbols
