	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a2ant_is_wifi_status_changed
_btc8821a2ant_is_wifi_status_changed:   ## @btc8821a2ant_is_wifi_status_changed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movq	_BTC_GET_BL_WIFI_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	*(%rdi)
	movq	_BTC_GET_BL_WIFI_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_BTC_GET_BL_HS_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_BTC_GET_BL_WIFI_4_WAY_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	cmpl	$0, -12(%rbp)
	je	LBB0_6
## %bb.1:
	movl	-24(%rbp), %eax
	cmpl	_btc8821a2ant_is_wifi_status_changed.pre_wifi_busy(%rip), %eax
	jne	LBB0_7
## %bb.2:
	movl	-20(%rbp), %eax
	cmpl	_btc8821a2ant_is_wifi_status_changed.pre_under_4way(%rip), %eax
	jne	LBB0_8
## %bb.3:
	movl	-16(%rbp), %eax
	cmpl	_btc8821a2ant_is_wifi_status_changed.pre_bt_hs_on(%rip), %eax
	jne	LBB0_9
## %bb.4:
	movq	_BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_btc8821a2ant_wifi_rssi_state
	movq	%rax, %rcx
	movq	_BTC_RSSI_STATE_HIGH@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_11
## %bb.5:
	movq	_BTC_RSSI_STATE_LOW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_11
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movl	%eax, _btc8821a2ant_is_wifi_status_changed.pre_wifi_busy(%rip)
	jmp	LBB0_10
LBB0_8:
	movl	%eax, _btc8821a2ant_is_wifi_status_changed.pre_under_4way(%rip)
	jmp	LBB0_10
LBB0_9:
	movl	%eax, _btc8821a2ant_is_wifi_status_changed.pre_bt_hs_on(%rip)
LBB0_10:
	movl	$1, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @btc8821a2ant_is_wifi_status_changed.pre_wifi_busy
_btc8821a2ant_is_wifi_status_changed.pre_wifi_busy:
	.long	1                               ## 0x1

	.p2align	2                               ## @btc8821a2ant_is_wifi_status_changed.pre_under_4way
_btc8821a2ant_is_wifi_status_changed.pre_under_4way:
	.long	1                               ## 0x1

	.p2align	2                               ## @btc8821a2ant_is_wifi_status_changed.pre_bt_hs_on
_btc8821a2ant_is_wifi_status_changed.pre_bt_hs_on:
	.long	1                               ## 0x1

	.comm	_BTC_RSSI_STATE_HIGH,8,3        ## @BTC_RSSI_STATE_HIGH
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ## @BTC_GET_BL_WIFI_CONNECTED
	.comm	_BTC_GET_BL_WIFI_BUSY,4,2       ## @BTC_GET_BL_WIFI_BUSY
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ## @BTC_GET_BL_HS_OPERATION
	.comm	_BTC_GET_BL_WIFI_4_WAY_PROGRESS,4,2 ## @BTC_GET_BL_WIFI_4_WAY_PROGRESS
	.comm	_BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES,4,2 ## @BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES
	.comm	_BTC_RSSI_STATE_LOW,8,3         ## @BTC_RSSI_STATE_LOW
	.no_dead_strip	_btc8821a2ant_is_wifi_status_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8821a2ant_is_wifi_status_changed
_btc8821a2ant_is_wifi_status_changed:   ; @btc8821a2ant_is_wifi_status_changed
	.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
	stp	xzr, xzr, [sp]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x2, sp
	blr	x8
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _BTC_GET_BL_WIFI_BUSY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _BTC_GET_BL_HS_OPERATION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTC_GET_BL_HS_OPERATION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _BTC_GET_BL_WIFI_4_WAY_PROGRESS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_4_WAY_PROGRESS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	ldr	w8, [sp]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
	adrp	x9, _btc8821a2ant_is_wifi_status_changed.pre_wifi_busy@PAGE
	ldr	w10, [x9, _btc8821a2ant_is_wifi_status_changed.pre_wifi_busy@PAGEOFF]
	cmp	w8, w10
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [sp, #8]
	adrp	x9, _btc8821a2ant_is_wifi_status_changed.pre_under_4way@PAGE
	ldr	w10, [x9, _btc8821a2ant_is_wifi_status_changed.pre_under_4way@PAGEOFF]
	cmp	w8, w10
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [sp, #4]
	adrp	x9, _btc8821a2ant_is_wifi_status_changed.pre_bt_hs_on@PAGE
	ldr	w10, [x9, _btc8821a2ant_is_wifi_status_changed.pre_bt_hs_on@PAGEOFF]
	cmp	w8, w10
	b.ne	LBB0_9
; %bb.4:
Lloh12:
	adrp	x8, _BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #3
	mov	w2, #2
	mov	w4, #0
	bl	_btc8821a2ant_wifi_rssi_state
	mov	x8, x0
Lloh15:
	adrp	x9, _BTC_RSSI_STATE_HIGH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BTC_RSSI_STATE_HIGH@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	mov	w0, #1
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.5:
Lloh18:
	adrp	x9, _BTC_RSSI_STATE_LOW@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BTC_RSSI_STATE_LOW@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	str	w8, [x9, _btc8821a2ant_is_wifi_status_changed.pre_wifi_busy@PAGEOFF]
	b	LBB0_10
LBB0_8:
	str	w8, [x9, _btc8821a2ant_is_wifi_status_changed.pre_under_4way@PAGEOFF]
	b	LBB0_10
LBB0_9:
	str	w8, [x9, _btc8821a2ant_is_wifi_status_changed.pre_bt_hs_on@PAGEOFF]
LBB0_10:
	mov	w0, #1
LBB0_11:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @btc8821a2ant_is_wifi_status_changed.pre_wifi_busy
_btc8821a2ant_is_wifi_status_changed.pre_wifi_busy:
	.long	1                               ; 0x1

	.p2align	2                               ; @btc8821a2ant_is_wifi_status_changed.pre_under_4way
_btc8821a2ant_is_wifi_status_changed.pre_under_4way:
	.long	1                               ; 0x1

	.p2align	2                               ; @btc8821a2ant_is_wifi_status_changed.pre_bt_hs_on
_btc8821a2ant_is_wifi_status_changed.pre_bt_hs_on:
	.long	1                               ; 0x1

	.comm	_BTC_RSSI_STATE_HIGH,8,3        ; @BTC_RSSI_STATE_HIGH
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ; @BTC_GET_BL_WIFI_CONNECTED
	.comm	_BTC_GET_BL_WIFI_BUSY,4,2       ; @BTC_GET_BL_WIFI_BUSY
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ; @BTC_GET_BL_HS_OPERATION
	.comm	_BTC_GET_BL_WIFI_4_WAY_PROGRESS,4,2 ; @BTC_GET_BL_WIFI_4_WAY_PROGRESS
	.comm	_BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES,4,2 ; @BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES
	.comm	_BTC_RSSI_STATE_LOW,8,3         ; @BTC_RSSI_STATE_LOW
	.no_dead_strip	_btc8821a2ant_is_wifi_status_changed
.subsections_via_symbols
