	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_workarounds
_b43_nphy_workarounds:                  ## @b43_nphy_workarounds
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	16(%rdi), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_b43_nphy_classifier
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_2:
	movq	_B43_NPHY_IQFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_IQFLIP_ADC1@GOTPCREL(%rip), %rax
	movq	_B43_NPHY_IQFLIP_ADC2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_b43_phy_set
	movl	(%rbx), %eax
	movq	%rbx, %rdi
	cmpl	$7, %eax
	jl	LBB0_4
## %bb.3:
	callq	_b43_nphy_workarounds_rev7plus
	cmpq	$0, (%r14)
	jne	LBB0_9
	jmp	LBB0_8
LBB0_4:
	cmpl	$3, %eax
	jl	LBB0_6
## %bb.5:
	callq	_b43_nphy_workarounds_rev3plus
	cmpq	$0, (%r14)
	je	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_nphy_stay_in_carrier_search ## TAILCALL
LBB0_6:
	callq	_b43_nphy_workarounds_rev1_2
	cmpq	$0, (%r14)
	jne	LBB0_9
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_B43_NPHY_IQFLIP,4,2            ## @B43_NPHY_IQFLIP
	.comm	_B43_NPHY_IQFLIP_ADC1,4,2       ## @B43_NPHY_IQFLIP_ADC1
	.comm	_B43_NPHY_IQFLIP_ADC2,4,2       ## @B43_NPHY_IQFLIP_ADC2
	.no_dead_strip	_b43_nphy_workarounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_workarounds
_b43_nphy_workarounds:                  ; @b43_nphy_workarounds
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x20, [x0, #8]
	ldr	w0, [x0, #16]
	bl	_b43_current_band
Lloh0:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w2, ne
	mov	x0, x19
	mov	w1, #1
	bl	_b43_nphy_classifier
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_b43_nphy_stay_in_carrier_search
LBB0_2:
Lloh3:
	adrp	x8, _B43_NPHY_IQFLIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_NPHY_IQFLIP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _B43_NPHY_IQFLIP_ADC1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _B43_NPHY_IQFLIP_ADC1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _B43_NPHY_IQFLIP_ADC2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _B43_NPHY_IQFLIP_ADC2@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_b43_phy_set
	ldr	w8, [x19]
	mov	x0, x19
	cmp	w8, #7
	b.lt	LBB0_4
; %bb.3:
	bl	_b43_nphy_workarounds_rev7plus
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
	b	LBB0_8
LBB0_4:
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.5:
	bl	_b43_nphy_workarounds_rev3plus
	ldr	x8, [x20]
	cbz	x8, LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_nphy_stay_in_carrier_search
LBB0_7:
	bl	_b43_nphy_workarounds_rev1_2
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_B43_NPHY_IQFLIP,4,2            ; @B43_NPHY_IQFLIP
	.comm	_B43_NPHY_IQFLIP_ADC1,4,2       ; @B43_NPHY_IQFLIP_ADC1
	.comm	_B43_NPHY_IQFLIP_ADC2,4,2       ; @B43_NPHY_IQFLIP_ADC2
	.no_dead_strip	_b43_nphy_workarounds
.subsections_via_symbols
