	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_set_channel_power
_mt7601u_set_channel_power:             ## @mt7601u_set_channel_power
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_MT_TX_ALC_CFG_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt7601u_rr
	movq	_MT_TX_ALC_CFG_0_LIMIT_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_FIELD_GET
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mt7601u_has_tssi
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7601u_set_channel_target_power ## TAILCALL
LBB0_1:
	xorl	%ebx, %ebx
	movq	_MT7601U_DEFAULT_TX_POWER@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MT_EE_TX_POWER_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rbx, %rax
	movq	(%r14,%rax,8), %rdi
	callq	_field_validate
	testq	%rax, %rax
	movq	(%r13), %rcx
	movq	%rax, %rdx
	cmovsq	%rcx, %rdx
	cmpq	%r12, %rax
	cmovgq	%rcx, %rdx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rdx, (%rax,%rbx,8)
	incq	%rbx
	cmpq	$14, %rbx
	jne	LBB0_2
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TX_ALC_CFG_0,4,2            ## @MT_TX_ALC_CFG_0
	.comm	_MT_TX_ALC_CFG_0_LIMIT_0,4,2    ## @MT_TX_ALC_CFG_0_LIMIT_0
	.comm	_MT_EE_TX_POWER_OFFSET,4,2      ## @MT_EE_TX_POWER_OFFSET
	.comm	_MT7601U_DEFAULT_TX_POWER,8,3   ## @MT7601U_DEFAULT_TX_POWER
	.no_dead_strip	_mt7601u_set_channel_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_set_channel_power
_mt7601u_set_channel_power:             ; @mt7601u_set_channel_power
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MT_TX_ALC_CFG_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TX_ALC_CFG_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mt7601u_rr
	mov	x1, x0
Lloh3:
	adrp	x8, _MT_TX_ALC_CFG_0_LIMIT_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TX_ALC_CFG_0_LIMIT_0@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FIELD_GET
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mt7601u_has_tssi
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, 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	_mt7601u_set_channel_target_power
LBB0_2:
	mov	x22, #0
Lloh6:
	adrp	x23, _MT_EE_TX_POWER_OFFSET@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MT_EE_TX_POWER_OFFSET@GOTPAGEOFF]
Lloh8:
	adrp	x24, _MT7601U_DEFAULT_TX_POWER@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MT7601U_DEFAULT_TX_POWER@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x23]
	add	x8, x22, x8
	ldr	x0, [x19, x8, lsl #3]
	bl	_field_validate
	cmp	x0, #0
	ccmp	x0, x21, #0, ge
	ldr	x8, [x24]
	csel	x8, x8, x0, gt
	ldr	x9, [x20]
	ldr	x9, [x9]
	str	x8, [x9, x22, lsl #3]
	add	x22, x22, #1
	cmp	x22, #14
	b.ne	LBB0_3
; %bb.4:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TX_ALC_CFG_0,4,2            ; @MT_TX_ALC_CFG_0
	.comm	_MT_TX_ALC_CFG_0_LIMIT_0,4,2    ; @MT_TX_ALC_CFG_0_LIMIT_0
	.comm	_MT_EE_TX_POWER_OFFSET,4,2      ; @MT_EE_TX_POWER_OFFSET
	.comm	_MT7601U_DEFAULT_TX_POWER,8,3   ; @MT7601U_DEFAULT_TX_POWER
	.no_dead_strip	_mt7601u_set_channel_power
.subsections_via_symbols
