	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_get_next_skb
_nes_get_next_skb:                      ## @nes_get_next_skb
	.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
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	(%r14), %r13
	leaq	4(%r15), %r12
	cmpq	%r12, %r13
	jne	LBB0_4
	jmp	LBB0_11
LBB0_2:
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_skb_queue_empty
	testq	%rax, %rax
	je	LBB0_3
LBB0_11:
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_skb_peek
	movq	%rax, %r13
LBB0_4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	addq	$4, %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	movq	24(%rbp), %r8
	callq	_nes_get_seq
	cmpl	%ebx, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%r13)
	je	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_after
	testq	%rax, %rax
	jne	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %r14
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_skb_unlink
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_nes_mgt_free_skb
	movl	(%r12), %edi
	callq	_nes_rem_ref_cm_node
	movq	%r14, %r13
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_nes_get_next_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_get_next_skb
_nes_get_next_skb:                      ; @nes_get_next_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x7, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	cbz	x2, LBB0_3
; %bb.1:
	ldr	x19, [x24]
	add	x27, x25, #4
	cmp	x19, x27
	b.eq	LBB0_4
; %bb.2:
	str	x24, [sp]                       ; 8-byte Folded Spill
	b	LBB0_7
LBB0_3:
	add	x27, x25, #4
	mov	x0, x27
	bl	_skb_queue_empty
	cbz	x0, LBB0_6
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	str	x24, [sp]                       ; 8-byte Folded Spill
	mov	x0, x27
	bl	_skb_peek
	mov	x19, x0
LBB0_7:
	add	x24, x25, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	ldr	x4, [sp, #8]                    ; 8-byte Folded Reload
	bl	_nes_get_seq
	cmp	w0, w23
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x23
	bl	_after
	cbnz	x0, LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x28, [x19]
	cmp	x28, x27
	b.eq	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_skb_unlink
Lloh0:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x26
	mov	x1, x19
	bl	_nes_mgt_free_skb
	ldr	w0, [x25]
	bl	_nes_rem_ref_cm_node
	mov	x19, x28
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_nes_get_next_skb
.subsections_via_symbols
