	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_update_target_stats
_ath6kl_update_target_stats:            ## @ath6kl_update_target_stats
	.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
	cmpl	$248, %edx
	jb	LBB0_5
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	272(%rdi), %r14
	movq	_ATH6KL_DBG_TRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ath6kl_dbg
	movl	240(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 264(%r15)
	movl	236(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 260(%r15)
	movl	232(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 256(%r15)
	movl	228(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 252(%r15)
	movl	224(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 248(%r15)
	movl	220(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 244(%r15)
	movl	216(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 240(%r15)
	movl	212(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 236(%r15)
	movl	208(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 232(%r15)
	movq	_WMM_NUM_AC@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	200(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	224(%r15), %rcx
	addl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	(%r13), %rbx
	jb	LBB0_3
LBB0_4:
	movl	196(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 216(%r15)
	movl	192(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 212(%r15)
	movl	188(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 208(%r15)
	movl	184(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 204(%r15)
	movl	180(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 200(%r15)
	movl	176(%r12), %edi
	callq	_a_sle32_to_cpu
	movl	4(%r14), %edi
	movq	%rax, %rsi
	callq	_ath6kl_wmi_get_rate
	movq	%rax, 192(%r15)
	movl	172(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 188(%r15)
	movl	168(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 184(%r15)
	movl	164(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 180(%r15)
	movl	160(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 176(%r15)
	movl	156(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 172(%r15)
	movl	152(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 168(%r15)
	movl	148(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 164(%r15)
	movl	144(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 160(%r15)
	movl	140(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 156(%r15)
	movl	136(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 152(%r15)
	movl	132(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 148(%r15)
	movl	128(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 144(%r15)
	movl	124(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 140(%r15)
	movl	120(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 136(%r15)
	movl	116(%r12), %edi
	callq	_a_sle32_to_cpu
	movl	4(%r14), %edi
	movq	%rax, %rsi
	callq	_ath6kl_wmi_get_rate
	movq	%rax, 128(%r15)
	movl	112(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 124(%r15)
	movl	108(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 120(%r15)
	movl	104(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 116(%r15)
	movl	100(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 112(%r15)
	movl	96(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 108(%r15)
	movl	88(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 104(%r15)
	movl	84(%r12), %edi
	callq	_a_sle32_to_cpu
	movq	%rax, 96(%r15)
	movl	80(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 92(%r15)
	movl	76(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 88(%r15)
	movl	72(%r12), %edi
	callq	_le16_to_cpu
	addl	%eax, 84(%r15)
	movl	68(%r12), %edi
	callq	_le16_to_cpu
	addl	%eax, 80(%r15)
	movl	64(%r12), %edi
	callq	_a_sle16_to_cpu
	movq	%rax, 72(%r15)
	movl	60(%r12), %eax
	movl	%eax, 68(%r15)
	movl	56(%r12), %eax
	movl	%eax, 64(%r15)
	movl	52(%r12), %edi
	callq	_a_sle16_to_cpu
	movq	%rax, 56(%r15)
	movl	48(%r12), %edi
	callq	_le32_to_cpu
	movq	%rax, 48(%r15)
	movl	40(%r12), %edi
	callq	_le32_to_cpu
	addl	%eax, 44(%r15)
	movl	32(%r12), %eax
	addl	%eax, 40(%r15)
	movl	24(%r12), %eax
	addl	%eax, 36(%r15)
	movl	16(%r12), %edi
	callq	_le16_to_cpu
	addl	%eax, 32(%r15)
	movl	8(%r12), %edi
	callq	_le32_to_cpu
	movq	%rax, 24(%r15)
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	movq	%rax, 16(%r15)
	movl	(%r12), %edi
	callq	_le32_to_cpu
	movq	%rax, 8(%r15)
	movq	_STATS_UPDATE_PEND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_TRC,4,2             ## @ATH6KL_DBG_TRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"updating target stats\n"

	.comm	_WMM_NUM_AC,8,3                 ## @WMM_NUM_AC
	.comm	_STATS_UPDATE_PEND,4,2          ## @STATS_UPDATE_PEND
	.no_dead_strip	_ath6kl_update_target_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_update_target_stats
_ath6kl_update_target_stats:            ; @ath6kl_update_target_stats
	.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
	cmp	w2, #248
	b.lo	LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #272]
Lloh0:
	adrp	x8, _ATH6KL_DBG_TRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_TRC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
	ldr	w0, [x21, #240]
	bl	_le32_to_cpu
	ldr	w8, [x19, #264]
	add	w8, w0, w8
	str	w8, [x19, #264]
	ldr	w0, [x21, #236]
	bl	_le32_to_cpu
	ldr	w8, [x19, #260]
	add	w8, w0, w8
	str	w8, [x19, #260]
	ldr	w0, [x21, #232]
	bl	_le32_to_cpu
	ldr	w8, [x19, #256]
	add	w8, w0, w8
	str	w8, [x19, #256]
	ldr	w0, [x21, #228]
	bl	_le32_to_cpu
	ldr	w8, [x19, #252]
	add	w8, w0, w8
	str	w8, [x19, #252]
	ldr	w0, [x21, #224]
	bl	_le32_to_cpu
	ldr	w8, [x19, #248]
	add	w8, w0, w8
	str	w8, [x19, #248]
	ldr	w0, [x21, #220]
	bl	_le32_to_cpu
	ldr	w8, [x19, #244]
	add	w8, w0, w8
	str	w8, [x19, #244]
	ldr	w0, [x21, #216]
	bl	_le32_to_cpu
	ldr	w8, [x19, #240]
	add	w8, w0, w8
	str	w8, [x19, #240]
	ldr	w0, [x21, #212]
	bl	_le32_to_cpu
	ldr	w8, [x19, #236]
	add	w8, w0, w8
	str	w8, [x19, #236]
	ldr	w0, [x21, #208]
	bl	_le32_to_cpu
	ldr	w8, [x19, #232]
	add	w8, w0, w8
	str	w8, [x19, #232]
Lloh5:
	adrp	x22, _WMM_NUM_AC@GOTPAGE
Lloh6:
	ldr	x22, [x22, _WMM_NUM_AC@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #200]
	lsl	x24, x23, #2
	ldr	w0, [x8, x24]
	bl	_le32_to_cpu
	ldr	x8, [x19, #224]
	ldr	w9, [x8, x24]
	add	w9, w0, w9
	str	w9, [x8, x24]
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	w0, [x21, #196]
	bl	_le32_to_cpu
	ldr	w8, [x19, #216]
	add	w8, w0, w8
	str	w8, [x19, #216]
	ldr	w0, [x21, #192]
	bl	_le32_to_cpu
	ldr	w8, [x19, #212]
	add	w8, w0, w8
	str	w8, [x19, #212]
	ldr	w0, [x21, #188]
	bl	_le32_to_cpu
	ldr	w8, [x19, #208]
	add	w8, w0, w8
	str	w8, [x19, #208]
	ldr	w0, [x21, #184]
	bl	_le32_to_cpu
	ldr	w8, [x19, #204]
	add	w8, w0, w8
	str	w8, [x19, #204]
	ldr	w0, [x21, #180]
	bl	_le32_to_cpu
	ldr	w8, [x19, #200]
	add	w8, w0, w8
	str	w8, [x19, #200]
	ldr	w0, [x21, #176]
	bl	_a_sle32_to_cpu
	mov	x1, x0
	ldr	w0, [x20, #4]
	bl	_ath6kl_wmi_get_rate
	str	x0, [x19, #192]
	ldr	w0, [x21, #172]
	bl	_le32_to_cpu
	ldr	w8, [x19, #188]
	add	w8, w0, w8
	str	w8, [x19, #188]
	ldr	w0, [x21, #168]
	bl	_le32_to_cpu
	ldr	w8, [x19, #184]
	add	w8, w0, w8
	str	w8, [x19, #184]
	ldr	w0, [x21, #164]
	bl	_le32_to_cpu
	ldr	w8, [x19, #180]
	add	w8, w0, w8
	str	w8, [x19, #180]
	ldr	w0, [x21, #160]
	bl	_le32_to_cpu
	ldr	w8, [x19, #176]
	add	w8, w0, w8
	str	w8, [x19, #176]
	ldr	w0, [x21, #156]
	bl	_le32_to_cpu
	ldr	w8, [x19, #172]
	add	w8, w0, w8
	str	w8, [x19, #172]
	ldr	w0, [x21, #152]
	bl	_le32_to_cpu
	ldr	w8, [x19, #168]
	add	w8, w0, w8
	str	w8, [x19, #168]
	ldr	w0, [x21, #148]
	bl	_le32_to_cpu
	ldr	w8, [x19, #164]
	add	w8, w0, w8
	str	w8, [x19, #164]
	ldr	w0, [x21, #144]
	bl	_le32_to_cpu
	ldr	w8, [x19, #160]
	add	w8, w0, w8
	str	w8, [x19, #160]
	ldr	w0, [x21, #140]
	bl	_le32_to_cpu
	ldr	w8, [x19, #156]
	add	w8, w0, w8
	str	w8, [x19, #156]
	ldr	w0, [x21, #136]
	bl	_le32_to_cpu
	ldr	w8, [x19, #152]
	add	w8, w0, w8
	str	w8, [x19, #152]
	ldr	w0, [x21, #132]
	bl	_le32_to_cpu
	ldr	w8, [x19, #148]
	add	w8, w0, w8
	str	w8, [x19, #148]
	ldr	w0, [x21, #128]
	bl	_le32_to_cpu
	ldr	w8, [x19, #144]
	add	w8, w0, w8
	str	w8, [x19, #144]
	ldr	w0, [x21, #124]
	bl	_le32_to_cpu
	ldr	w8, [x19, #140]
	add	w8, w0, w8
	str	w8, [x19, #140]
	ldr	w0, [x21, #120]
	bl	_le32_to_cpu
	ldr	w8, [x19, #136]
	add	w8, w0, w8
	str	w8, [x19, #136]
	ldr	w0, [x21, #116]
	bl	_a_sle32_to_cpu
	mov	x1, x0
	ldr	w0, [x20, #4]
	bl	_ath6kl_wmi_get_rate
	str	x0, [x19, #128]
	ldr	w0, [x21, #112]
	bl	_le32_to_cpu
	ldr	w8, [x19, #124]
	add	w8, w0, w8
	str	w8, [x19, #124]
	ldr	w0, [x21, #108]
	bl	_le32_to_cpu
	ldr	w8, [x19, #120]
	add	w8, w0, w8
	str	w8, [x19, #120]
	ldr	w0, [x21, #104]
	bl	_le32_to_cpu
	ldr	w8, [x19, #116]
	add	w8, w0, w8
	str	w8, [x19, #116]
	ldr	w0, [x21, #100]
	bl	_le32_to_cpu
	ldr	w8, [x19, #112]
	add	w8, w0, w8
	str	w8, [x19, #112]
	ldr	w0, [x21, #96]
	bl	_le32_to_cpu
	ldr	w8, [x19, #108]
	add	w8, w0, w8
	str	w8, [x19, #108]
	ldr	w0, [x21, #88]
	bl	_le32_to_cpu
	ldr	w8, [x19, #104]
	add	w8, w0, w8
	str	w8, [x19, #104]
	ldr	w0, [x21, #84]
	bl	_a_sle32_to_cpu
	str	x0, [x19, #96]
	ldr	w0, [x21, #80]
	bl	_le32_to_cpu
	ldr	w8, [x19, #92]
	add	w8, w0, w8
	str	w8, [x19, #92]
	ldr	w0, [x21, #76]
	bl	_le32_to_cpu
	ldr	w8, [x19, #88]
	add	w8, w0, w8
	str	w8, [x19, #88]
	ldr	w0, [x21, #72]
	bl	_le16_to_cpu
	ldr	w8, [x19, #84]
	add	w8, w8, w0
	str	w8, [x19, #84]
	ldr	w0, [x21, #68]
	bl	_le16_to_cpu
	ldr	w8, [x19, #80]
	add	w8, w8, w0
	str	w8, [x19, #80]
	ldr	w0, [x21, #64]
	bl	_a_sle16_to_cpu
	str	x0, [x19, #72]
	ldr	d0, [x21, #56]
	str	d0, [x19, #64]
	ldr	w0, [x21, #52]
	bl	_a_sle16_to_cpu
	str	x0, [x19, #56]
	ldr	w0, [x21, #48]
	bl	_le32_to_cpu
	str	x0, [x19, #48]
	ldr	w0, [x21, #40]
	bl	_le32_to_cpu
	ldr	w8, [x19, #44]
	add	w8, w0, w8
	str	w8, [x19, #44]
	ldur	q0, [x21, #24]
	ldur	d1, [x19, #36]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	stur	d0, [x19, #36]
	ldr	w0, [x21, #16]
	bl	_le16_to_cpu
	ldr	w8, [x19, #32]
	add	w8, w8, w0
	str	w8, [x19, #32]
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	str	x0, [x19, #24]
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
	str	x0, [x19, #16]
	ldr	w0, [x21]
	bl	_le32_to_cpu
	str	x0, [x19, #8]
Lloh7:
	adrp	x21, _STATS_UPDATE_PEND@GOTPAGE
Lloh8:
	ldr	x21, [x21, _STATS_UPDATE_PEND@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x20
	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	_wake_up
LBB0_6:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_TRC,4,2             ; @ATH6KL_DBG_TRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"updating target stats\n"

	.comm	_WMM_NUM_AC,8,3                 ; @WMM_NUM_AC
	.comm	_STATS_UPDATE_PEND,4,2          ; @STATS_UPDATE_PEND
	.no_dead_strip	_ath6kl_update_target_stats
.subsections_via_symbols
