	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_phy_set_txpower_regs    ## -- Begin function mt76x2_phy_set_txpower_regs
	.p2align	4, 0x90
_mt76x2_phy_set_txpower_regs:           ## @mt76x2_phy_set_txpower_regs
	.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, %r13
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_MT_TX_ALC_CFG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$890636800, %edx                ## imm = 0x35160A00
	callq	_mt76_wr
	movq	_MT_TX_ALC_CFG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$890636806, %edx                ## imm = 0x35160A06
	callq	_mt76_wr
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mt76x02_ext_pa_enabled
	movq	_MT_RF_PA_MODE_ADJ0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$60416, %ebx                    ## imm = 0xEC00
	movq	%r13, %rdi
	movl	$60416, %edx                    ## imm = 0xEC00
	callq	_mt76_wr
	movl	$5570645, %r15d                 ## imm = 0x550055
	movl	$16799231, %r12d                ## imm = 0x10055FF
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mt76x02_ext_pa_enabled
	testq	%rax, %rax
	movq	_MT_TX_ALC_CFG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$453968896, %eax                ## imm = 0x1B0F0400
	movl	$789513216, %edx                ## imm = 0x2F0F0400
	cmovel	%eax, %edx
	movl	$453969014, %eax                ## imm = 0x1B0F0476
	movl	$789513334, %ebx                ## imm = 0x2F0F0476
	cmovel	%eax, %ebx
	movq	%r13, %rdi
	callq	_mt76_wr
	movq	_MT_TX_ALC_CFG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mt76x02_ext_pa_enabled
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	shll	$26, %ebx
	movq	_MT_RF_PA_MODE_ADJ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_mt76_wr
	movl	$16711935, %r15d                ## imm = 0xFF00FF
	movl	$65535, %r12d                   ## imm = 0xFFFF
	jmp	LBB0_5
LBB0_3:
	movq	%r13, %rdi
	movl	$-201326080, %edx               ## imm = 0xF4000200
	callq	_mt76_wr
	movl	$5570645, %r15d                 ## imm = 0x550055
	movl	$16799231, %r12d                ## imm = 0x10055FF
	movl	$-100662784, %ebx               ## imm = 0xFA000200
LBB0_5:
	movq	_MT_RF_PA_MODE_ADJ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	_MT_BB_PA_MODE_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_mt76_wr
	movq	_MT_BB_PA_MODE_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_mt76_wr
	movq	_MT_RF_PA_MODE_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_mt76_wr
	movq	_MT_RF_PA_MODE_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_mt76_wr
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mt76x02_ext_pa_enabled
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpl	%r14d, %ecx
	movl	$1010565692, %eax               ## imm = 0x3C3C023C
	movl	$909902396, %ebx                ## imm = 0x363C023C
	cmovel	%eax, %ebx
	movq	_MT_TX0_RF_GAIN_CORR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_mt76_wr
	movl	$6168, %r14d                    ## imm = 0x1818
	jmp	LBB0_10
LBB0_7:
	movq	_MT_TX0_RF_GAIN_CORR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%r14d, %ecx
	jne	LBB0_9
## %bb.8:
	movl	$255605820, %ebx                ## imm = 0xF3C3C3C
	movq	%r13, %rdi
	movl	$255605820, %edx                ## imm = 0xF3C3C3C
	callq	_mt76_wr
	movl	$1542, %r14d                    ## imm = 0x606
	jmp	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	movl	$943456828, %edx                ## imm = 0x383C023C
	callq	_mt76_wr
	xorl	%r14d, %r14d
	movl	$606613032, %ebx                ## imm = 0x24282E28
LBB0_10:
	movq	_MT_TX1_RF_GAIN_CORR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	_MT_TX_ALC_CFG_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_MT_TX_ALC_CFG_2,4,2            ## @MT_TX_ALC_CFG_2
	.comm	_MT_TX_ALC_CFG_3,4,2            ## @MT_TX_ALC_CFG_3
	.comm	_MT_RF_PA_MODE_ADJ0,4,2         ## @MT_RF_PA_MODE_ADJ0
	.comm	_MT_RF_PA_MODE_ADJ1,4,2         ## @MT_RF_PA_MODE_ADJ1
	.comm	_MT_BB_PA_MODE_CFG0,4,2         ## @MT_BB_PA_MODE_CFG0
	.comm	_MT_BB_PA_MODE_CFG1,4,2         ## @MT_BB_PA_MODE_CFG1
	.comm	_MT_RF_PA_MODE_CFG0,4,2         ## @MT_RF_PA_MODE_CFG0
	.comm	_MT_RF_PA_MODE_CFG1,4,2         ## @MT_RF_PA_MODE_CFG1
	.comm	_MT_TX0_RF_GAIN_CORR,4,2        ## @MT_TX0_RF_GAIN_CORR
	.comm	_MT_TX1_RF_GAIN_CORR,4,2        ## @MT_TX1_RF_GAIN_CORR
	.comm	_MT_TX_ALC_CFG_4,4,2            ## @MT_TX_ALC_CFG_4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_phy_set_txpower_regs    ; -- Begin function mt76x2_phy_set_txpower_regs
	.p2align	2
_mt76x2_phy_set_txpower_regs:           ; @mt76x2_phy_set_txpower_regs
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
	mov	w22, #22015
	movk	w22, #256, lsl #16
	mov	w21, #85
	movk	w21, #85, lsl #16
