	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8723b2ant_set_ant_path
_btc8723b2ant_set_ant_path:             ## @btc8723b2ant_set_ant_path
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	_BTC_GET_BL_EXT_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	*56(%rdi)
	movq	_BTC_GET_U4_WIFI_FW_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*56(%rbx)
	movl	-44(%rbp), %eax
	cmpl	$786432, %eax                   ## imm = 0xC0000
	setl	%cl
	cmpl	$0, -48(%rbp)
	setne	%r12b
	orb	%cl, %r12b
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	movl	$57, %esi
	movl	$8, %edx
	movl	$1, %ecx
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	$2420, %esi                     ## imm = 0x974
	movl	$255, %edx
	callq	*32(%rbx)
	movq	%rbx, %rdi
	movl	$2372, %esi                     ## imm = 0x944
	movl	$3, %edx
	movl	$3, %ecx
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	$2352, %esi                     ## imm = 0x930
	movl	$119, %edx
	callq	*32(%rbx)
	movq	%rbx, %rdi
	movl	$103, %esi
	movl	$32, %edx
	movl	$1, %ecx
	callq	*16(%rbx)
	cmpl	$1572864, -44(%rbp)             ## imm = 0x180000
	jl	LBB0_3
## %bb.2:
	movl	$1, -40(%rbp)
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$110, %esi
	movl	$1, %edx
	callq	*40(%rbx)
	jmp	LBB0_4
LBB0_6:
	cmpl	$1572864, %eax                  ## imm = 0x180000
	jl	LBB0_8
## %bb.7:
	movl	$0, -40(%rbp)
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$110, %esi
	movl	$1, %edx
	callq	*40(%rbx)
	testb	%r12b, %r12b
	jne	LBB0_10
	jmp	LBB0_15
