	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_rev2plus_write_gain_table
_lpphy_rev2plus_write_gain_table:       ## @lpphy_rev2plus_write_gain_table
	.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, %r14d
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	$2, 4(%r15)
	setl	%dil
	callq	_B43_WARN_ON
	movl	16(%rbp), %eax
	movl	20(%rbp), %r12d
	shll	$16, %eax
	shll	$8, %r12d
	orl	%eax, %r12d
	orl	24(%rbp), %r12d
	movl	(%r15), %edi
	movl	4(%r15), %r13d
	callq	_b43_current_band
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$268435456, %eax                ## imm = 0x10000000
	movl	$1879048192, %ecx               ## imm = 0x70000000
	cmovel	%eax, %ecx
	movl	$335544320, %eax                ## imm = 0x14000000
	movl	$2130706432, %ebx               ## imm = 0x7F000000
	cmovel	%eax, %ebx
	cmpl	$3, %r13d
	cmovgel	%ecx, %ebx
	orl	%r12d, %ebx
	leal	192(%r14), %esi
	movl	$7, %edi
	callq	_B43_LPTAB32
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_b43_lptab_write
	movl	28(%rbp), %eax
	movl	32(%rbp), %ebx
	shll	$20, %eax
	shll	$28, %ebx
	orl	%eax, %ebx
	addl	$320, %r14d                     ## imm = 0x140
	movl	$7, %edi
	movl	%r14d, %esi
	callq	_B43_LPTAB32
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_lptab_write                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_lpphy_rev2plus_write_gain_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpphy_rev2plus_write_gain_table
_lpphy_rev2plus_write_gain_table:       ; @lpphy_rev2plus_write_gain_table
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0, #4]
	cmp	w8, #2
	cset	w0, lt
	bl	_B43_WARN_ON
	ldp	w8, w9, [x19]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldr	w9, [x19, #8]
	orr	w22, w8, w9
	ldp	w0, w23, [x21]
	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
	mov	w8, #1879048192
	mov	w9, #268435456
	csel	w8, w9, w8, eq
	mov	w9, #2130706432
	mov	w10, #335544320
	csel	w9, w10, w9, eq
	cmp	w23, #2
	csel	w8, w8, w9, gt
	orr	w22, w22, w8
	add	w1, w20, #192
	mov	w0, #7
	bl	_B43_LPTAB32
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_b43_lptab_write
	ldp	w8, w9, [x19, #12]
	lsl	w9, w9, #28
	orr	w19, w9, w8, lsl #20
	add	w1, w20, #320
	mov	w0, #7
	bl	_B43_LPTAB32
	mov	x1, x0
	mov	x0, x21
	mov	x2, 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
	b	_b43_lptab_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_lpphy_rev2plus_write_gain_table
.subsections_via_symbols
