	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hifn_clear_rings
_hifn_clear_rings:                      ## @hifn_clear_rings
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	32(%rdi), %r12
	movl	(%rdi), %esi
	movl	44(%r12), %edx
	movl	40(%r12), %ecx
	movl	36(%r12), %r8d
	movl	32(%r12), %r9d
	movl	(%r12), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %r14d
	movl	12(%r12), %r13d
	movl	16(%r12), %r11d
	movl	20(%r12), %ebx
	movl	24(%r12), %r10d
	movl	28(%r12), %eax
	leaq	L_.str(%rip), %rdi
	pushq	%rax
	pushq	%r10
	pushq	%rbx
	pushq	%r11
	pushq	%r13
	pushq	%r14
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_dprintk
	addq	$64, %rsp
	movl	12(%r12), %r14d
	movl	28(%r12), %r13d
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %r13d
	decl	%r14d
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r12), %rax
	movslq	%r13d, %rbx
	movl	(%rax,%rbx,4), %r12d
	movq	_HIFN_D_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	testl	%r12d, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	24(%r15)
	movq	$0, 16(%r15)
	movq	(%rax,%rbx,8), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_hifn_process_ready
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_hifn_complete_sa
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	xorl	%eax, %eax
	movl	$0, %ecx
	movq	_HIFN_D_RES_RSIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r13d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ecx
	jmp	LBB0_9
LBB0_1:
	movl	%r13d, %ecx
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	movl	%r13d, %ecx
	movl	%r14d, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_10:
	movl	%ecx, 28(%r12)
	movl	%eax, 12(%r12)
	movl	4(%r12), %r14d
	movl	20(%r12), %ebx
	testl	%r14d, %r14d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.12:
	movq	_HIFN_D_VALID@GOTPCREL(%rip), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, %ebx
	decl	%r14d
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r12), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %r15d
	movl	(%r13), %edi
	callq	___cpu_to_le32
	testl	%r15d, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	xorl	%ecx, %ecx
	movl	$0, %eax
	movq	_HIFN_D_SRC_RSIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ebx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ebx, %eax
	jmp	LBB0_17
LBB0_11:
	movl	%ebx, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_14:
	movl	%ebx, %eax
	movl	%r14d, %ecx
LBB0_18:
	movl	%eax, 20(%r12)
	movl	%ecx, 4(%r12)
	movl	(%r12), %r13d
	movl	16(%r12), %ebx
	xorl	%r14d, %r14d
	testl	%r13d, %r13d
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	xorl	%r10d, %r10d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, %ebx
	decl	%r13d
	je	LBB0_25
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %r15d
	movq	_HIFN_D_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	testl	%r15d, %eax
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	incl	%ebx
	xorl	%r10d, %r10d
	movl	$0, %eax
	movq	_HIFN_D_CMD_RSIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%ebx, %eax
	jmp	LBB0_24
LBB0_21:
	movl	%ebx, %eax
	movl	%r13d, %r10d
LBB0_25:
	movl	%eax, 16(%r12)
	movl	%r10d, (%r12)
	movl	8(%r12), %ebx
	movl	24(%r12), %r13d
	testl	%ebx, %ebx
	je	LBB0_26
## %bb.27:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	%ecx, %r13d
	decl	%ebx
	je	LBB0_33
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %r14d
	movq	_HIFN_D_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	testl	%r14d, %eax
	jne	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	incl	%r13d
	xorl	%r14d, %r14d
	movl	$0, %ecx
	movq	_HIFN_D_DST_RSIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	%r13d, %ecx
	jmp	LBB0_32
LBB0_26:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_29:
	movl	%r13d, %ecx
	movl	%ebx, %r14d
LBB0_33:
	movl	(%r12), %r10d
	movl	16(%r12), %eax
	movl	%ecx, %r13d
LBB0_34:
	movl	%r13d, 24(%r12)
	movl	%r14d, 8(%r12)
	movl	(%r15), %esi
	movl	44(%r12), %edx
	movl	40(%r12), %ecx
	movl	36(%r12), %r8d
	movl	32(%r12), %r9d
	movl	4(%r12), %r11d
	movl	12(%r12), %r15d
	movl	20(%r12), %ebx
	movl	28(%r12), %r12d
	leaq	L_.str.1(%rip), %rdi
	pushq	%r12
	pushq	%r13
	pushq	%rbx
	pushq	%rax
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_dprintk
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ring cleanup 1: i: %d.%d.%d.%d, u: %d.%d.%d.%d, k: %d.%d.%d.%d.\n"

	.comm	_HIFN_D_VALID,4,2               ## @HIFN_D_VALID
	.comm	_HIFN_D_RES_RSIZE,4,2           ## @HIFN_D_RES_RSIZE
	.comm	_HIFN_D_SRC_RSIZE,4,2           ## @HIFN_D_SRC_RSIZE
	.comm	_HIFN_D_CMD_RSIZE,4,2           ## @HIFN_D_CMD_RSIZE
	.comm	_HIFN_D_DST_RSIZE,4,2           ## @HIFN_D_DST_RSIZE
L_.str.1:                               ## @.str.1
	.asciz	"%s: ring cleanup 2: i: %d.%d.%d.%d, u: %d.%d.%d.%d, k: %d.%d.%d.%d.\n"

	.no_dead_strip	_hifn_clear_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hifn_clear_rings
