	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function happy_meal_clean_rings
_happy_meal_clean_rings:                ## @happy_meal_clean_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rcx
	movq	(%rcx,%rbx,2), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movq	8(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_hme_read_desc32
	movl	(%r12), %edi
	movq	_RX_BUF_ALLOC_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r13), %ecx
	movl	%eax, %esi
	callq	_dma_unmap_single
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	movq	24(%r12), %rax
	movq	$0, (%rax,%rbx,2)
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_14
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	cmpl	%eax, %r14d
	jge	LBB0_14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	16(%r15), %rcx
	movslq	%r14d, %r12
	movq	(%rcx,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, (%rcx,%r12,8)
	movq	%rbx, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	js	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r12,8), %r15
	leaq	(%rax,%r12,8), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_hme_read_desc32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r13d
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hme_read_desc32
	movq	_TXFLAG_SIZE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	%rbx, %rdi
	callq	_skb_shinfo
	cmpl	$1, (%rax)
	movl	%r12d, %r14d
	sbbl	$-1, %r14d
	movq	%rbx, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movslq	%r14d, %r14
	leaq	(%rax,%r14,8), %rbx
	leaq	(%rax,%r14,8), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	callq	_hme_read_desc32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %r13d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hme_read_desc32
	movq	_TXFLAG_SIZE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_dma_unmap_page
	movq	%rbx, %rdi
	callq	_skb_shinfo
	xorl	%ecx, %ecx
	cmpl	(%rax), %r12d
	setne	%cl
	addl	%ecx, %r14d
	movq	%rbx, %rdi
	callq	_skb_shinfo
	cmpl	(%rax), %r12d
	jl	LBB0_11
	jmp	LBB0_12
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_RX_BUF_ALLOC_SIZE,4,2          ## @RX_BUF_ALLOC_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_TXFLAG_SIZE,4,2                ## @TXFLAG_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_happy_meal_clean_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function happy_meal_clean_rings
_happy_meal_clean_rings:                ; @happy_meal_clean_rings
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh2:
	adrp	x24, _RX_BUF_ALLOC_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RX_BUF_ALLOC_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	add	x22, x22, #4
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	x20, [x9, x23, lsl #3]
	cbz	x20, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x1, x8, x22
	mov	x0, x19
	bl	_hme_read_desc32
	mov	x1, x0
	ldr	w0, [x19]
	ldr	w2, [x24]
	ldr	w3, [x25]
	bl	_dma_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #24]
	str	xzr, [x8, x23, lsl #3]
	ldr	w8, [x21]
	b	LBB0_2
LBB0_5:
Lloh6:
	adrp	x24, _TX_RING_SIZE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.6:
	mov	w25, #0
Lloh8:
	adrp	x26, _TXFLAG_SIZE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _TXFLAG_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_dev_kfree_skb_any
	ldr	w8, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w25, w25, #1
	cmp	w25, w8
	b.ge	LBB0_14
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x9, [x19, #16]
	ldr	x20, [x9, w25, sxtw #3]
	cbz	x20, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x21, w25
	str	xzr, [x9, x21, lsl #3]
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x21, x8, x21, lsl #3
	add	x1, x21, #4
	mov	x0, x19
	bl	_hme_read_desc32
	mov	x22, x0
	ldr	w23, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_hme_read_desc32
	ldr	w8, [x26]
	and	w2, w8, w0
	ldr	w3, [x27]
	mov	x0, x23
	mov	x1, x22
	bl	_dma_unmap_single
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #0
	cinc	w25, w25, ne
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w28, #0
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w28, w28, #1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x21, x8, w25, sxtw #3
	add	x1, x21, #4
	mov	x0, x19
	bl	_hme_read_desc32
	mov	x22, x0
	ldr	w23, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_hme_read_desc32
	ldr	w8, [x26]
	and	w2, w8, w0
	ldr	w3, [x27]
	mov	x0, x23
	mov	x1, x22
	bl	_dma_unmap_page
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w28, w8
	cinc	w25, w25, ne
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w28, w8
	b.lt	LBB0_13
	b	LBB0_7
LBB0_14:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_RX_BUF_ALLOC_SIZE,4,2          ; @RX_BUF_ALLOC_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_TXFLAG_SIZE,4,2                ; @TXFLAG_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_happy_meal_clean_rings
.subsections_via_symbols