LBB0_3:
	movq	%rbx, %rdi
	movl	$1893, %esi                     ## imm = 0x765
	movl	$24, %edx
	callq	*32(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	xorl	%edx, %edx
	callq	*24(%rbx)
	movq	_BTC_RF_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1048575, %ecx                  ## imm = 0xFFFFF
	xorl	%r8d, %r8d
	callq	*48(%rbx)
	movq	64(%rbx), %rax
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movl	%edx, -40(%rbp)
	testb	%r12b, %r12b
	je	LBB0_14
## %bb.5:
	movl	$1, -36(%rbp)
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$101, %esi
	movl	$2, %edx
	callq	*40(%rbx)
	movq	%rbx, %rdi
	movl	$76, %esi
	callq	*(%rbx)
	movq	_BIT23@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_BIT24@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$76, %esi
	callq	*24(%rbx)
	jmp	LBB0_10
LBB0_14:
	movl	$0, -36(%rbp)
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$101, %esi
	movl	$2, %edx
	callq	*40(%rbx)
	movq	%rbx, %rdi
	movl	$76, %esi
	callq	*(%rbx)
	movq	_BIT23@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BIT24@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	movl	$76, %esi
	callq	*24(%rbx)
	jmp	LBB0_15
LBB0_8:
	movq	%rbx, %rdi
	movl	$1893, %esi                     ## imm = 0x765
	xorl	%edx, %edx
	callq	*32(%rbx)
	testb	%r12b, %r12b
	je	LBB0_15
LBB0_10:
	movq	64(%rbx), %rax
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	movl	$640, %edx                      ## imm = 0x280
	cmovel	%esi, %edx
	movq	%rbx, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	callq	*8(%rbx)
	cmpl	$129, %r14d
	je	LBB0_13
## %bb.11:
	cmpl	$128, %r14d
	jne	LBB0_20
## %bb.12:
	movq	%rbx, %rdi
	movl	$2348, %esi                     ## imm = 0x92C
	movl	$3, %edx
	movl	$1, %ecx
	callq	*16(%rbx)
	jmp	LBB0_20
LBB0_15:
	movq	%rbx, %rdi
	movl	$100, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	*16(%rbx)
	cmpl	$129, %r14d
	je	LBB0_18
## %bb.16:
	cmpl	$128, %r14d
	jne	LBB0_20
## %bb.17:
	movq	%rbx, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	xorl	%edx, %edx
	jmp	LBB0_19
LBB0_13:
	movq	%rbx, %rdi
	movl	$2348, %esi                     ## imm = 0x92C
	movl	$3, %edx
	movl	$2, %ecx
	callq	*16(%rbx)
	jmp	LBB0_20
LBB0_18:
	movq	%rbx, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	movl	$640, %edx                      ## imm = 0x280
LBB0_19:
	callq	*8(%rbx)
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_GET_BL_EXT_SWITCH,4,2      ## @BTC_GET_BL_EXT_SWITCH
	.comm	_BTC_GET_U4_WIFI_FW_VER,4,2     ## @BTC_GET_U4_WIFI_FW_VER
	.comm	_BTC_RF_A,4,2                   ## @BTC_RF_A
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,8,3   ## @BTC_ANTENNA_AT_MAIN_PORT
	.comm	_BIT23,4,2                      ## @BIT23
	.comm	_BIT24,4,2                      ## @BIT24
	.no_dead_strip	_btc8723b2ant_set_ant_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8723b2ant_set_ant_path
_btc8723b2ant_set_ant_path:             ; @btc8723b2ant_set_ant_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w24, #1572863
	stp	xzr, xzr, [sp]
	ldr	x8, [x0, #56]
Lloh0:
	adrp	x9, _BTC_GET_BL_EXT_SWITCH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_GET_BL_EXT_SWITCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #8
	blr	x8
	ldr	x8, [x19, #56]
Lloh3:
	adrp	x9, _BTC_GET_U4_WIFI_FW_VER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_FW_VER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldp	w9, w8, [sp, #8]
	cmp	w8, #192, lsl #12               ; =786432
	ccmp	w9, #0, #0, ge
	cset	w23, ne
Lloh6:
	adrp	x22, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
	cbz	w21, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	mov	w21, #1
	mov	x0, x19
	mov	w1, #57
	mov	w2, #8
	mov	w3, #1
	blr	x8
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #2420
	mov	w2, #255
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #2372
	mov	w2, #3
	mov	w3, #3
	blr	x8
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #2352
	mov	w2, #119
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #103
	mov	w2, #32
	mov	w3, #1
	blr	x8
	ldr	w8, [sp, #12]
	cmp	w8, w24
	b.le	LBB0_5
; %bb.2:
	str	w21, [sp]
	ldr	x8, [x19, #40]
	mov	x3, sp
	mov	x0, x19
	mov	w1, #110
	mov	w2, #1
	blr	x8
	b	LBB0_6
LBB0_3:
	cmp	w8, w24
	b.le	LBB0_9
; %bb.4:
	str	wzr, [sp]
	ldr	x8, [x19, #40]
	mov	x3, sp
	mov	x0, x19
	mov	w1, #110
	mov	w2, #1
	blr	x8
	tbnz	w23, #0, LBB0_10
	b	LBB0_13
LBB0_5:
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #1893
	mov	w2, #24
	blr	x8
LBB0_6:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #2376
	mov	w2, #0
	blr	x8
	ldr	x8, [x19, #48]
Lloh8:
	adrp	x9, _BTC_RF_A@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BTC_RF_A@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	w21, #1
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1048575
	mov	w4, #0
	blr	x8
	ldr	x8, [x19, #64]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w8, ne
	str	w8, [sp]
	tbz	w23, #0, LBB0_8
; %bb.7:
	str	w21, [sp, #4]
	ldr	x8, [x19, #40]
	mov	x3, sp
	mov	x0, x19
	mov	w1, #101
	mov	w2, #2
	blr	x8
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #76
	blr	x8
Lloh11:
	adrp	x8, _BIT23@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BIT23@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh14:
	adrp	x9, _BIT24@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BIT24@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #76
	blr	x8
	b	LBB0_10
LBB0_8:
	str	wzr, [sp, #4]
	ldr	x8, [x19, #40]
	mov	x3, sp
	mov	x0, x19
	mov	w1, #101
	mov	w2, #2
	blr	x8
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #76
	blr	x8
Lloh17:
	adrp	x8, _BIT23@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BIT23@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh20:
	adrp	x9, _BIT24@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BIT24@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bic	w2, w8, w9
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #76
	blr	x8
	b	LBB0_13
LBB0_9:
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #1893
	mov	w2, #0
	blr	x8
	tbz	w23, #0, LBB0_13
LBB0_10:
	ldr	x8, [x19, #64]
	ldr	x9, [x22]
	ldr	x10, [x19, #8]
	cmp	x8, x9
	mov	w8, #640
	csel	w2, wzr, w8, eq
	mov	x0, x19
	mov	w1, #2376
	blr	x10
	cmp	w20, #129
	b.eq	LBB0_16
; %bb.11:
	cmp	w20, #128
	b.ne	LBB0_19
; %bb.12:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #2348
	mov	w2, #3
	mov	w3, #1
	blr	x8
	b	LBB0_19
LBB0_13:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #100
	mov	w2, #1
	mov	w3, #0
	blr	x8
	cmp	w20, #129
	b.eq	LBB0_17
; %bb.14:
	cmp	w20, #128
	b.ne	LBB0_19
; %bb.15:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #2376
	mov	w2, #0
	b	LBB0_18
LBB0_16:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #2348
	mov	w2, #3
	mov	w3, #2
	blr	x8
	b	LBB0_19
LBB0_17:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #2376
	mov	w2, #640
LBB0_18:
	blr	x8
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_GET_BL_EXT_SWITCH,4,2      ; @BTC_GET_BL_EXT_SWITCH
	.comm	_BTC_GET_U4_WIFI_FW_VER,4,2     ; @BTC_GET_U4_WIFI_FW_VER
	.comm	_BTC_RF_A,4,2                   ; @BTC_RF_A
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,8,3   ; @BTC_ANTENNA_AT_MAIN_PORT
	.comm	_BIT23,4,2                      ; @BIT23
	.comm	_BIT24,4,2                      ; @BIT24
	.no_dead_strip	_btc8723b2ant_set_ant_path
.subsections_via_symbols
