	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function happy_meal_tx
_happy_meal_tx:                         ## @happy_meal_tx
	.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, %r12
	movq	32(%rdi), %rax
	movq	(%rax), %r14
	movq	24(%rdi), %r15
	movl	(%rdi), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_TXD
	cmpl	4(%r12), %ebx
	jne	LBB0_1
LBB0_11:
	movl	%ebx, (%r12)
	leaq	L_.str.2(%rip), %rdi
	callq	_TXD
	movq	%r15, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_TX_BUFFS_AVAIL
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jle	LBB0_13
## %bb.14:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_consume_skb_irq
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	incl	(%r15)
	cmpl	4(%r12), %ebx
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movslq	%ebx, %r13
	movq	%r13, %rdi
	callq	_TXD
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,8), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_hme_read_desc32
	movq	_TXFLAG_OWN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	%r13, %rax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rsi
	movq	%r12, %rdi
	callq	_hme_read_desc32
	movq	_TXFLAG_OWN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_11
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movq	$0, (%rax,%r13,8)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	addl	%eax, 4(%r15)
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_TXFLAG_SIZE@GOTPCREL(%rip), %r15
	js	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%r13,8), %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_hme_read_desc32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_hme_read_desc32
	andl	(%r15), %eax
	movq	%r12, %r14
	movl	8(%r12), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movl	%r13d, %edi
	callq	_NEXT_TX
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%ebx, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %r14
	leaq	(%rax,%rbx,8), %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_hme_read_desc32
	movl	%eax, %r13d
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_hme_read_desc32
	movq	_TXFLAG_SIZE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	8(%r12), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	movl	%ebx, %edi
	callq	_NEXT_TX
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	incl	%r15d
	cmpl	(%rax), %r15d
	jl	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX<"

	.comm	_TXFLAG_OWN,4,2                 ## @TXFLAG_OWN
	.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
L_.str.2:                               ## @.str.2
	.asciz	">"

	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.no_dead_strip	_happy_meal_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function happy_meal_tx
_happy_meal_tx:                         ; @happy_meal_tx
	.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	x20, x0
	ldp	x19, x8, [x0, #24]
	ldr	x25, [x8]
	ldr	w21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TXD
	ldr	w8, [x20, #4]
	cmp	w21, w8
	b.ne	LBB0_5
LBB0_1:
	str	w21, [x20]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TXD
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_TX_BUFFS_AVAIL
Lloh4:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	add	x8, x8, #1
	cmp	x0, x8
	b.le	LBB0_4
; %bb.3:
	mov	x0, x19
	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	_netif_wake_queue
LBB0_4:
	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
LBB0_5:
Lloh7:
	adrp	x27, _TXFLAG_SIZE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _TXFLAG_SIZE@GOTPAGEOFF]
Lloh9:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_dev_consume_skb_irq
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [x20, #4]
	cmp	w21, w8
	b.eq	LBB0_1
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	sxtw	x24, w21
	mov	x0, x24
	bl	_TXD
	add	x23, x25, w21, sxtw #3
	mov	x0, x20
	mov	x1, x23
	bl	_hme_read_desc32
Lloh11:
	adrp	x8, _TXFLAG_OWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TXFLAG_OWN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #16]
	ldr	x22, [x8, x24, lsl #3]
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w8, [x0]
	cbz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh14:
	adrp	x9, _TX_RING_SIZE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TX_RING_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	sub	w9, w9, #1
	add	w8, w8, w21
	and	w8, w9, w8
	add	x1, x25, w8, sxtw #3
	mov	x0, x20
	bl	_hme_read_desc32
Lloh17:
	adrp	x8, _TXFLAG_OWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TXFLAG_OWN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_1
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #16]
	str	xzr, [x8, x24, lsl #3]
	ldr	w8, [x22]
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x25, x24, lsl #3
	add	x1, x8, #4
	mov	x0, x20
	bl	_hme_read_desc32
	mov	x24, x0
	mov	x0, x20
	mov	x1, x23
	bl	_hme_read_desc32
	ldr	w8, [x27]
	and	w2, w8, w0
	ldr	w0, [x20, #8]
	ldr	w3, [x28]
	mov	x1, x24
	bl	_dma_unmap_single
	mov	x0, x21
	bl	_NEXT_TX
	mov	x21, x0
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w26, #0
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x23, x25, w21, sxtw #3
	add	x1, x23, #4
	mov	x0, x20
	bl	_hme_read_desc32
	mov	x24, x0
	mov	x0, x20
	mov	x1, x23
	bl	_hme_read_desc32
	ldr	w8, [x27]
	and	w2, w8, w0
	ldr	w0, [x20, #8]
	ldr	w3, [x28]
	mov	x1, x24
	bl	_dma_unmap_page
	mov	x0, x21
	bl	_NEXT_TX
	mov	x21, x0
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w8, [x0]
	add	w26, w26, #1
	cmp	w26, w8
	b.lt	LBB0_13
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX<"

	.comm	_TXFLAG_OWN,4,2                 ; @TXFLAG_OWN
	.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
l_.str.2:                               ; @.str.2
	.asciz	">"

	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.no_dead_strip	_happy_meal_tx
.subsections_via_symbols
