	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_get_max_edge_power    ## -- Begin function ath9k_hw_get_max_edge_power
	.p2align	4, 0x90
_ath9k_hw_get_max_edge_power:           ## @ath9k_hw_get_max_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX_RATE_POWER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	movl	%edx, %r13d
	movq	%rdi, %r12
	movl	%ecx, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r14
	negq	%rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r14
	movq	%rbx, %r15
	cmpq	%rbx, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r14), %rdi
	movq	_AR5416_BCHAN_UNUSED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %esi
	callq	_ath9k_hw_fbin2freq
	cmpq	%r12, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	subq	$1, %rbx
	jb	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%r14), %rdi
	movl	%r13d, %esi
	callq	_ath9k_hw_fbin2freq
	cmpq	%r12, %rax
	jle	LBB0_10
## %bb.6:
	notl	%r15d
	shlq	$4, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15), %rdi
	movl	%r13d, %esi
	callq	_ath9k_hw_fbin2freq
	cmpq	%r12, %rax
	jge	LBB0_11
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r15), %edi
	callq	_CTL_EDGE_FLAGS
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %r14
	addq	$8, %r14
LBB0_9:
	movl	(%r14), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CTL_EDGE_TPOWER                ## TAILCALL
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RATE_POWER,8,3             ## @MAX_RATE_POWER
	.comm	_AR5416_BCHAN_UNUSED,8,3        ## @AR5416_BCHAN_UNUSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_get_max_edge_power    ; -- Begin function ath9k_hw_get_max_edge_power
	.p2align	2
_ath9k_hw_get_max_edge_power:           ; @ath9k_hw_get_max_edge_power
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _MAX_RATE_POWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RATE_POWER@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cmp	w3, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	x24, #0
	add	x23, x1, #8
	sub	x25, x24, w3, uxtw
Lloh3:
	adrp	x26, _AR5416_BCHAN_UNUSED@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AR5416_BCHAN_UNUSED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x24, x24, #1
	add	x23, x23, #16
	cmp	x25, x24
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x23, #-8]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x22
	bl	_ath9k_hw_fbin2freq
	cmp	x0, x21
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x24, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x0, [x23, #-8]
	mov	x1, x22
	bl	_ath9k_hw_fbin2freq
	cmp	x0, x21
	b.le	LBB0_2
; %bb.7:
	mvn	w23, w24
	lsl	x8, x23, #4
	ldr	x0, [x20, x8]
	mov	x1, x22
	bl	_ath9k_hw_fbin2freq
	cmp	x0, x21
	b.ge	LBB0_10
; %bb.8:
	add	x23, x20, x23, lsl #4
	ldr	w0, [x23, #8]!
	bl	_CTL_EDGE_FLAGS
	cbz	x0, LBB0_10
LBB0_9:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_CTL_EDGE_TPOWER
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RATE_POWER,8,3             ; @MAX_RATE_POWER
	.comm	_AR5416_BCHAN_UNUSED,8,3        ; @AR5416_BCHAN_UNUSED
.subsections_via_symbols
