	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdp_release_buf
_xdp_release_buf:                       ## @xdp_release_buf
	.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
	movl	%edx, %eax
	movq	%rsi, %rbx
	movq	(%rsi), %rsi
	movq	8(%rbx), %rdx
	leaq	1(%rsi), %rcx
	movq	%rcx, (%rbx)
	movl	%eax, (%rdx,%rsi,4)
	movq	_DPAA2_ETH_BUFS_PER_CMD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movl	20(%rbx), %edi
	movl	(%r14), %esi
	callq	_dpaa2_io_service_release
	movq	_EBUSY@GOTPCREL(%rip), %r15
	movl	%eax, %ecx
	addl	(%r15), %ecx
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	20(%rbx), %edi
	movl	(%r14), %esi
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	callq	_dpaa2_io_service_release
	movl	(%r15), %ecx
	addl	%eax, %ecx
	je	LBB0_2
LBB0_3:
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_free_bufs
	movl	(%rbx), %eax
	subl	%eax, 16(%rbx)
LBB0_5:
	movq	$0, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPAA2_ETH_BUFS_PER_CMD,8,3     ## @DPAA2_ETH_BUFS_PER_CMD
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_xdp_release_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdp_release_buf
_xdp_release_buf:                       ; @xdp_release_buf
	.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	x8, x2
	ldp	x9, x2, [x1]
	add	x3, x9, #1
	str	x3, [x1]
	str	w8, [x2, x9, lsl #2]
Lloh0:
	adrp	x8, _DPAA2_ETH_BUFS_PER_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPAA2_ETH_BUFS_PER_CMD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x3, x8
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #20]
	ldr	w1, [x20]
	bl	_dpaa2_io_service_release
Lloh3:
	adrp	x21, _EBUSY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _EBUSY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cpu_relax
	ldr	w0, [x19, #20]
	ldr	w1, [x20]
	ldp	x3, x2, [x19]
	bl	_dpaa2_io_service_release
	b	LBB0_2
LBB0_4:
	cbz	w0, LBB0_6
; %bb.5:
	ldp	x2, x1, [x19]
	mov	x0, x20
	bl	_free_bufs
	ldr	w8, [x19]
	ldr	w9, [x19, #16]
	sub	w8, w9, w8
	str	w8, [x19, #16]
LBB0_6:
	str	xzr, [x19]
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DPAA2_ETH_BUFS_PER_CMD,8,3     ; @DPAA2_ETH_BUFS_PER_CMD
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_xdp_release_buf
.subsections_via_symbols
