	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x0_phy_get_target_power
_mt76x0_phy_get_target_power:           ## @mt76x0_phy_get_target_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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_MT_TX_ALC_CFG_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt76_rr
	movq	_MT_TX_ALC_CFG_0_CH_INIT_0@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$4, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$1, %ebx
	je	LBB0_5
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.3:
	movl	(%r13), %edx
	shrl	$5, %edx
	andl	$3, %edx
	movq	24(%r12), %rcx
	addl	(%rcx,%rdx,4), %eax
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_4
LBB0_7:
	movl	4(%r13), %edx
	andl	$15, %edx
	cmpl	$10, %edx
	jae	LBB0_10
## %bb.8:
	movq	8(%r12), %rcx
	jmp	LBB0_12
LBB0_5:
	movl	(%r13), %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	addl	$-8, %ecx
	cmpl	$7, %ecx
	ja	LBB0_10
## %bb.6:
	movslq	%ecx, %rcx
	leaq	l_switch.table.mt76x0_phy_get_target_power(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movq	16(%r12), %rdx
	addl	(%rdx,%rcx,4), %eax
	movl	%eax, (%r15)
	leal	4(%rcx), %edx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
LBB0_4:
	callq	_mt76x0_phy_get_rf_pa_mode
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_9:
	movl	4(%r13), %edx
	andl	$127, %edx
	cmpl	$10, %edx
	jb	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_11:
	movq	(%r12), %rcx
LBB0_12:
	addl	(%rcx,%rdx,4), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	movl	$1, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mt76x0_phy_get_rf_pa_mode
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	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_CH_INIT_0,4,2  ## @MT_TX_ALC_CFG_0_CH_INIT_0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mt76x0_phy_get_target_power
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.mt76x0_phy_get_target_power
l_switch.table.mt76x0_phy_get_target_power:
	.long	6                               ## 0x6
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	7                               ## 0x7
	.long	5                               ## 0x5
	.long	3                               ## 0x3
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x0_phy_get_target_power
_mt76x0_phy_get_target_power:           ; @mt76x0_phy_get_target_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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, 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	_mt76_rr
Lloh3:
	adrp	x8, _MT_TX_ALC_CFG_0_CH_INIT_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TX_ALC_CFG_0_CH_INIT_0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w23, #4
	b.eq	LBB0_4
; %bb.1:
	cmp	w23, #1
	b.eq	LBB0_6
; %bb.2:
	cbnz	w23, LBB0_8
; %bb.3:
	ldr	w9, [x22]
	ubfx	x2, x9, #5, #2
	ldr	x9, [x20, #24]
	ldr	w9, [x9, x2, lsl #2]
	add	w8, w9, w8
	str	w8, [x21]
	mov	x0, x20
	mov	w1, #0
	b	LBB0_12
LBB0_4:
	ldr	w9, [x22, #4]
	and	x2, x9, #0xf
	cmp	w2, #10
	b.hs	LBB0_9
; %bb.5:
	ldr	x9, [x20, #8]
	b	LBB0_11
LBB0_6:
	ldr	w9, [x22]
	ubfx	x9, x9, #4, #4
	sub	x9, x9, #8
	cmp	w9, #7
	b.hi	LBB0_9
; %bb.7:
Lloh6:
	adrp	x10, l_switch.table.mt76x0_phy_get_target_power@PAGE
Lloh7:
	add	x10, x10, l_switch.table.mt76x0_phy_get_target_power@PAGEOFF
	ldr	w9, [x10, x9, lsl #2]
	ldr	x10, [x20, #16]
	ldr	w10, [x10, x9, lsl #2]
	add	w8, w10, w8
	str	w8, [x21]
	add	w2, w9, #4
	mov	x0, x20
	mov	w1, #0
	b	LBB0_13
LBB0_8:
	ldr	w9, [x22, #4]
	and	x2, x9, #0x7f
	cmp	w2, #10
	b.lo	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_10:
	ldr	x9, [x20]
LBB0_11:
	ldr	w9, [x9, x2, lsl #2]
	add	w8, w9, w8
	str	w8, [x21]
	mov	x0, x20
	mov	w1, #1
LBB0_12:
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_13:
	bl	_mt76x0_phy_get_rf_pa_mode
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_14:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TX_ALC_CFG_0,4,2            ; @MT_TX_ALC_CFG_0
	.comm	_MT_TX_ALC_CFG_0_CH_INIT_0,4,2  ; @MT_TX_ALC_CFG_0_CH_INIT_0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mt76x0_phy_get_target_power
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.mt76x0_phy_get_target_power
l_switch.table.mt76x0_phy_get_target_power:
	.long	6                               ; 0x6
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	7                               ; 0x7
	.long	5                               ; 0x5
	.long	3                               ; 0x3
	.long	1                               ; 0x1

.subsections_via_symbols
