	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_rf_ctl_override
_b43_nphy_rf_ctl_override:              ## @b43_nphy_rf_ctl_override
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_fls
	movl	%eax, %r13d
	leal	-1(%r13), %ebx
	movl	%r12d, %edi
	btrl	%ebx, %edi
	callq	_B43_WARN_ON
	cmpl	$3, 4(%r14)
	jl	LBB0_13
## %bb.1:
	testl	$-17, %r13d
	je	LBB0_28
## %bb.2:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rax
	movl	%r12d, %r14d
	notl	%r14d
	movq	_tbl_rf_control_override_rev3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movl	%r15d, %ebx
	leaq	(%rax,%rax,2), %r15
	movl	20(%r13,%r15,8), %edi
	callq	_B43_PHY_N
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	12(%r13,%r15,8), %edi
	callq	_B43_PHY_N
	leaq	(,%r15,8), %rdx
	addq	%r13, %rdx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	je	LBB0_4
## %bb.3:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%rdx, %r13
	movl	%r14d, %edx
	movq	%rdi, %r14
	callq	_b43_phy_mask
	movl	(%r13), %edx
	notl	%edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_b43_phy_mask
	jmp	LBB0_7
LBB0_13:
	movl	%r15d, %eax
	movq	_B43_NPHY_RFCTL_OVER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	notl	%r12d
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_b43_phy_mask
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$2, %r13d
	jge	LBB0_17
	jmp	LBB0_28
LBB0_15:
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_b43_phy_set
	cmpl	$2, %r13d
	jl	LBB0_28
LBB0_17:
	cmpl	$16, %r13d
	je	LBB0_28
## %bb.18:
	movq	%r14, %r12
	leal	-2(%r13), %r14d
	movq	_tbl_rf_control_override_rev2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$4, %r14
	movl	12(%rbx,%r14), %edi
	callq	_B43_PHY_N
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_21
## %bb.19:
	cmpl	$15, %r13d
	ja	LBB0_22
## %bb.20:
	movl	$58372, %ecx                    ## imm = 0xE404
	btl	%r13d, %ecx
	jae	LBB0_22
LBB0_21:
	movl	(%rbx,%r14), %edx
	notl	%edx
	movb	4(%rbx,%r14), %cl
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	shll	%cl, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	callq	_b43_phy_maskset
LBB0_22:
	movl	(%r15), %esi
	movq	%r12, %rbx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_b43_phy_set
	movq	_B43_NPHY_RFCTL_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_RFCTL_CMD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_b43_phy_set
	movl	$1, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$65534, %edx                    ## imm = 0xFFFE
	callq	_b43_phy_mask
	movq	_tbl_rf_control_override_rev2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	8(%rbx,%r14), %edi
	callq	_B43_PHY_N
	testb	$2, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_26
## %bb.23:
	cmpl	$15, %r13d
	ja	LBB0_25
## %bb.24:
	movl	$58372, %ecx                    ## imm = 0xE404
	btl	%r13d, %ecx
	jae	LBB0_25
LBB0_26:
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_b43_phy_set
	movq	_B43_NPHY_RFCTL_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_RFCTL_CMD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_b43_phy_set
	movl	$1, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$65534, %edx                    ## imm = 0xFFFE
	jmp	LBB0_9
LBB0_28:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43err                         ## TAILCALL
LBB0_4:
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movl	%ebx, %ecx
	andl	$1, %ecx
	je	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edx
	callq	_b43_phy_set
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	notl	%edx
	movb	4(%r13,%r15,8), %cl
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	%cl, %eax
	movq	%r14, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_b43_phy_maskset
LBB0_7:
	movq	%r14, %rbx
	movq	_tbl_rf_control_override_rev3@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	16(%r13,%r15,8), %edi
	callq	_B43_PHY_N
	movl	%eax, %r14d
	movl	8(%r13,%r15,8), %edi
	callq	_B43_PHY_N
	leaq	(,%r15,8), %rcx
	addq	%r13, %rcx
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %r15d
	movq	%rcx, %r14
	callq	_b43_phy_mask
	movl	(%r14), %edx
	notl	%edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_mask                   ## TAILCALL
