	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_rf_ctl_intc_override_rev7
_b43_nphy_rf_ctl_intc_override_rev7:    ## @b43_nphy_rf_ctl_intc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %r14d
	movq	%rdi, %r12
	leal	(,%rdx,4), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	shll	$6, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movb	$1, %r15b
	xorl	%eax, %eax
	addl	$-128, %r14d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setne	%cl
	movl	$-9, %edx
	movl	$-3, %eax
	cmovel	%eax, %edx
	movl	$-3, %r14d
	movl	$-9, %eax
	cmovel	%eax, %r14d
	addb	%cl, %cl
	orb	$1, %cl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	shll	%cl, %eax
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_b43_phy_maskset
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	callq	_b43_phy_mask
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	$1, %al
	testb	$1, %r15b
	movl	$0, %r15d
	je	LBB0_14
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %ebx
	sete	%cl
	cmpl	$1, %ebx
	sete	%dl
	testb	%al, %dl
	jne	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	andb	%r15b, %cl
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_B43_NPHY_RFCTL_INTC2@GOTPCREL(%rip), %rax
	testb	$1, %r15b
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_B43_NPHY_RFCTL_INTC1@GOTPCREL(%rip), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$4, %r14d
	ja	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %r13d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r14,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$-193, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_b43_phy_maskset
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_b43_phy_set
	movq	%r12, %rdi
	movl	$767, %esi                      ## imm = 0x2FF
	movl	$16383, %edx                    ## imm = 0x3FFF
	callq	_b43_phy_mask
	movq	%r12, %rdi
	movl	$767, %esi                      ## imm = 0x2FF
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_b43_phy_set
	movq	%r12, %rdi
	movl	$767, %esi                      ## imm = 0x2FF
	movl	$1, %edx
	callq	_b43_phy_set
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%cl
	orb	$4, %cl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	shll	%cl, %eax
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$-49, %edx
	movl	%eax, %ecx
	callq	_b43_phy_maskset
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_b43_phy_set
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$767, %esi                      ## imm = 0x2FF
	movl	$-8193, %edx                    ## imm = 0xDFFF
	callq	_b43_phy_mask
	movq	_B43_RFSEQ_RESET2RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_nphy_force_rf_sequence
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_b43_current_band
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	setne	%cl
	sete	%dl
	leal	-5(%rdx,%rdx,2), %edx
	leal	-5(%rcx,%rcx,2), %r14d
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	cmovel	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	%r12, %rdi
	movl	%r13d, %esi
	jmp	LBB0_12
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_B43_NPHY_RFCTL_INTC1,4,2       ## @B43_NPHY_RFCTL_INTC1
	.comm	_B43_NPHY_RFCTL_INTC2,4,2       ## @B43_NPHY_RFCTL_INTC2
	.comm	_B43_RFSEQ_RESET2RX,4,2         ## @B43_RFSEQ_RESET2RX
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_b43_nphy_rf_ctl_intc_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_intc_override_rev7
_b43_nphy_rf_ctl_intc_override_rev7:    ; @b43_nphy_rf_ctl_intc_override_rev7
	.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	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	w8, #0
	lsl	w10, w2, #2
	lsl	w9, w2, #6
	stp	w9, w10, [sp, #8]               ; 8-byte Folded Spill
	mov	w9, #1
Lloh0:
	adrp	x26, _B43_NPHY_RFCTL_INTC1@GOTPAGE
Lloh1:
	ldr	x26, [x26, _B43_NPHY_RFCTL_INTC1@GOTPAGEOFF]
Lloh2:
	adrp	x27, _B43_NPHY_RFCTL_INTC2@GOTPAGE
Lloh3:
	ldr	x27, [x27, _B43_NPHY_RFCTL_INTC2@GOTPAGEOFF]
	sub	w28, w1, #128
Lloh4:
	adrp	x22, lJTI0_0@PAGE
Lloh5:
	add	x22, x22, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	bl	_b43_current_band
Lloh6:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	mov	w8, #-9
	mov	w9, #-3
	csel	w2, w9, w8, eq
	csel	w24, w8, w9, eq
	mov	w8, #3
	csinc	w8, w8, wzr, ne
	lsl	w3, w20, w8
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_b43_phy_maskset
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_b43_phy_mask
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
	mov	w8, #1
	tbz	w25, #0, LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x9
	cmp	w19, #2
	cset	w9, eq
	cmp	w19, #1
	cset	w10, eq
	and	w8, w10, w8
	tbnz	w8, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w9, w25
	tbnz	w8, #0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tst	w25, #0x1
	csel	x8, x26, x27, ne
	cmp	w28, #4
	b.hi	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x8]
	adr	x8, LBB0_1
	ldrb	w9, [x22, x28]
	add	x8, x8, x9, lsl #2
	br	x8
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	w2, #-193
	ldr	w3, [sp, #8]                    ; 4-byte Folded Reload
	bl	_b43_phy_maskset
	mov	x0, x21
	mov	x1, x23
	mov	w2, #1024
	bl	_b43_phy_set
	mov	x0, x21
	mov	w1, #767
	mov	w2, #16383
	bl	_b43_phy_mask
	mov	x0, x21
	mov	w1, #767
	mov	w2, #8192
	bl	_b43_phy_set
	mov	x0, x21
	mov	w1, #767
	mov	w2, #1
	bl	_b43_phy_set
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	bl	_b43_current_band
Lloh9:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	mov	w8, #4
	cinc	w8, w8, eq
	lsl	w3, w20, w8
	mov	x0, x21
	mov	x1, x23
	mov	w2, #-49
	bl	_b43_phy_maskset
	mov	x0, x21
	mov	x1, x23
	mov	w2, #4096
	bl	_b43_phy_set
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	bl	_b43_phy_write
	mov	x0, x21
	mov	w1, #767
	mov	w2, #-8193
	bl	_b43_phy_mask
Lloh12:
	adrp	x8, _B43_RFSEQ_RESET2RX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B43_RFSEQ_RESET2RX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_b43_nphy_force_rf_sequence
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	bl	_b43_current_band
Lloh15:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	mov	w8, #-5
	mov	w9, #-2
	csel	w2, w9, w8, eq
	csel	w24, w8, w9, eq
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	csel	w3, w20, w8, eq
	b	LBB0_2
LBB0_12:
	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
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
                                        ; -- End function
	.comm	_B43_NPHY_RFCTL_INTC1,4,2       ; @B43_NPHY_RFCTL_INTC1
	.comm	_B43_NPHY_RFCTL_INTC2,4,2       ; @B43_NPHY_RFCTL_INTC2
	.comm	_B43_RFSEQ_RESET2RX,4,2         ; @B43_RFSEQ_RESET2RX
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_b43_nphy_rf_ctl_intc_override_rev7
.subsections_via_symbols
