	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_htc_set_credit_dist
_ath6kl_htc_set_credit_dist:            ## @ath6kl_htc_set_credit_dist
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	%rsi, 16(%rdi)
	movq	8(%rdi), %rax
	movq	_ENDPOINT_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.1:
	movl	%ebx, %r13d
	movq	_ENDPOINT_MAX@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	xorl	%ebx, %ebx
	movq	_ENDPOINT_1@GOTPCREL(%rip), %rcx
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%rcx), %r12d
	cmpl	%eax, %r12d
	jge	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rcx
	movq	8(%r15), %rsi
	movq	(%r14,%rbx,8), %rdx
	cltq
	movq	%rcx, %rdi
	shlq	$4, %rdi
	addq	%rsi, %rdi
	addq	$8, %rdi
	subq	%rax, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, -8(%rdi)
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	decq	%rax
	addq	$16, %rdi
	cmpq	%rax, %rcx
	jne	LBB0_5
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	subl	%eax, %r12d
	movq	%r15, %rsi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, %r14
	callq	_list_add_tail
	movq	_ENDPOINT_1@GOTPCREL(%rip), %rcx
	movq	%r14, %r8
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r8), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %r12d
	jge	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%r13, %rbx
	jne	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENDPOINT_0,8,3                 ## @ENDPOINT_0
	.comm	_ENDPOINT_1,4,2                 ## @ENDPOINT_1
	.comm	_ENDPOINT_MAX,4,2               ## @ENDPOINT_MAX
	.no_dead_strip	_ath6kl_htc_set_credit_dist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_htc_set_credit_dist
_ath6kl_htc_set_credit_dist:            ; @ath6kl_htc_set_credit_dist
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	str	x1, [x0, #16]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _ENDPOINT_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENDPOINT_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
	add	x0, x8, #8
	mov	x1, x20
	bl	_list_add_tail
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x22, #0
	mov	w21, w21
Lloh3:
	adrp	x23, _ENDPOINT_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ENDPOINT_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x24, _ENDPOINT_1@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ENDPOINT_1@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w25, [x24]
	cmp	w25, w8
	b.ge	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x10, w25
	ldr	x11, [x20, #8]
	ldr	x9, [x19, x22, lsl #3]
	sxtw	x8, w8
	add	x11, x11, x10, lsl #4
	add	x0, x11, #8
	sub	x8, x8, x10
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x10, [x0, #-8]
	cmp	x10, x9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	w25, w25, #1
	add	x0, x0, #16
	subs	x8, x8, #1
	b.ne	LBB0_4
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x20
	bl	_list_add_tail
	ldr	w8, [x23]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w8
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	cmp	x22, x21
	b.ne	LBB0_2
LBB0_9:
	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
LBB0_10:
	mov	w0, #1
	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	_WARN_ON
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENDPOINT_0,8,3                 ; @ENDPOINT_0
	.comm	_ENDPOINT_1,4,2                 ; @ENDPOINT_1
	.comm	_ENDPOINT_MAX,4,2               ; @ENDPOINT_MAX
	.no_dead_strip	_ath6kl_htc_set_credit_dist
.subsections_via_symbols
