	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723bu_write_btreg
_rtl8723bu_write_btreg:                 ## @rtl8723bu_write_btreg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_H2C_8723B_BT_MP_OPER@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)
	movl	$0, -88(%rbp)
	movq	_BT_MP_OP_WRITE_REG_VALUE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -72(%rbp)
	movq	%r12, -56(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	callq	_rtl8xxxu_gen2_h2c_cmd
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)
	movl	$16, -88(%rbp)
	movq	(%r14), %rax
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	callq	_rtl8xxxu_gen2_h2c_cmd
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2C_8723B_BT_MP_OPER,8,3       ## @H2C_8723B_BT_MP_OPER
	.comm	_BT_MP_OP_WRITE_REG_VALUE,8,3   ## @BT_MP_OP_WRITE_REG_VALUE
	.no_dead_strip	_rtl8723bu_write_btreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8723bu_write_btreg
_rtl8723bu_write_btreg:                 ; @rtl8723bu_write_btreg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x22, _H2C_8723B_BT_MP_OPER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _H2C_8723B_BT_MP_OPER@GOTPAGEOFF]
	ldr	x8, [x22]
	str	wzr, [sp, #8]
Lloh2:
	adrp	x23, _BT_MP_OP_WRITE_REG_VALUE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BT_MP_OP_WRITE_REG_VALUE@GOTPAGEOFF]
	ldr	x9, [x23]
	stp	x9, x8, [sp, #24]
	str	x19, [sp, #40]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #40
	bl	_rtl8xxxu_gen2_h2c_cmd
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x10, [x22]
	mov	w8, #16
	str	w8, [sp, #8]
	ldr	x8, [x23]
	stp	x8, x10, [sp, #24]
	str	x20, [sp, #16]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #40
	bl	_rtl8xxxu_gen2_h2c_cmd
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_H2C_8723B_BT_MP_OPER,8,3       ; @H2C_8723B_BT_MP_OPER
	.comm	_BT_MP_OP_WRITE_REG_VALUE,8,3   ; @BT_MP_OP_WRITE_REG_VALUE
	.no_dead_strip	_rtl8723bu_write_btreg
.subsections_via_symbols
