	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_txq_ctx_reset           ## -- Begin function il4965_txq_ctx_reset
	.p2align	4, 0x90
_il4965_txq_ctx_reset:                  ## @il4965_txq_ctx_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_il4965_txq_set_sched
	movq	_FH49_KW_MEM_ADDR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	sarl	$4, %edx
	movq	%r14, %rdi
	callq	_il_wr
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	cmpl	$0, (%r14)
	jle	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_il_tx_queue_reset
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_1
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FH49_KW_MEM_ADDR_REG,4,2       ## @FH49_KW_MEM_ADDR_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_txq_ctx_reset           ; -- Begin function il4965_txq_ctx_reset
	.p2align	2
_il4965_txq_ctx_reset:                  ; @il4965_txq_ctx_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #0
	bl	_il4965_txq_set_sched
Lloh0:
	adrp	x8, _FH49_KW_MEM_ADDR_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FH49_KW_MEM_ADDR_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x19, #8]
	asr	w2, w8, #4
	mov	x0, x19
	bl	_il_wr
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_il_tx_queue_reset
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FH49_KW_MEM_ADDR_REG,4,2       ; @FH49_KW_MEM_ADDR_REG
.subsections_via_symbols
