	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function b43_nphy_get_gain_ctl_workaround_ent
LCPI0_0:
	.long	4294950911                      ## 0xffffbfff
	.long	4294950911                      ## 0xffffbfff
	.long	4294950911                      ## 0xffffbfff
	.long	4294950911                      ## 0xffffbfff
LCPI0_1:
	.long	4096                            ## 0x1000
	.long	4096                            ## 0x1000
	.long	4096                            ## 0x1000
	.long	4096                            ## 0x1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_b43_nphy_get_gain_ctl_workaround_ent
	.p2align	4, 0x90
_b43_nphy_get_gain_ctl_workaround_ent:  ## @b43_nphy_get_gain_ctl_workaround_ent
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	8(%rdi), %eax
	testl	%esi, %esi
	jne	LBB0_4
## %bb.1:
	cmpl	$6, %eax
	jl	LBB0_4
## %bb.2:
	cmpl	$11, 12(%r12)
	jne	LBB0_4
## %bb.3:
	movq	_nphy_gain_ctl_wa_phy6_radio11_ghz2@GOTPCREL(%rip), %r15
	jmp	LBB0_15
LBB0_4:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	$3, %eax
	setl	%dil
	callq	_B43_WARN_ON
	movl	8(%r12), %eax
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	sete	%cl
	cmpl	$5, %eax
	movl	$2, %edx
	cmovneq	%rcx, %rdx
	movl	$3, %ecx
	cmovleq	%rdx, %rcx
	movq	_nphy_gain_ctl_workaround@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%ebx, %rsi
	movq	(%rdx,%rsi,8), %r13
	leaq	(%rcx,%rcx,2), %r14
	leaq	(,%r14,8), %r15
	addq	%r13, %r15
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.8:
	cmpl	$6, %eax
	jl	LBB0_12
## %bb.9:
	cmpl	$11, 12(%r12)
	jne	LBB0_15
## %bb.10:
	movq	%r12, %rdi
	callq	_b43_is_40mhz
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movl	$45, 20(%r13,%r14,8)
	jmp	LBB0_15
LBB0_5:
	cmpl	$5, %eax
	jl	LBB0_15
## %bb.6:
	leaq	_b43_nphy_get_gain_ctl_workaround_ent.gain_data(%rip), %rax
	leaq	_b43_nphy_get_gain_ctl_workaround_ent.gain_data.1(%rip), %rcx
	cmovgq	%rax, %rcx
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	$8, %rax
	movl	$3, %edx
	cmovbq	%rax, %rdx
	movl	(%rcx,%rdx,4), %eax
	movl	%eax, (%r15)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.7:
	movq	8(%r13,%r14,8), %rax
	movups	(%rax), %xmm0
	andps	LCPI0_0(%rip), %xmm0
	movups	%xmm0, (%rax)
	andb	$-65, 17(%r13,%r14,8)
	jmp	LBB0_15
LBB0_12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.13:
	cmpl	$4, %eax
	jne	LBB0_15
## %bb.14:
	movq	8(%r13,%r14,8), %rax
	movups	(%rax), %xmm0
	andps	LCPI0_0(%rip), %xmm0
	movups	%xmm0, (%rax)
	andb	$-65, 17(%r13,%r14,8)
	movups	(%rax), %xmm0
	orps	LCPI0_1(%rip), %xmm0
	movups	%xmm0, (%rax)
	orb	$16, 17(%r13,%r14,8)
LBB0_15:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nphy_gain_ctl_wa_phy6_radio11_ghz2,24,3 ## @nphy_gain_ctl_wa_phy6_radio11_ghz2
	.comm	_nphy_gain_ctl_workaround,8,3   ## @nphy_gain_ctl_workaround
	.section	__TEXT,__const
	.p2align	4                               ## @b43_nphy_get_gain_ctl_workaround_ent.gain_data
_b43_nphy_get_gain_ctl_workaround_ent.gain_data:
	.long	4202                            ## 0x106a
	.long	4204                            ## 0x106c
	.long	4212                            ## 0x1074
	.long	4220                            ## 0x107c
	.long	126                             ## 0x7e
	.long	4222                            ## 0x107e
	.long	8318                            ## 0x207e
	.long	12414                           ## 0x307e

	.p2align	4                               ## @b43_nphy_get_gain_ctl_workaround_ent.gain_data.1
_b43_nphy_get_gain_ctl_workaround_ent.gain_data.1:
	.long	98                              ## 0x62
	.long	100                             ## 0x64
	.long	106                             ## 0x6a
	.long	4202                            ## 0x106a
	.long	4204                            ## 0x106c
	.long	4212                            ## 0x1074
	.long	4220                            ## 0x107c
	.long	8316                            ## 0x207c

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_nphy_get_gain_ctl_workaround_ent ; -- Begin function b43_nphy_get_gain_ctl_workaround_ent
	.p2align	2
