	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a1ant_auto_rate_fb_retry
_btc8821a1ant_auto_rate_fb_retry:       ## @btc8821a1ant_auto_rate_fb_retry
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	movq	_coex_dm@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%edx, (%rax)
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	cmpl	%edx, 4(%rax)
	je	LBB0_9
LBB0_2:
	cmpl	$1, %edx
	je	LBB0_5
## %bb.3:
	testl	%edx, %edx
	jne	LBB0_9
## %bb.4:
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	movl	$1072, %esi                     ## imm = 0x430
	callq	*(%rbx)
	movq	(%r14), %rax
	movl	12(%rax), %edx
	movq	%rbx, %rdi
	movl	$1076, %esi                     ## imm = 0x434
	callq	*(%rbx)
	jmp	LBB0_9
LBB0_5:
	movq	_BTC_GET_BL_WIFI_UNDER_B_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	-28(%rbp), %r15d
	movq	%rbx, %rdi
	movl	$1072, %esi                     ## imm = 0x430
	xorl	%edx, %edx
	callq	*(%rbx)
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	$1076, %esi                     ## imm = 0x434
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movl	$16843009, %edx                 ## imm = 0x1010101
	jmp	LBB0_8
LBB0_7:
	movl	$67305985, %edx                 ## imm = 0x4030201
LBB0_8:
	callq	*%rax
LBB0_9:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_coex_dm,8,3                    ## @coex_dm
	.comm	_BTC_GET_BL_WIFI_UNDER_B_MODE,4,2 ## @BTC_GET_BL_WIFI_UNDER_B_MODE
	.no_dead_strip	_btc8821a1ant_auto_rate_fb_retry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8821a1ant_auto_rate_fb_retry
_btc8821a1ant_auto_rate_fb_retry:       ; @btc8821a1ant_auto_rate_fb_retry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _coex_dm@GOTPAGE
Lloh1:
	ldr	x20, [x20, _coex_dm@GOTPAGEOFF]
	ldr	x8, [x20]
	str	w2, [x8]
	cbnz	w1, LBB0_2
; %bb.1:
	ldr	w9, [x8, #4]
	cmp	w9, w2
	b.eq	LBB0_9
LBB0_2:
	cmp	w2, #1
	b.eq	LBB0_5
; %bb.3:
	cbnz	w2, LBB0_9
; %bb.4:
	ldr	x9, [x19]
	ldr	w2, [x8, #8]
	mov	x0, x19
	mov	w1, #1072
	blr	x9
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w2, [x9, #12]
	mov	x0, x19
	mov	w1, #1076
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _BTC_GET_BL_WIFI_UNDER_B_MODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_UNDER_B_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w21, [sp, #12]
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1072
	mov	w2, #0
	blr	x8
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1076
	cbz	w21, LBB0_7
; %bb.6:
	mov	w2, #16843009
	b	LBB0_8
LBB0_7:
	mov	w2, #513
	movk	w2, #1027, lsl #16
LBB0_8:
	blr	x8
LBB0_9:
	ldr	x8, [x20]
	ldr	w9, [x8]
	str	w9, [x8, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_coex_dm,8,3                    ; @coex_dm
	.comm	_BTC_GET_BL_WIFI_UNDER_B_MODE,4,2 ; @BTC_GET_BL_WIFI_UNDER_B_MODE
	.no_dead_strip	_btc8821a1ant_auto_rate_fb_retry
.subsections_via_symbols
