	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_nphy_get_tx_gain_table     ## -- Begin function b43_nphy_get_tx_gain_table
	.p2align	4, 0x90
_b43_nphy_get_tx_gain_table:            ## @b43_nphy_get_tx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_b43_current_band
	cmpl	$2, 8(%rbx)
	jg	LBB0_4
## %bb.1:
	movq	_b43_ntab_tx_gain_rev0_1_2@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	24(%rbx), %rcx
	movq	(%rcx), %r14
	movq	16(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_6
## %bb.5:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_8
LBB0_6:
	cmpq	$0, (%rcx)
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %r15
	je	LBB0_9
## %bb.7:
	cmpl	(%r15), %eax
	jne	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_nphy_get_ipa_gain_table    ## TAILCALL
LBB0_9:
	movl	(%rbx), %edi
	callq	_b43_current_band
	movl	8(%rbx), %ecx
	cmpl	(%r15), %eax
	jne	LBB0_15
## %bb.10:
	leal	-5(%rcx), %eax
	cmpl	$2, %eax
	jb	LBB0_20
## %bb.11:
	cmpl	$3, %ecx
	je	LBB0_21
## %bb.12:
	cmpl	$4, %ecx
	jne	LBB0_22
## %bb.13:
	cmpl	$3, 4(%r14)
	jne	LBB0_25
## %bb.14:
	movq	_b43_ntab_tx_gain_epa_rev4_5g@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	leal	-3(%rcx), %eax
	cmpl	$2, %eax
	jb	LBB0_19
## %bb.16:
	addl	$-5, %ecx
	cmpl	$1, %ecx
	ja	LBB0_23
## %bb.17:
	cmpl	$3, (%r14)
	jne	LBB0_19
## %bb.18:
	movq	_b43_ntab_tx_gain_epa_rev3_hi_pwr_2g@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_19:
	movq	_b43_ntab_tx_gain_epa_rev3_2g@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_20:
	movq	_b43_ntab_tx_gain_epa_rev5_5g@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_21:
	movq	_b43_ntab_tx_gain_epa_rev3_5g@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_22:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_24
LBB0_23:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_24:
	callq	_b43err
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_25:
	movq	_b43_ntab_tx_gain_epa_rev4_hi_pwr_5g@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_b43_ntab_tx_gain_rev0_1_2,8,3  ## @b43_ntab_tx_gain_rev0_1_2
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_b43_ntab_tx_gain_epa_rev5_5g,8,3 ## @b43_ntab_tx_gain_epa_rev5_5g
	.comm	_b43_ntab_tx_gain_epa_rev4_5g,8,3 ## @b43_ntab_tx_gain_epa_rev4_5g
	.comm	_b43_ntab_tx_gain_epa_rev4_hi_pwr_5g,8,3 ## @b43_ntab_tx_gain_epa_rev4_hi_pwr_5g
	.comm	_b43_ntab_tx_gain_epa_rev3_5g,8,3 ## @b43_ntab_tx_gain_epa_rev3_5g
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No 5GHz EPA gain table available for this device\n"

	.comm	_b43_ntab_tx_gain_epa_rev3_hi_pwr_2g,8,3 ## @b43_ntab_tx_gain_epa_rev3_hi_pwr_2g
	.comm	_b43_ntab_tx_gain_epa_rev3_2g,8,3 ## @b43_ntab_tx_gain_epa_rev3_2g
L_.str.1:                               ## @.str.1
	.asciz	"No 2GHz EPA gain table available for this device\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_nphy_get_tx_gain_table     ; -- Begin function b43_nphy_get_tx_gain_table
	.p2align	2
_b43_nphy_get_tx_gain_table:            ; @b43_nphy_get_tx_gain_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_b43_current_band
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.gt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _b43_ntab_tx_gain_rev0_1_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _b43_ntab_tx_gain_rev0_1_2@GOTPAGEOFF]
LBB0_2:
	ldr	x0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
Lloh2:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	x9, #0
	ccmp	w0, w10, #0, ne
	b.eq	LBB0_11
; %bb.5:
	ldr	x8, [x8]
Lloh5:
	adrp	x21, _NL80211_BAND_5GHZ@GOTPAGE