_b43_nphy_get_gain_ctl_workaround_ent:  ; @b43_nphy_get_gain_ctl_workaround_ent
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w8, [x0, #8]
	cbnz	w1, LBB0_4
; %bb.1:
	cmp	w8, #6
	b.lt	LBB0_4
; %bb.2:
	ldr	w9, [x21, #12]
	cmp	w9, #11
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x19, _nphy_gain_ctl_wa_phy6_radio11_ghz2@GOTPAGE
Lloh1:
	ldr	x19, [x19, _nphy_gain_ctl_wa_phy6_radio11_ghz2@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
	cmp	w8, #3
	cset	w0, lt
	bl	_B43_WARN_ON
	ldr	w8, [x21, #8]
	cmp	w8, #4
	cset	w9, eq
	cmp	w8, #5
	mov	w10, #2
	csel	x9, x10, x9, eq
	mov	w10, #3
Lloh2:
	adrp	x11, _nphy_gain_ctl_workaround@GOTPAGE
Lloh3:
	ldr	x11, [x11, _nphy_gain_ctl_workaround@GOTPAGEOFF]
	csel	x23, x10, x9, gt
Lloh4:
	ldr	x9, [x11]
	ldr	x24, [x9, w22, sxtw #3]
	mov	w9, #24
	madd	x19, x23, x9, x24
	cbz	w22, LBB0_9
; %bb.5:
	cmp	w8, #6
	b.lt	LBB0_12
; %bb.6:
	ldr	w8, [x21, #12]
	cmp	w8, #11
	b.ne	LBB0_16
; %bb.7:
	mov	x0, x21
	bl	_b43_is_40mhz
	cbnz	w0, LBB0_16
; %bb.8:
	mov	w8, #24
	madd	x8, x23, x8, x24
	mov	w9, #45
	str	w9, [x8, #20]
	b	LBB0_16
LBB0_9:
	cmp	w8, #5
	b.lt	LBB0_16
; %bb.10:
Lloh5:
	adrp	x8, _b43_nphy_get_gain_ctl_workaround_ent.gain_data.1@PAGE
Lloh6:
	add	x8, x8, _b43_nphy_get_gain_ctl_workaround_ent.gain_data.1@PAGEOFF
Lloh7:
	adrp	x9, _b43_nphy_get_gain_ctl_workaround_ent.gain_data@PAGE
Lloh8:
	add	x9, x9, _b43_nphy_get_gain_ctl_workaround_ent.gain_data@PAGEOFF
	csel	x8, x9, x8, gt
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	x9, [x9]
	mov	w10, #3
	cmp	x9, #7
	csel	x9, x10, x9, hi
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19]
	cbz	w20, LBB0_16
; %bb.11:
	mov	w8, #24
	madd	x8, x23, x8, x24
	ldr	x9, [x8, #8]
	ldr	q0, [x9]
	bic.4s	v0, #64, lsl #8
	str	q0, [x9]
	ldr	w9, [x8, #16]
	and	w9, w9, #0xffffbfff
	b	LBB0_15
LBB0_12:
	cbz	w20, LBB0_16
; %bb.13:
	cmp	w8, #4
	b.ne	LBB0_16
; %bb.14:
	mov	w8, #24
	madd	x8, x23, x8, x24
	ldr	x9, [x8, #8]
	ldr	q0, [x9]
	bic.4s	v0, #64, lsl #8
	str	q0, [x9]
	ldr	w10, [x8, #16]
	and	w10, w10, #0xffffbfff
	str	w10, [x8, #16]
	ldr	q0, [x9]
	orr.4s	v0, #16, lsl #8
	str	q0, [x9]
	ldr	w9, [x8, #16]
	orr	w9, w9, #0x1000
LBB0_15:
	str	w9, [x8, #16]
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_nphy_gain_ctl_wa_phy6_radio11_ghz2,24,3 ; @nphy_gain_ctl_wa_phy6_radio11_ghz2
	.comm	_nphy_gain_ctl_workaround,8,3   ; @nphy_gain_ctl_workaround
	.section	__TEXT,__const
	.p2align	2                               ; @b43_nphy_get_gain_ctl_workaround_ent.gain_data
_b43_nphy_get_gain_ctl_workaround_ent.gain_data:
	.long	4202                            ; 0x106a
	.long	4204                            ; 0x106c
	.long	4212                            ; 0x1074
	.long	4220                            ; 0x107c
	.long	126                             ; 0x7e
	.long	4222                            ; 0x107e
	.long	8318                            ; 0x207e
	.long	12414                           ; 0x307e

	.p2align	2                               ; @b43_nphy_get_gain_ctl_workaround_ent.gain_data.1
_b43_nphy_get_gain_ctl_workaround_ent.gain_data.1:
	.long	98                              ; 0x62
	.long	100                             ; 0x64
	.long	106                             ; 0x6a
	.long	4202                            ; 0x106a
	.long	4204                            ; 0x106c
	.long	4212                            ; 0x1074
	.long	4220                            ; 0x107c
	.long	8316                            ; 0x207c

.subsections_via_symbols
