	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_rx_cache_get
_mlx5e_rx_cache_get:                    ## @mlx5e_rx_cache_get
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	16(%rdi), %rax
	xorl	%edi, %edi
	cmpq	24(%rbx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	incl	8(%r15)
	jmp	LBB0_5
LBB0_2:
	movq	16(%rbx), %rax
	movq	32(%rbx), %rcx
	movl	4(%rcx,%rax,8), %edi
	callq	_page_ref_count
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	(%rcx,%rax,8), %rsi
	movq	%rsi, (%r14)
	movq	16(%rbx), %rax
	incq	%rax
	movq	_MLX5E_CACHE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	%rcx, 16(%rbx)
	incl	(%r15)
	movl	(%rbx), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_sync_single_for_device
	movl	$1, %eax
	jmp	LBB0_6
LBB0_4:
	incl	4(%r15)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_CACHE_SIZE,4,2           ## @MLX5E_CACHE_SIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_mlx5e_rx_cache_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_rx_cache_get
_mlx5e_rx_cache_get:                    ; @mlx5e_rx_cache_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x21, x8, [x0, #8]
	ldr	x9, [x0, #24]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #16]
	add	x8, x8, x9, lsl #3
	ldr	w0, [x8, #4]
	bl	_page_ref_count
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #16]
	ldr	x1, [x8, x9, lsl #3]
	str	x1, [x20]
	ldr	x8, [x19, #16]
	add	x8, x8, #1
Lloh0:
	adrp	x9, _MLX5E_CACHE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5E_CACHE_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x8, x8, x9
	str	x8, [x19, #16]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dma_sync_single_for_device
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_CACHE_SIZE,4,2           ; @MLX5E_CACHE_SIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_mlx5e_rx_cache_get
.subsections_via_symbols
