	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_hw_rtt_load_hist        ## -- Begin function ar9003_hw_rtt_load_hist
	.p2align	4, 0x90
_ar9003_hw_rtt_load_hist:               ## @ar9003_hw_rtt_load_hist
	.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	_AR9300_MAX_CHAINS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movq	_MAX_RTT_TABLE_ENTRY@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	xorl	%r12d, %r12d
	movq	_CALIBRATE@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	8(%r14), %edx
	btl	%r12d, %edx
	jae	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_ar9003_hw_rtt_load_hist_entry
	movq	%r14, %rdi
	callq	_ath9k_hw_common
	movl	(%r15), %esi
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	(%rcx,%rbx,4), %r9d
	movl	%eax, %edi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_ath_dbg
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AR9300_MAX_CHAINS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR9300_MAX_CHAINS,4,2          ## @AR9300_MAX_CHAINS
	.comm	_MAX_RTT_TABLE_ENTRY,4,2        ## @MAX_RTT_TABLE_ENTRY
	.comm	_CALIBRATE,4,2                  ## @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Load RTT value at idx %d, chain %d: 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_hw_rtt_load_hist        ; -- Begin function ar9003_hw_rtt_load_hist
	.p2align	2
_ar9003_hw_rtt_load_hist:               ; @ar9003_hw_rtt_load_hist
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x23, _AR9300_MAX_CHAINS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AR9300_MAX_CHAINS@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh2:
	adrp	x24, _MAX_RTT_TABLE_ENTRY@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAX_RTT_TABLE_ENTRY@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh4:
	adrp	x25, _CALIBRATE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CALIBRATE@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, w9, sxtw
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w10, [x19, #8]
	lsr	w10, w10, w20
	tbz	w10, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	x8, [x8]
	lsl	x26, x20, #3
	ldr	x8, [x8, x26]
	lsl	x27, x22, #2
	ldr	w3, [x8, x27]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_ar9003_hw_rtt_load_hist_entry
	mov	x0, x19
	bl	_ath9k_hw_common
	ldr	w1, [x25]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8, x26]
	ldr	w5, [x8, x27]
	mov	x2, x21
	mov	x3, x22
	mov	x4, x20
	bl	_ath_dbg
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.lt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x23]
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AR9300_MAX_CHAINS,4,2          ; @AR9300_MAX_CHAINS
	.comm	_MAX_RTT_TABLE_ENTRY,4,2        ; @MAX_RTT_TABLE_ENTRY
	.comm	_CALIBRATE,4,2                  ; @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Load RTT value at idx %d, chain %d: 0x%x\n"

.subsections_via_symbols
