	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8723b1ant_power_on_setting ## -- Begin function ex_btc8723b1ant_power_on_setting
	.p2align	4, 0x90
_ex_btc8723b1ant_power_on_setting:      ## @ex_btc8723b1ant_power_on_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	80(%rdi), %rdi
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_RT_TRACE
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	movl	$103, %esi
	movl	$32, %edx
	callq	*48(%rbx)
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	*8(%rbx)
	movq	_BIT0@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BIT1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%eax, %edx
	callq	*56(%rbx)
	movq	%rbx, %rdi
	movl	$1893, %esi                     ## imm = 0x765
	movl	$24, %edx
	callq	*48(%rbx)
	movq	%rbx, %rdi
	movl	$1902, %esi                     ## imm = 0x76E
	movl	$4, %edx
	callq	*48(%rbx)
	movq	16(%rbx), %rax
	movq	_BTC_INTF_USB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	xorl	%edx, %edx
	callq	*40(%rbx)
	movq	%rbx, %rdi
	movl	$65032, %esi                    ## imm = 0xFE08
	movl	$1, %edx
	callq	*24(%rbx)
	movq	_BTC_ANTENNA_AT_AUX_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	jmp	LBB0_11
LBB0_2:
	movl	64(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	movl	$640, %edx                      ## imm = 0x280
	callq	*40(%rbx)
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	movl	$1, -20(%rbp)
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	xorl	%edx, %edx
	callq	*40(%rbx)
	movq	_BTC_ANTENNA_AT_AUX_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	movl	$0, -20(%rbp)
	movl	$1, %r14d
LBB0_6:
	movq	_BTC_SET_ACT_ANTPOSREGRISTRY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*32(%rbx)
	movq	16(%rbx), %rax
	movq	_BTC_INTF_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$900, %esi                      ## imm = 0x384
	jmp	LBB0_10
LBB0_8:
	movq	_BTC_INTF_SDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	movl	$96, %esi
LBB0_10:
	movl	%r14d, %edx
	callq	*24(%rbx)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xxxxxxxxxxxxxxxx Execute 8723b 1-Ant PowerOn Setting xxxxxxxxxxxxxxxx!!\n"

	.comm	_BIT0,4,2                       ## @BIT0
	.comm	_BIT1,4,2                       ## @BIT1
	.comm	_BTC_INTF_USB,8,3               ## @BTC_INTF_USB
	.comm	_BTC_ANTENNA_AT_AUX_PORT,8,3    ## @BTC_ANTENNA_AT_AUX_PORT
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,8,3   ## @BTC_ANTENNA_AT_MAIN_PORT
	.comm	_BTC_SET_ACT_ANTPOSREGRISTRY_CTRL,4,2 ## @BTC_SET_ACT_ANTPOSREGRISTRY_CTRL
	.comm	_BTC_INTF_PCI,8,3               ## @BTC_INTF_PCI
	.comm	_BTC_INTF_SDIO,8,3              ## @BTC_INTF_SDIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8723b1ant_power_on_setting ; -- Begin function ex_btc8723b1ant_power_on_setting
	.p2align	2
_ex_btc8723b1ant_power_on_setting:      ; @ex_btc8723b1ant_power_on_setting
	.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
	ldr	x0, [x0, #80]
Lloh0:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #48]
	mov	x0, x19
	mov	w1, #103
	mov	w2, #32
	blr	x8
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #2
	blr	x8
	ldr	x8, [x19, #56]
Lloh8:
	adrp	x9, _BIT0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BIT0@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w9, w9, w0
Lloh11:
	adrp	x10, _BIT1@GOTPAGE
Lloh12:
	ldr	x10, [x10, _BIT1@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w2, w9, w10
	mov	x0, x19
	mov	w1, #2
	blr	x8
	ldr	x8, [x19, #48]
	mov	x0, x19
	mov	w1, #1893
	mov	w2, #24
	blr	x8
	ldr	x8, [x19, #48]
	mov	x0, x19
	mov	w1, #1902
	mov	w2, #4
	blr	x8
	ldr	x8, [x19, #16]
Lloh14:
	adrp	x9, _BTC_INTF_USB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BTC_INTF_USB@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #2376
	mov	w2, #0
	blr	x8
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #65032
	mov	w2, #1
	blr	x8
Lloh17:
	adrp	x8, _BTC_ANTENNA_AT_AUX_PORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTC_ANTENNA_AT_AUX_PORT@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19, #72]
	b	LBB0_12
LBB0_2:
	ldr	w8, [x19, #64]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.3:
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #2376
	mov	w2, #640
	blr	x8
	mov	w20, #0
Lloh20:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19, #72]
	mov	w8, #1
	str	w8, [sp, #12]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #2376
	mov	w2, #0
	blr	x8
Lloh23:
	adrp	x8, _BTC_ANTENNA_AT_AUX_PORT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BTC_ANTENNA_AT_AUX_PORT@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x19, #72]
	str	wzr, [sp, #12]
	mov	w20, #1
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	ldr	x8, [x19, #32]
Lloh26:
	adrp	x9, _BTC_SET_ACT_ANTPOSREGRISTRY_CTRL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BTC_SET_ACT_ANTPOSREGRISTRY_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
Lloh29:
	adrp	x9, _BTC_INTF_PCI@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BTC_INTF_PCI@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #900
	b	LBB0_11
LBB0_9:
Lloh32:
	adrp	x9, _BTC_INTF_SDIO@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BTC_INTF_SDIO@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #96
LBB0_11:
	mov	x2, x20
	blr	x8
LBB0_12:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xxxxxxxxxxxxxxxx Execute 8723b 1-Ant PowerOn Setting xxxxxxxxxxxxxxxx!!\n"

	.comm	_BIT0,4,2                       ; @BIT0
	.comm	_BIT1,4,2                       ; @BIT1
	.comm	_BTC_INTF_USB,8,3               ; @BTC_INTF_USB
	.comm	_BTC_ANTENNA_AT_AUX_PORT,8,3    ; @BTC_ANTENNA_AT_AUX_PORT
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,8,3   ; @BTC_ANTENNA_AT_MAIN_PORT
	.comm	_BTC_SET_ACT_ANTPOSREGRISTRY_CTRL,4,2 ; @BTC_SET_ACT_ANTPOSREGRISTRY_CTRL
	.comm	_BTC_INTF_PCI,8,3               ; @BTC_INTF_PCI
	.comm	_BTC_INTF_SDIO,8,3              ; @BTC_INTF_SDIO
.subsections_via_symbols
