	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function happy_meal_init_rings
_happy_meal_init_rings:                 ## @happy_meal_init_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, %rbx
	movq	48(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	56(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_HMD
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, 32(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_HMD
	movq	%rbx, %r12
	movq	%rbx, %rdi
	callq	_happy_meal_clean_rings
	leaq	L_.str.2(%rip), %rdi
	callq	_HMD
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	xorl	%r13d, %r13d
	movq	_RX_BUF_ALLOC_SIZE@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	8(%r12), %rax
	movq	%r15, (%rax,%r13,2)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RX_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %esi
	addl	$4, %esi
	movq	%r15, %rdi
	callq	_skb_put
	movl	(%rbx), %edx
	movl	%edx, %ebx
	movq	_RX_OFFSET@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	shll	$16, %ebx
	movq	_RXFLAG_OWN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	addq	%r13, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r15), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%ebx, %edx
	movq	_RX_BUF_ALLOC_SIZE@GOTPCREL(%rip), %rbx
	movl	%eax, %ecx
	callq	_hme_write_rxd
	movq	_RX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skb_reserve
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_happy_meal_alloc_skb
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hme_write_rxd
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	callq	_HMD
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_9
## %bb.7:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hme_write_txd
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HMD                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"happy_meal_init_rings: counters to zero, "

L_.str.1:                               ## @.str.1
	.asciz	"clean, "

L_.str.2:                               ## @.str.2
	.asciz	"init rxring, "

	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_RX_BUF_ALLOC_SIZE,4,2          ## @RX_BUF_ALLOC_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ETH_FRAME_LEN,4,2              ## @ETH_FRAME_LEN
	.comm	_RX_OFFSET,4,2                  ## @RX_OFFSET
	.comm	_RXFLAG_OWN,4,2                 ## @RXFLAG_OWN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.3:                               ## @.str.3
	.asciz	"init txring, "

	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"done\n"

	.no_dead_strip	_happy_meal_init_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_init_rings
_happy_meal_init_rings:                 ; @happy_meal_init_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
	ldp	x24, x23, [x0, #48]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HMD
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_HMD
	mov	x0, x19
	bl	_happy_meal_clean_rings
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_HMD
Lloh6:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x26, #0
	mov	x27, #0
Lloh9:
	adrp	x28, _RX_BUF_ALLOC_SIZE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _RX_BUF_ALLOC_SIZE@GOTPAGEOFF]
Lloh11:
	adrp	x25, _RX_OFFSET@GOTPAGE
Lloh12:
	ldr	x25, [x25, _RX_OFFSET@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	ldr	x8, [x19, #8]
	str	x0, [x8, x27, lsl #3]
	str	x24, [x0, #8]
Lloh13:
	adrp	x8, _ETH_FRAME_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x25]
	add	w8, w8, w9
	add	w1, w8, #4
	bl	_skb_put
	ldr	x8, [x23, #8]
	add	x21, x8, x26
Lloh16:
	adrp	x8, _RXFLAG_OWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RXFLAG_OWN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w2, [x28]
	ldr	w9, [x25]
	sub	w9, w2, w9
	orr	w22, w8, w9, lsl #16
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh19:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_hme_write_rxd
	ldr	w1, [x25]
	mov	x0, x20
	bl	_skb_reserve
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
Lloh22:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh24:
	ldrsw	x8, [x8]
	add	x26, x26, #4
	cmp	x27, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
Lloh25:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_happy_meal_alloc_skb
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #8]
	add	x1, x8, x26
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_hme_write_rxd
	b	LBB0_3
LBB0_6:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_HMD
Lloh30:
	adrp	x20, _TX_RING_SIZE@GOTPAGE
Lloh31:
	ldr	x20, [x20, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x8, x21
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_hme_write_txd
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_8
LBB0_9:
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	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
	b	_HMD
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"happy_meal_init_rings: counters to zero, "

l_.str.1:                               ; @.str.1
	.asciz	"clean, "

l_.str.2:                               ; @.str.2
	.asciz	"init rxring, "

	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_RX_BUF_ALLOC_SIZE,4,2          ; @RX_BUF_ALLOC_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ETH_FRAME_LEN,4,2              ; @ETH_FRAME_LEN
	.comm	_RX_OFFSET,4,2                  ; @RX_OFFSET
	.comm	_RXFLAG_OWN,4,2                 ; @RXFLAG_OWN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.3:                               ; @.str.3
	.asciz	"init txring, "

	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"done\n"

	.no_dead_strip	_happy_meal_init_rings
.subsections_via_symbols
