	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_get_indirect_edge_power
_ar9003_hw_get_indirect_edge_power:     ## @ar9003_hw_get_indirect_edge_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	testl	%r8d, %r8d
	je	LBB0_5
## %bb.1:
	movq	24(%rdi), %r15
	movq	8(%rdi), %rax
	movslq	%esi, %r12
	movq	(%rax,%r12,8), %rax
	decl	%ebx
	movl	(%rax,%rbx,4), %edi
	movl	$1, %esi
	jmp	LBB0_2
LBB0_5:
	movq	16(%rdi), %r15
	movq	(%rdi), %rax
	movslq	%esi, %r12
	movq	(%rax,%r12,8), %rax
	decl	%ebx
	movl	(%rax,%rbx,4), %edi
	xorl	%esi, %esi
LBB0_2:
	callq	_ath9k_hw_fbin2freq
	cmpq	%r14, %rax
	jge	LBB0_6
## %bb.3:
	movq	(%r15,%r12,8), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_CTL_EDGE_FLAGS
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%r15,%r12,8), %rax
	movl	(%rax,%rbx,4), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CTL_EDGE_TPOWER                ## TAILCALL
LBB0_6:
	movq	_MAX_RATE_POWER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RATE_POWER,8,3             ## @MAX_RATE_POWER
	.no_dead_strip	_ar9003_hw_get_indirect_edge_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_get_indirect_edge_power
_ar9003_hw_get_indirect_edge_power:     ; @ar9003_hw_get_indirect_edge_power
	.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, x3
	mov	x19, x1
	cbz	w4, LBB0_2
; %bb.1:
	ldr	x21, [x0, #24]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, w19, sxtw #3]
	sub	w22, w2, #1
	ldr	w0, [x8, w22, uxtw #2]
	mov	w1, #1
	bl	_ath9k_hw_fbin2freq
	cmp	x0, x20
	b.lt	LBB0_4
	b	LBB0_6
LBB0_2:
	ldr	x21, [x0, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, w19, sxtw #3]
	sub	w22, w2, #1
	ldr	w0, [x8, w22, uxtw #2]
	mov	w1, #0
	bl	_ath9k_hw_fbin2freq
	cmp	x0, x20
	b.ge	LBB0_6
; %bb.3:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
LBB0_4:
	sxtw	x19, w19
	ldr	x8, [x21, x19, lsl #3]
	ldr	w0, [x8, x22, lsl #2]
	bl	_CTL_EDGE_FLAGS
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x21, x19, lsl #3]
	ldr	w0, [x8, x22, lsl #2]
	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	_CTL_EDGE_TPOWER
LBB0_6:
Lloh0:
	adrp	x8, _MAX_RATE_POWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RATE_POWER@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RATE_POWER,8,3             ; @MAX_RATE_POWER
	.no_dead_strip	_ar9003_hw_get_indirect_edge_power
.subsections_via_symbols