_hifn_clear_rings:                      ; @hifn_clear_rings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #32]
	ldr	w1, [x0]
	ldp	w3, w2, [x22, #40]
	ldp	w5, w4, [x22, #32]
	ldp	w6, w7, [x22]
	ldur	q0, [x22, #8]
	ldp	w8, w9, [x22, #24]
	stp	w8, w9, [sp, #16]
	str	q0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w21, [x22, #28]
	ldr	w24, [x22, #12]
Lloh2:
	adrp	x23, _HIFN_D_VALID@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HIFN_D_VALID@GOTPAGEOFF]
	cbz	w24, LBB0_6
; %bb.1:
Lloh4:
	adrp	x25, _HIFN_D_RES_RSIZE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HIFN_D_RES_RSIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w21, #1
	ldr	w9, [x25]
	cmp	w8, w9
	csinc	w21, wzr, w21, eq
	subs	w24, w24, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #72]
	ldr	w26, [x8, w21, sxtw #2]
	ldr	w0, [x23]
	bl	___cpu_to_le32
	tst	w0, w26
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w21
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x8, lsl #3]
	cbz	x10, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x19, #24]
	add	w10, w10, #1
	str	w10, [x19, #24]
	str	xzr, [x19, #16]
	ldr	x0, [x9, x8, lsl #3]
	mov	x1, x20
	bl	_hifn_process_ready
	mov	x0, x19
	mov	x1, x21
	bl	_hifn_complete_sa
	b	LBB0_2
LBB0_6:
	str	w21, [x22, #28]
	str	w24, [x22, #12]
	ldr	w20, [x22, #20]
	ldr	w21, [x22, #4]
	cbz	w21, LBB0_10
; %bb.7:
Lloh6:
	adrp	x24, _HIFN_D_SRC_RSIZE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _HIFN_D_SRC_RSIZE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #64]
	ldr	w25, [x8, w20, sxtw #2]
	ldr	w0, [x23]
	bl	___cpu_to_le32
	tst	w0, w25
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w20, #1
	ldr	w9, [x24]
	cmp	w8, w9
	csinc	w20, wzr, w20, eq
	subs	w21, w21, #1
	b.ne	LBB0_8
LBB0_10:
	str	w20, [x22, #20]
	str	w21, [x22, #4]
	ldr	w21, [x22, #16]
	ldr	w20, [x22]
	cbz	w20, LBB0_14
; %bb.11:
Lloh8:
	adrp	x24, _HIFN_D_CMD_RSIZE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _HIFN_D_CMD_RSIZE@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #56]
	ldr	w25, [x8, w21, sxtw #2]
	ldr	w0, [x23]
	bl	___cpu_to_le32
	tst	w0, w25
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w8, w21, #1
	ldr	w9, [x24]
	cmp	w8, w9
	csinc	w21, wzr, w21, eq
	subs	w20, w20, #1
	b.ne	LBB0_12
LBB0_14:
	str	w21, [x22, #16]
	str	w20, [x22]
	ldr	w24, [x22, #24]
	ldr	w25, [x22, #8]
	cbz	w25, LBB0_19
; %bb.15:
Lloh10:
	adrp	x20, _HIFN_D_DST_RSIZE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _HIFN_D_DST_RSIZE@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #48]
	ldr	w21, [x8, w24, sxtw #2]
	ldr	w0, [x23]
	bl	___cpu_to_le32
	tst	w0, w21
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w8, w24, #1
	ldr	w9, [x20]
	cmp	w8, w9
	csinc	w24, wzr, w24, eq
	subs	w25, w25, #1
	b.ne	LBB0_16
LBB0_18:
	ldr	w20, [x22]
	ldr	w21, [x22, #16]
LBB0_19:
	str	w24, [x22, #24]
	str	w25, [x22, #8]
	ldr	w1, [x19]
	ldp	w3, w2, [x22, #40]
	ldp	w5, w4, [x22, #32]
	ldr	w7, [x22, #4]
	ldr	w8, [x22, #12]
	ldr	w9, [x22, #20]
	ldr	w10, [x22, #28]
	stp	w24, w10, [sp, #16]
	stp	w21, w9, [sp, #8]
	stp	w25, w8, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x6, x20
	bl	_dprintk
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ring cleanup 1: i: %d.%d.%d.%d, u: %d.%d.%d.%d, k: %d.%d.%d.%d.\n"

	.comm	_HIFN_D_VALID,4,2               ; @HIFN_D_VALID
	.comm	_HIFN_D_RES_RSIZE,4,2           ; @HIFN_D_RES_RSIZE
	.comm	_HIFN_D_SRC_RSIZE,4,2           ; @HIFN_D_SRC_RSIZE
	.comm	_HIFN_D_CMD_RSIZE,4,2           ; @HIFN_D_CMD_RSIZE
	.comm	_HIFN_D_DST_RSIZE,4,2           ; @HIFN_D_DST_RSIZE
l_.str.1:                               ; @.str.1
	.asciz	"%s: ring cleanup 2: i: %d.%d.%d.%d, u: %d.%d.%d.%d, k: %d.%d.%d.%d.\n"

	.no_dead_strip	_hifn_clear_rings
.subsections_via_symbols
