	.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_rev7
_b43_nphy_rf_ctl_override_rev7:         ## @b43_nphy_rf_ctl_override_rev7
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	l___const.b43_nphy_rf_ctl_override_rev7.en_addrs+16(%rip), %rax
	movq	%rax, -64(%rbp)
	movaps	l___const.b43_nphy_rf_ctl_override_rev7.en_addrs(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	4(%rdi), %eax
	addl	$-19, %eax
	cmpl	$-17, %eax
	ja	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.2:
	movl	$1, %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_B43_WARN_ON                    ## TAILCALL
LBB0_3:
	movl	%r9d, %r13d
	movl	%r8d, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	movl	%r9d, %edx
	callq	_b43_nphy_get_rf_ctl_over_rev7
	movq	%rax, %r12
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	%r13d, %eax
	jle	LBB0_4
## %bb.5:
	movslq	%r13d, %rdx
	movl	%r15d, %ecx
	notl	%ecx
	movl	-80(%rbp,%rdx,8), %esi
	testq	%r12, %r12
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_6
## %bb.12:
	movl	%r14d, %eax
	movl	(%r12), %r14d
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movl	%r14d, -88(%rbp)                ## 4-byte Spill
	je	LBB0_13
## %bb.15:
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_b43_phy_mask
	movl	8(%r12), %edx
	notl	%edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43_phy_mask
	movl	-92(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_16
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.14:
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_b43_phy_mask
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	jmp	LBB0_16
LBB0_13:
	movl	-92(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_8
LBB0_7:
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
LBB0_8:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	andl	$1, %eax
	je	LBB0_16
LBB0_10:
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_b43_phy_set
	testq	%r12, %r12
	je	LBB0_16
## %bb.11:
	movl	8(%r12), %edx
	notl	%edx
	movb	12(%r12), %cl
	movl	-100(%rbp), %eax                ## 4-byte Reload
	shll	%cl, %eax
	movq	%rbx, %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_b43_phy_maskset
LBB0_16:
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	%r13d, %eax
	jle	LBB0_4
## %bb.17:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	-76(%rbp,%rax,8), %esi
	testq	%r12, %r12
	je	LBB0_20
## %bb.18:
	movl	4(%r12), %r13d
	testl	%r14d, %r14d
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_22
## %bb.19:
	movq	%rbx, %rdi
	callq	_b43_phy_mask
	movl	8(%r12), %edx
	notl	%edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_b43_phy_mask
	jmp	LBB0_26
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_b43err
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	testl	%r14d, %r14d
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	-88(%rbp), %r13d                ## 4-byte Reload
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	_b43_phy_mask
	jmp	LBB0_26
LBB0_22:
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	andl	$2, %eax
	je	LBB0_26
LBB0_24:
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_b43_phy_set
	testq	%r12, %r12
	je	LBB0_26
## %bb.25:
	movl	8(%r12), %edx
	notl	%edx
	movb	12(%r12), %cl
	movl	-100(%rbp), %eax                ## 4-byte Reload
	shll	%cl, %eax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %ecx
	callq	_b43_phy_maskset
	jmp	LBB0_26
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.b43_nphy_rf_ctl_override_rev7.en_addrs
l___const.b43_nphy_rf_ctl_override_rev7.en_addrs:
	.long	231                             ## 0xe7
	.long	236                             ## 0xec
	.long	834                             ## 0x342
	.long	835                             ## 0x343
	.long	838                             ## 0x346
	.long	839                             ## 0x347

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid override value %d\n"

	.no_dead_strip	_b43_nphy_rf_ctl_override_rev7
.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_rev7
_b43_nphy_rf_ctl_override_rev7:         ; @b43_nphy_rf_ctl_override_rev7
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l___const.b43_nphy_rf_ctl_override_rev7.en_addrs@PAGE
Lloh4:
	add	x8, x8, l___const.b43_nphy_rf_ctl_override_rev7.en_addrs@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
	ldr	w8, [x0, #4]
	sub	w8, w8, #19
	cmn	w8, #17
	b.hi	LBB0_3
; %bb.1:
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.2:
	mov	w0, #1
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_B43_WARN_ON
LBB0_3:
	mov	x25, x5
	mov	x24, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x2, x5
	bl	_b43_nphy_get_rf_ctl_over_rev7
	mov	x23, x0
	add	x26, sp, #16
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	w0, w25
	b.le	LBB0_19
; %bb.4:
	sxtw	x28, w25
	mvn	w2, w21
	lsl	x8, x28, #3
	ldr	w1, [x26, x8]
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	cbz	x23, LBB0_7
; %bb.5:
	ldr	w26, [x23]
	cbz	w24, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_b43_phy_mask
	ldr	w8, [x23, #8]
	mvn	w2, w8
	mov	x0, x19
	mov	x27, x26
	mov	x1, x26
	bl	_b43_phy_mask
	b	LBB0_15
LBB0_7:
	cbz	w24, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_b43_phy_mask
                                        ; implicit-def: $w27
	b	LBB0_15
LBB0_9:
                                        ; implicit-def: $w26
LBB0_10:
	cbz	w22, LBB0_12
; %bb.11:
	tbz	w22, #0, LBB0_14
LBB0_12:
	mov	x0, x19
	mov	x2, x21
	bl	_b43_phy_set
	cbz	x23, LBB0_14
; %bb.13:
	ldp	w8, w9, [x23, #8]
	mvn	w2, w8
	lsl	w3, w20, w9
	mov	x0, x19
	mov	x27, x26
	mov	x1, x26
	bl	_b43_phy_maskset
	b	LBB0_15
LBB0_14:
	mov	x27, x26
LBB0_15:
	add	x26, sp, #16
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	w0, w25
	b.le	LBB0_19
; %bb.16:
	add	x8, x26, x28, lsl #3
	ldr	w1, [x8, #4]
	cbz	x23, LBB0_22
; %bb.17:
	ldr	w27, [x23, #4]
	cbz	w24, LBB0_24
; %bb.18:
	mov	x0, x19
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_b43_phy_mask
	ldr	w8, [x23, #8]
	mvn	w2, w8
	mov	x0, x19
	mov	x1, x27
	bl	_b43_phy_mask
	b	LBB0_20
LBB0_19:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_b43err
LBB0_20:
	ldr	x8, [sp, #40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.21:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_22:
	cbz	w24, LBB0_24
; %bb.23:
	mov	x0, x19
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_b43_phy_mask
	b	LBB0_20
LBB0_24:
	cbz	w22, LBB0_26
; %bb.25:
	tbz	w22, #1, LBB0_20
LBB0_26:
	mov	x0, x19
	mov	x2, x21
	bl	_b43_phy_set
	cbz	x23, LBB0_20
; %bb.27:
	ldp	w8, w9, [x23, #8]
	mvn	w2, w8
	lsl	w3, w20, w9
	mov	x0, x19
	mov	x1, x27
	bl	_b43_phy_maskset
	b	LBB0_20
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.b43_nphy_rf_ctl_override_rev7.en_addrs
l___const.b43_nphy_rf_ctl_override_rev7.en_addrs:
	.long	231                             ; 0xe7
	.long	236                             ; 0xec
	.long	834                             ; 0x342
	.long	835                             ; 0x343
	.long	838                             ; 0x346
	.long	839                             ; 0x347

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid override value %d\n"

	.no_dead_strip	_b43_nphy_rf_ctl_override_rev7
.subsections_via_symbols
