	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_packet
_get_packet:                            ## @get_packet
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %rax
	movq	24(%rsi), %rcx
	leaq	(%rcx,%rax,8), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_prefetch
	movl	8(%rbx), %eax
	decl	%eax
	movl	%eax, 8(%rbx)
	movq	_SGE_RX_COPY_THRES@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jae	LBB0_1
## %bb.5:
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_MAX_RX_REFILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	notl	%esi
	addl	12(%rbx), %esi
	callq	_min
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rdx
	movq	___GFP_COMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_refill_fl
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_alloc_skb
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	___skb_put
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_dma_unmap_addr
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_pci_dma_sync_single_for_cpu
	movl	(%r13), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_memcpy
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dma_unmap_addr
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_pci_dma_sync_single_for_device
	jmp	LBB0_4
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_8
LBB0_4:
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_recycle_rx_buf
	jmp	LBB0_9
LBB0_8:
	movl	(%r12), %r14d
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_dma_unmap_addr
	movl	16(%rbx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	(%r13), %r13
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_skb_put
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___refill_fl
LBB0_9:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGE_RX_COPY_THRES,4,2          ## @SGE_RX_COPY_THRES
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_dma_addr,4,2                   ## @dma_addr
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_MAX_RX_REFILL,4,2              ## @MAX_RX_REFILL
	.comm	___GFP_COMP,4,2                 ## @__GFP_COMP
	.no_dead_strip	_get_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_packet
_get_packet:                            ; @get_packet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x24, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #24]
	ldr	x9, [x1]
	add	x22, x8, x9, lsl #3
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_prefetch
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #8]
Lloh0:
	adrp	x9, _SGE_RX_COPY_THRES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SGE_RX_COPY_THRES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w21
	b.hs	LBB0_4
; %bb.1:
	cmp	w8, w24
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _MAX_RX_REFILL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_RX_REFILL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	w9, w8, [x19, #8]
	mvn	w9, w9
	add	w1, w8, w9
	bl	_min
	mov	x2, x0
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, ___GFP_COMP@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___GFP_COMP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_refill_fl
	cbnz	x0, LBB0_8
; %bb.3:
	mov	x23, #0
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_alloc_skb
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x23
	mov	x1, x21
	bl	___skb_put
	ldr	w24, [x20]
Lloh15:
	adrp	x25, _dma_addr@GOTPAGE
Lloh16:
	ldr	x25, [x25, _dma_addr@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_dma_unmap_addr
	mov	x1, x0
Lloh17:
	adrp	x26, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh18:
	ldr	x26, [x26, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x0, x24
	mov	x2, x21
	bl	_pci_dma_sync_single_for_cpu
	ldr	w0, [x23]
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x2, x21
	bl	_memcpy
	ldr	w24, [x20]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_dma_unmap_addr
	mov	x1, x0
	ldr	w3, [x26]
	mov	x0, x24
	mov	x2, x21
	bl	_pci_dma_sync_single_for_device
	b	LBB0_7
LBB0_6:
	cbz	w24, LBB0_8
LBB0_7:
	ldr	x2, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_recycle_rx_buf
	b	LBB0_9
LBB0_8:
	ldr	w23, [x20]
Lloh19:
	adrp	x8, _dma_addr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _dma_addr@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_dma_unmap_addr
	mov	x1, x0
	ldr	w2, [x19, #16]
Lloh22:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x23
	bl	_pci_unmap_single
	ldr	x23, [x22]
	mov	x0, x23
	mov	x1, x21
	bl	_skb_put
	mov	x0, x20
	mov	x1, x19
	bl	___refill_fl
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SGE_RX_COPY_THRES,4,2          ; @SGE_RX_COPY_THRES
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_dma_addr,4,2                   ; @dma_addr
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_MAX_RX_REFILL,4,2              ; @MAX_RX_REFILL
	.comm	___GFP_COMP,4,2                 ; @__GFP_COMP
	.no_dead_strip	_get_packet
.subsections_via_symbols