Lloh6:
	ldr	x21, [x21, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	x8, #0
	ccmp	w0, w9, #0, ne
	b.eq	LBB0_11
; %bb.6:
	ldr	x8, [x19, #24]
	ldr	x20, [x8]
	ldr	w0, [x19]
	bl	_b43_current_band
	ldr	w9, [x21]
	ldr	w8, [x19, #8]
	cmp	w0, w9
	b.ne	LBB0_12
; %bb.7:
	sub	w9, w8, #5
	cmp	w9, #2
	b.lo	LBB0_17
; %bb.8:
	cmp	w8, #3
	b.eq	LBB0_18
; %bb.9:
	cmp	w8, #4
	b.ne	LBB0_19
; %bb.10:
Lloh7:
	adrp	x8, _b43_ntab_tx_gain_epa_rev4_5g@GOTPAGE
Lloh8:
	ldr	x8, [x8, _b43_ntab_tx_gain_epa_rev4_5g@GOTPAGEOFF]
	ldr	w9, [x20, #4]
Lloh9:
	adrp	x10, _b43_ntab_tx_gain_epa_rev4_hi_pwr_5g@GOTPAGE
Lloh10:
	ldr	x10, [x10, _b43_ntab_tx_gain_epa_rev4_hi_pwr_5g@GOTPAGEOFF]
	cmp	w9, #3
	csel	x8, x8, x10, eq
	b	LBB0_2
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_b43_nphy_get_ipa_gain_table
LBB0_12:
	sub	w9, w8, #3
	cmp	w9, #2
	b.lo	LBB0_16
; %bb.13:
	sub	w8, w8, #5
	cmp	w8, #1
	b.hi	LBB0_20
; %bb.14:
	ldr	w8, [x20]
	cmp	w8, #3
	b.ne	LBB0_16
; %bb.15:
Lloh11:
	adrp	x8, _b43_ntab_tx_gain_epa_rev3_hi_pwr_2g@GOTPAGE
Lloh12:
	ldr	x8, [x8, _b43_ntab_tx_gain_epa_rev3_hi_pwr_2g@GOTPAGEOFF]
	b	LBB0_2
LBB0_16:
Lloh13:
	adrp	x8, _b43_ntab_tx_gain_epa_rev3_2g@GOTPAGE
Lloh14:
	ldr	x8, [x8, _b43_ntab_tx_gain_epa_rev3_2g@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
Lloh15:
	adrp	x8, _b43_ntab_tx_gain_epa_rev5_5g@GOTPAGE
Lloh16:
	ldr	x8, [x8, _b43_ntab_tx_gain_epa_rev5_5g@GOTPAGEOFF]
	b	LBB0_2
LBB0_18:
Lloh17:
	adrp	x8, _b43_ntab_tx_gain_epa_rev3_5g@GOTPAGE
Lloh18:
	ldr	x8, [x8, _b43_ntab_tx_gain_epa_rev3_5g@GOTPAGEOFF]
	b	LBB0_2
LBB0_19:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_21
LBB0_20:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_21:
	bl	_b43err
	mov	x0, #0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_b43_ntab_tx_gain_rev0_1_2,8,3  ; @b43_ntab_tx_gain_rev0_1_2
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_b43_ntab_tx_gain_epa_rev5_5g,8,3 ; @b43_ntab_tx_gain_epa_rev5_5g
	.comm	_b43_ntab_tx_gain_epa_rev4_5g,8,3 ; @b43_ntab_tx_gain_epa_rev4_5g
	.comm	_b43_ntab_tx_gain_epa_rev4_hi_pwr_5g,8,3 ; @b43_ntab_tx_gain_epa_rev4_hi_pwr_5g
	.comm	_b43_ntab_tx_gain_epa_rev3_5g,8,3 ; @b43_ntab_tx_gain_epa_rev3_5g
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No 5GHz EPA gain table available for this device\n"

	.comm	_b43_ntab_tx_gain_epa_rev3_hi_pwr_2g,8,3 ; @b43_ntab_tx_gain_epa_rev3_hi_pwr_2g
	.comm	_b43_ntab_tx_gain_epa_rev3_2g,8,3 ; @b43_ntab_tx_gain_epa_rev3_2g
l_.str.1:                               ; @.str.1
	.asciz	"No 2GHz EPA gain table available for this device\n"

.subsections_via_symbols
