	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8192ce_bt_hw_init           ## -- Begin function rtl8192ce_bt_hw_init
	.p2align	4, 0x90
_rtl8192ce_bt_hw_init:                  ## @rtl8192ce_bt_hw_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_rtl_priv
	cmpq	$0, 24(%rax)
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_BT_CSR_BC4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_BT_CSR_BC8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_3:
	cmpl	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	_REG_GPIO_MUXCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$160, %edx
	callq	_rtl_write_byte
LBB0_5:
	movq	%r15, %rdi
	movl	$1277, %esi                     ## imm = 0x4FD
	callq	_rtl_read_byte
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_BIT_OFFSET_LEN_MASK_32
	movl	%eax, %r12d
	andl	%ebx, %r12d
	cmpl	$1, 8(%r15)
	movl	$0, %ebx
	je	LBB0_7
## %bb.6:
	movl	$1, %edi
	movl	$1, %esi
	callq	_BIT_OFFSET_LEN_MASK_32
	movl	%eax, %ebx
LBB0_7:
	orl	%r12d, %ebx
	movq	16(%r15), %rax
	movq	_BT_SCO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movl	$2, %edi
	movl	$1, %esi
	callq	_BIT_OFFSET_LEN_MASK_32
	movl	%eax, %r14d
LBB0_9:
	orl	%r14d, %ebx
	movq	%r15, %rdi
	movl	$1277, %esi                     ## imm = 0x4FD
	movl	%ebx, %edx
	callq	_rtl_write_byte
	movq	_REG_BT_COEX_TABLE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	movl	$-1431659862, %edx              ## imm = 0xAAAA9AAA
	callq	_rtl_write_dword
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	movl	$-4390848, %edx                 ## imm = 0xFFBD0040
	callq	_rtl_write_dword
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%r15, %rdi
	movl	$1073741840, %edx               ## imm = 0x40000010
	callq	_rtl_write_dword
	movq	32(%r15), %rax
	movq	_RF_1T1R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	_ROFDM0_TRXPATHENABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	movl	$1, %edi
	movl	$1, %esi
	callq	_BIT_OFFSET_LEN_MASK_32
	notl	%eax
	andl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_byte
	movq	_ROFDM1_TRXPATHENABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	movl	$1, %edi
	movl	$1, %esi
	callq	_BIT_OFFSET_LEN_MASK_32
	notl	%eax
	andl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_write_byte                 ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_CSR_BC4,8,3                 ## @BT_CSR_BC4
	.comm	_BT_CSR_BC8,8,3                 ## @BT_CSR_BC8
	.comm	_REG_GPIO_MUXCFG,4,2            ## @REG_GPIO_MUXCFG
	.comm	_BT_SCO,8,3                     ## @BT_SCO
	.comm	_REG_BT_COEX_TABLE,8,3          ## @REG_BT_COEX_TABLE
	.comm	_RF_1T1R,8,3                    ## @RF_1T1R
	.comm	_ROFDM0_TRXPATHENABLE,4,2       ## @ROFDM0_TRXPATHENABLE
	.comm	_ROFDM1_TRXPATHENABLE,4,2       ## @ROFDM1_TRXPATHENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8192ce_bt_hw_init           ; -- Begin function rtl8192ce_bt_hw_init
	.p2align	2
_rtl8192ce_bt_hw_init:                  ; @rtl8192ce_bt_hw_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_rtl_priv
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BT_CSR_BC4@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BT_CSR_BC4@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _BT_CSR_BC8@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BT_CSR_BC8@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.2:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _REG_GPIO_MUXCFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_GPIO_MUXCFG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #160
	bl	_rtl_write_byte
LBB0_4:
	mov	x0, x19
	mov	w1, #1277
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #0
	mov	w1, #1
	bl	_BIT_OFFSET_LEN_MASK_32
	mov	x8, x0
	mov	w0, #0
	and	w20, w8, w20
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #1
	mov	w1, #1
	bl	_BIT_OFFSET_LEN_MASK_32
LBB0_6:
	orr	w20, w0, w20
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _BT_SCO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BT_SCO@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #2
	mov	w1, #1
	bl	_BIT_OFFSET_LEN_MASK_32
LBB0_9:
	orr	w2, w20, w0
	mov	x0, x19
	mov	w1, #1277
	bl	_rtl_write_byte
Lloh12:
	adrp	x20, _REG_BT_COEX_TABLE@GOTPAGE
Lloh13:
	ldr	x20, [x20, _REG_BT_COEX_TABLE@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, #4
	mov	x0, x19
	mov	w2, #39594
	movk	w2, #43690, lsl #16
	bl	_rtl_write_dword
	ldr	x8, [x20]
	add	x1, x8, #8
	mov	x0, x19
	mov	w2, #64
	movk	w2, #65469, lsl #16
	bl	_rtl_write_dword
	ldr	x8, [x20]
	add	x1, x8, #12
	mov	x0, x19
	mov	w2, #16
	movk	w2, #16384, lsl #16
	bl	_rtl_write_dword
	ldr	x8, [x19, #32]
Lloh14:
	adrp	x9, _RF_1T1R@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RF_1T1R@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
Lloh17:
	adrp	x21, _ROFDM0_TRXPATHENABLE@GOTPAGE
Lloh18:
	ldr	x21, [x21, _ROFDM0_TRXPATHENABLE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #1
	mov	w1, #1
	bl	_BIT_OFFSET_LEN_MASK_32
	bic	w2, w20, w0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl_write_byte
Lloh19:
	adrp	x21, _ROFDM1_TRXPATHENABLE@GOTPAGE
Lloh20:
	ldr	x21, [x21, _ROFDM1_TRXPATHENABLE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #1
	mov	w1, #1
	bl	_BIT_OFFSET_LEN_MASK_32
	bic	w2, w20, w0
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rtl_write_byte
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_CSR_BC4,8,3                 ; @BT_CSR_BC4
	.comm	_BT_CSR_BC8,8,3                 ; @BT_CSR_BC8
	.comm	_REG_GPIO_MUXCFG,4,2            ; @REG_GPIO_MUXCFG
	.comm	_BT_SCO,8,3                     ; @BT_SCO
	.comm	_REG_BT_COEX_TABLE,8,3          ; @REG_BT_COEX_TABLE
	.comm	_RF_1T1R,8,3                    ; @RF_1T1R
	.comm	_ROFDM0_TRXPATHENABLE,4,2       ; @ROFDM0_TRXPATHENABLE
	.comm	_ROFDM1_TRXPATHENABLE,4,2       ; @ROFDM1_TRXPATHENABLE
.subsections_via_symbols
