	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_get_txpower_bw_comp
_rt2800_get_txpower_bw_comp:            ## @rt2800_get_txpower_bw_comp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_EEPROM_TXPOWER_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2800_eeprom_read
	xorl	%r12d, %r12d
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_8
## %bb.1:
	movl	%eax, %r14d
	movq	_CONFIG_CHANNEL_HT40@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_EEPROM_TXPOWER_DELTA_ENABLE_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	_EEPROM_TXPOWER_DELTA_TYPE_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	movl	%eax, %ebx
	movq	_EEPROM_TXPOWER_DELTA_VALUE_2G@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_EEPROM_TXPOWER_DELTA_ENABLE_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	_EEPROM_TXPOWER_DELTA_TYPE_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	movl	%eax, %ebx
	movq	_EEPROM_TXPOWER_DELTA_VALUE_5G@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field16
	movl	%eax, %r12d
	negl	%r12d
	testl	%ebx, %ebx
	cmovnel	%eax, %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_TXPOWER_DELTA,4,2       ## @EEPROM_TXPOWER_DELTA
	.comm	_CONFIG_CHANNEL_HT40,4,2        ## @CONFIG_CHANNEL_HT40
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_EEPROM_TXPOWER_DELTA_ENABLE_2G,4,2 ## @EEPROM_TXPOWER_DELTA_ENABLE_2G
	.comm	_EEPROM_TXPOWER_DELTA_TYPE_2G,4,2 ## @EEPROM_TXPOWER_DELTA_TYPE_2G
	.comm	_EEPROM_TXPOWER_DELTA_VALUE_2G,4,2 ## @EEPROM_TXPOWER_DELTA_VALUE_2G
	.comm	_EEPROM_TXPOWER_DELTA_ENABLE_5G,4,2 ## @EEPROM_TXPOWER_DELTA_ENABLE_5G
	.comm	_EEPROM_TXPOWER_DELTA_TYPE_5G,4,2 ## @EEPROM_TXPOWER_DELTA_TYPE_5G
	.comm	_EEPROM_TXPOWER_DELTA_VALUE_5G,4,2 ## @EEPROM_TXPOWER_DELTA_VALUE_5G
	.no_dead_strip	_rt2800_get_txpower_bw_comp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_get_txpower_bw_comp
_rt2800_get_txpower_bw_comp:            ; @rt2800_get_txpower_bw_comp
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EEPROM_TXPOWER_DELTA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_TXPOWER_DELTA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2800_eeprom_read
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x8, _CONFIG_CHANNEL_HT40@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG_CHANNEL_HT40@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.3:
Lloh6:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _EEPROM_TXPOWER_DELTA_ENABLE_2G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEPROM_TXPOWER_DELTA_ENABLE_2G@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_get_field16
	cbz	w0, LBB0_9
; %bb.5:
Lloh12:
	adrp	x8, _EEPROM_TXPOWER_DELTA_TYPE_2G@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EEPROM_TXPOWER_DELTA_TYPE_2G@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_get_field16
	mov	x20, x0
Lloh15:
	adrp	x8, _EEPROM_TXPOWER_DELTA_VALUE_2G@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EEPROM_TXPOWER_DELTA_VALUE_2G@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x8, _EEPROM_TXPOWER_DELTA_ENABLE_5G@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EEPROM_TXPOWER_DELTA_ENABLE_5G@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_get_field16
	cbz	w0, LBB0_9
; %bb.7:
Lloh20:
	adrp	x8, _EEPROM_TXPOWER_DELTA_TYPE_5G@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EEPROM_TXPOWER_DELTA_TYPE_5G@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_get_field16
	mov	x20, x0
Lloh23:
	adrp	x8, _EEPROM_TXPOWER_DELTA_VALUE_5G@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EEPROM_TXPOWER_DELTA_VALUE_5G@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_get_field16
	cmp	w20, #0
	cneg	w0, w0, eq
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_TXPOWER_DELTA,4,2       ; @EEPROM_TXPOWER_DELTA
	.comm	_CONFIG_CHANNEL_HT40,4,2        ; @CONFIG_CHANNEL_HT40
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_EEPROM_TXPOWER_DELTA_ENABLE_2G,4,2 ; @EEPROM_TXPOWER_DELTA_ENABLE_2G
	.comm	_EEPROM_TXPOWER_DELTA_TYPE_2G,4,2 ; @EEPROM_TXPOWER_DELTA_TYPE_2G
	.comm	_EEPROM_TXPOWER_DELTA_VALUE_2G,4,2 ; @EEPROM_TXPOWER_DELTA_VALUE_2G
	.comm	_EEPROM_TXPOWER_DELTA_ENABLE_5G,4,2 ; @EEPROM_TXPOWER_DELTA_ENABLE_5G
	.comm	_EEPROM_TXPOWER_DELTA_TYPE_5G,4,2 ; @EEPROM_TXPOWER_DELTA_TYPE_5G
	.comm	_EEPROM_TXPOWER_DELTA_VALUE_5G,4,2 ; @EEPROM_TXPOWER_DELTA_VALUE_5G
	.no_dead_strip	_rt2800_get_txpower_bw_comp
.subsections_via_symbols