Lloh2:
	adrp	x8, _MT_TX_ALC_CFG_2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_TX_ALC_CFG_2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w23, #2560
	movk	w23, #13590, lsl #16
	mov	x0, x19
	mov	w2, #2560
	movk	w2, #13590, lsl #16
	bl	_mt76_wr
Lloh5:
	adrp	x8, _MT_TX_ALC_CFG_3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_TX_ALC_CFG_3@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	orr	w2, w23, #0x6
	mov	x0, x19
	bl	_mt76_wr
	mov	x0, x19
	mov	x1, x20
	bl	_mt76x02_ext_pa_enabled
Lloh8:
	adrp	x8, _MT_RF_PA_MODE_ADJ0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MT_RF_PA_MODE_ADJ0@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	w23, #60416
	mov	x0, x19
	mov	w2, #60416
	bl	_mt76_wr
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_mt76x02_ext_pa_enabled
Lloh11:
	adrp	x8, _MT_TX_ALC_CFG_2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT_TX_ALC_CFG_2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	cmp	x0, #0
	mov	w8, #1024
	movk	w8, #12047, lsl #16
	mov	w9, #1024
	movk	w9, #6927, lsl #16
	csel	w2, w9, w8, eq
	mov	w10, #118
	orr	w9, w9, w10
	orr	w8, w8, w10
	csel	w21, w9, w8, eq
	mov	x0, x19
	bl	_mt76_wr
Lloh14:
	adrp	x8, _MT_TX_ALC_CFG_3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_TX_ALC_CFG_3@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
	mov	x0, x19
	mov	x1, x20
	bl	_mt76x02_ext_pa_enabled
	cmp	x0, #0
	cset	w8, ne
	lsl	w23, w8, #26
Lloh17:
	adrp	x8, _MT_RF_PA_MODE_ADJ0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_RF_PA_MODE_ADJ0@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_mt76_wr
	mov	w21, #16711935
	mov	w22, #65535
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w2, #512
	movk	w2, #62464, lsl #16
	bl	_mt76_wr
	mov	w23, #512
	movk	w23, #64000, lsl #16
LBB0_5:
Lloh20:
	adrp	x8, _MT_RF_PA_MODE_ADJ1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_RF_PA_MODE_ADJ1@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_mt76_wr
Lloh23:
	adrp	x8, _MT_BB_PA_MODE_CFG0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MT_BB_PA_MODE_CFG0@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_mt76_wr
Lloh26:
	adrp	x8, _MT_BB_PA_MODE_CFG1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MT_BB_PA_MODE_CFG1@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
Lloh29:
	adrp	x8, _MT_RF_PA_MODE_CFG0@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MT_RF_PA_MODE_CFG0@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_mt76_wr
Lloh32:
	adrp	x8, _MT_RF_PA_MODE_CFG1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MT_RF_PA_MODE_CFG1@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
	mov	x0, x19
	mov	x1, x20
	bl	_mt76x02_ext_pa_enabled
	ldr	w8, [x24]
	cbz	x0, LBB0_7
; %bb.6:
	mov	w9, #572
	movk	w9, #13884, lsl #16
	mov	w10, #572
	movk	w10, #15420, lsl #16
	cmp	w8, w20
	csel	w20, w10, w9, eq
Lloh35:
	adrp	x8, _MT_TX0_RF_GAIN_CORR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MT_TX0_RF_GAIN_CORR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
	mov	w21, #6168
	b	LBB0_10
LBB0_7:
Lloh38:
	adrp	x9, _MT_TX0_RF_GAIN_CORR@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MT_TX0_RF_GAIN_CORR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x9]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.8:
	mov	w20, #15420
	movk	w20, #3900, lsl #16
	mov	x0, x19
	mov	w2, #15420
	movk	w2, #3900, lsl #16
	bl	_mt76_wr
	mov	w21, #1542
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	w2, #572
	movk	w2, #14396, lsl #16
	bl	_mt76_wr
	mov	w21, #0
	mov	w20, #11816
	movk	w20, #9256, lsl #16
LBB0_10:
Lloh41:
	adrp	x8, _MT_TX1_RF_GAIN_CORR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MT_TX1_RF_GAIN_CORR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
Lloh44:
	adrp	x8, _MT_TX_ALC_CFG_4@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MT_TX_ALC_CFG_4@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	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	_mt76_wr
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_MT_TX_ALC_CFG_2,4,2            ; @MT_TX_ALC_CFG_2
	.comm	_MT_TX_ALC_CFG_3,4,2            ; @MT_TX_ALC_CFG_3
	.comm	_MT_RF_PA_MODE_ADJ0,4,2         ; @MT_RF_PA_MODE_ADJ0
	.comm	_MT_RF_PA_MODE_ADJ1,4,2         ; @MT_RF_PA_MODE_ADJ1
	.comm	_MT_BB_PA_MODE_CFG0,4,2         ; @MT_BB_PA_MODE_CFG0
	.comm	_MT_BB_PA_MODE_CFG1,4,2         ; @MT_BB_PA_MODE_CFG1
	.comm	_MT_RF_PA_MODE_CFG0,4,2         ; @MT_RF_PA_MODE_CFG0
	.comm	_MT_RF_PA_MODE_CFG1,4,2         ; @MT_RF_PA_MODE_CFG1
	.comm	_MT_TX0_RF_GAIN_CORR,4,2        ; @MT_TX0_RF_GAIN_CORR
	.comm	_MT_TX1_RF_GAIN_CORR,4,2        ; @MT_TX1_RF_GAIN_CORR
	.comm	_MT_TX_ALC_CFG_4,4,2            ; @MT_TX_ALC_CFG_4
.subsections_via_symbols