LBB0_10:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	je	LBB0_12
## %bb.11:
	andl	$2, %edx
	jne	LBB0_12
## %bb.27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %r12d
	movq	%rcx, %r14
	callq	_b43_phy_set
	movl	(%r14), %edx
	notl	%edx
	movb	4(%r13,%r15,8), %cl
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	%cl, %eax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_maskset                ## TAILCALL
LBB0_25:
	movl	(%rbx,%r14), %edx
	notl	%edx
	movb	4(%rbx,%r14), %cl
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	shll	%cl, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	callq	_b43_phy_maskset
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported RF Ctrl Override call\n"

	.comm	_tbl_rf_control_override_rev3,8,3 ## @tbl_rf_control_override_rev3
	.comm	_B43_NPHY_RFCTL_OVER,4,2        ## @B43_NPHY_RFCTL_OVER
	.comm	_tbl_rf_control_override_rev2,8,3 ## @tbl_rf_control_override_rev2
	.comm	_B43_NPHY_RFCTL_CMD,4,2         ## @B43_NPHY_RFCTL_CMD
	.comm	_B43_NPHY_RFCTL_CMD_START,4,2   ## @B43_NPHY_RFCTL_CMD_START
	.no_dead_strip	_b43_nphy_rf_ctl_override
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_rf_ctl_override
_b43_nphy_rf_ctl_override:              ; @b43_nphy_rf_ctl_override
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_fls
	mov	x23, x0
	sxtw	x8, w23
	sub	x27, x8, #1
	mov	w8, #1
	lsl	w8, w8, w27
	bic	w0, w22, w8
	bl	_B43_WARN_ON
	ldr	w8, [x19, #4]
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.1:
	tst	w23, #0xffffffef
	b.eq	LBB0_16
; %bb.2:
	str	w20, [sp, #8]                   ; 4-byte Folded Spill
	mvn	w20, w22
Lloh0:
	adrp	x8, _tbl_rf_control_override_rev3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tbl_rf_control_override_rev3@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	w8, #24
	madd	x28, x27, x8, x23
	ldr	w0, [x28, #20]
	bl	_B43_PHY_N
	mov	x26, x0
	ldr	w0, [x28, #12]
	bl	_B43_PHY_N
	mov	x25, x0
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	cbz	w24, LBB0_17
; %bb.3:
	mov	x0, x19
	mov	x1, x26
	mov	x2, x20
	bl	_b43_phy_mask
	ldr	w8, [x28]
	mvn	w2, w8
	mov	x0, x19
	mov	x1, x25
	bl	_b43_phy_mask
Lloh3:
	adrp	x20, _tbl_rf_control_override_rev3@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tbl_rf_control_override_rev3@GOTPAGEOFF]
	b	LBB0_20
LBB0_4:
Lloh5:
	adrp	x25, _B43_NPHY_RFCTL_OVER@GOTPAGE
Lloh6:
	ldr	x25, [x25, _B43_NPHY_RFCTL_OVER@GOTPAGEOFF]
	ldr	w1, [x25]
	cbz	w24, LBB0_6
; %bb.5:
	mvn	w2, w22
	mov	x0, x19
	bl	_b43_phy_mask
	mov	w20, #0
	subs	w22, w23, #2
	b.ge	LBB0_7
	b	LBB0_16
LBB0_6:
	mov	x0, x19
	mov	x2, x22
	bl	_b43_phy_set
	subs	w22, w23, #2
	b.lt	LBB0_16
LBB0_7:
	cmp	w23, #16
	b.eq	LBB0_16
; %bb.8:
Lloh7:
	adrp	x24, _tbl_rf_control_override_rev2@GOTPAGE
Lloh8:
	ldr	x24, [x24, _tbl_rf_control_override_rev2@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x26, x8, x22, lsl #4
	ldr	w0, [x26, #12]
	bl	_B43_PHY_N
	mov	x1, x0
	tbnz	w21, #0, LBB0_11
; %bb.9:
	cmp	w23, #15
	b.hi	LBB0_12
; %bb.10:
	mov	w8, #1
	lsl	w8, w8, w23
	mov	w9, #58372
	tst	w8, w9
	b.eq	LBB0_12
LBB0_11:
	ldp	w8, w9, [x26]
	mvn	w2, w8
	lsl	w3, w20, w9
	mov	x0, x19
	bl	_b43_phy_maskset
LBB0_12:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #1
	bl	_b43_phy_set
Lloh9:
	adrp	x26, _B43_NPHY_RFCTL_CMD@GOTPAGE
Lloh10:
	ldr	x26, [x26, _B43_NPHY_RFCTL_CMD@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh11:
	adrp	x27, _B43_NPHY_RFCTL_CMD_START@GOTPAGE
Lloh12:
	ldr	x27, [x27, _B43_NPHY_RFCTL_CMD_START@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_b43_phy_set
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #65534
	bl	_b43_phy_mask
	ldr	x24, [x24]
	add	x8, x24, x22, lsl #4
	ldr	w0, [x8, #8]
	bl	_B43_PHY_N
	tbz	w21, #1, LBB0_15
; %bb.13:
	mov	x1, x0
	cmp	w23, #15
	b.hi	LBB0_27
; %bb.14:
	mov	w8, #1
	lsl	w8, w8, w23
	mov	w9, #58372
	tst	w8, w9
	b.eq	LBB0_27
LBB0_15:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #1
	bl	_b43_phy_set
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_b43_phy_set
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #65534
	b	LBB0_22
LBB0_16:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_b43err
LBB0_17:
Lloh15:
	adrp	x20, _tbl_rf_control_override_rev3@GOTPAGE
Lloh16:
	ldr	x20, [x20, _tbl_rf_control_override_rev3@GOTPAGEOFF]
	cbz	w21, LBB0_19
; %bb.18:
	tbz	w21, #0, LBB0_20
LBB0_19:
	mov	x0, x19
	mov	x1, x26
	mov	x2, x22
	bl	_b43_phy_set
	ldr	w8, [x28]
	mvn	w2, w8
	mov	w8, #24
	madd	x8, x27, x8, x23
	ldr	w8, [x8, #4]
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	lsl	w3, w9, w8
	mov	x0, x19
	mov	x1, x25
	bl	_b43_phy_maskset
LBB0_20:
	ldr	x23, [x20]
	mov	w8, #24
	madd	x28, x27, x8, x23
	ldr	w0, [x28, #16]
	bl	_B43_PHY_N
	mov	x26, x0
	ldr	w0, [x28, #8]
	bl	_B43_PHY_N
	mov	x25, x0
	cbz	w24, LBB0_23
; %bb.21:
	mov	x0, x19
	mov	x1, x26
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_b43_phy_mask
	ldr	w8, [x28]
	mvn	w2, w8
	mov	x0, x19
	mov	x1, x25
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_b43_phy_mask
LBB0_23:
	cbz	w21, LBB0_26
; %bb.24:
	tbnz	w21, #1, LBB0_26
; %bb.25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
	mov	x0, x19
	mov	x1, x26
	mov	x2, x22
	bl	_b43_phy_set
	ldr	w8, [x28]
	mvn	w2, w8
	mov	w8, #24
	madd	x8, x27, x8, x23
	ldr	w8, [x8, #4]
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	lsl	w3, w9, w8
	mov	x0, x19
	mov	x1, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_b43_phy_maskset
LBB0_27:
	add	x8, x24, x22, lsl #4
	ldp	w9, w8, [x8]
	mvn	w2, w9
	lsl	w3, w20, w8
	mov	x0, x19
	bl	_b43_phy_maskset
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported RF Ctrl Override call\n"

	.comm	_tbl_rf_control_override_rev3,8,3 ; @tbl_rf_control_override_rev3
	.comm	_B43_NPHY_RFCTL_OVER,4,2        ; @B43_NPHY_RFCTL_OVER
	.comm	_tbl_rf_control_override_rev2,8,3 ; @tbl_rf_control_override_rev2
	.comm	_B43_NPHY_RFCTL_CMD,4,2         ; @B43_NPHY_RFCTL_CMD
	.comm	_B43_NPHY_RFCTL_CMD_START,4,2   ; @B43_NPHY_RFCTL_CMD_START
	.no_dead_strip	_b43_nphy_rf_ctl_override
.subsections_via_symbols
