	.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, -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, -56(%rbp)                 ## 8-byte Spill
	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_8
## %bb.1:
	xorl	%r13d, %r13d
	movq	_RX_OFFSET@GOTPCREL(%rip), %rbx
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	addq	%r13, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hme_write_rxd
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RX_BUF_ALLOC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_happy_meal_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	8(%r14), %rax
	movq	%r12, (%rax,%r13,2)
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rbx), %ecx
	leal	(%rax,%rcx), %esi
	addl	$4, %esi
	movq	%r12, %rdi
	callq	_skb_put
	movl	(%r14), %edi
	movl	(%r12), %esi
	movq	_RX_BUF_ALLOC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hme_write_rxd
	movq	_RX_OFFSET@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	_RX_BUF_ALLOC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RX_OFFSET@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	addq	%r13, %rsi
	shll	$16, %edx
	movq	_RXFLAG_OWN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_hme_write_rxd
	movq	_RX_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_skb_reserve
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	callq	_HMD
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_11
## %bb.9:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	addq	%r12, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hme_write_txd
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	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	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_RXFLAG_OWN,4,2                 ## @RXFLAG_OWN
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
	ldr	x22, [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	x23, _RX_RING_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x24, #0
	mov	x25, #0
Lloh8:
	adrp	x26, _RX_BUF_ALLOC_SIZE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _RX_BUF_ALLOC_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x27, _GFP_ATOMIC@GOTPAGE
Lloh11:
	ldr	x27, [x27, _GFP_ATOMIC@GOTPAGEOFF]
Lloh12:
	adrp	x28, _RX_OFFSET@GOTPAGE
Lloh13:
	ldr	x28, [x28, _RX_OFFSET@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_dev_kfree_skb_any
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #8]
	add	x1, x8, x24
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_hme_write_rxd
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_happy_meal_alloc_skb
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	ldr	x8, [x19, #8]
	str	x0, [x8, x25, lsl #3]
Lloh14:
	adrp	x8, _ETH_FRAME_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x28]
	add	w8, w8, w9
	add	w1, w8, #4
	bl	_skb_put
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x26]
Lloh17:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x21, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_dma_mapping_error
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #8]
	add	x1, x8, x24
Lloh20:
	adrp	x8, _RXFLAG_OWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RXFLAG_OWN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x26]
	ldr	w10, [x28]
	sub	w9, w9, w10
	orr	w2, w8, w9, lsl #16
	mov	x0, x19
	mov	x3, x21
	bl	_hme_write_rxd
	ldr	w1, [x28]
	mov	x0, x20
	bl	_skb_reserve
	b	LBB0_4
LBB0_8:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_HMD
Lloh25:
	adrp	x20, _TX_RING_SIZE@GOTPAGE
Lloh26:
	ldr	x20, [x20, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x21, #0
	mov	x23, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x1, x8, x21
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_hme_write_txd
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x23, x8
	b.lt	LBB0_10
LBB0_11:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.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	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_RXFLAG_OWN,4,2                 ; @RXFLAG_OWN
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
