	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drain_pool
_drain_pool:                            ## @drain_pool
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_DPAA2_ETH_BUFS_PER_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drain_bufs
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_drain_bufs
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movq	8(%rbx), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$7, %eax
	cmpq	$7, %rsi
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	andl	$-8, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	8(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	16(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	24(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	32(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	40(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	48(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	56(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	addq	$8, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_4
LBB0_5:
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	$0, (%rsi)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPAA2_ETH_BUFS_PER_CMD,4,2     ## @DPAA2_ETH_BUFS_PER_CMD
	.no_dead_strip	_drain_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drain_pool
_drain_pool:                            ; @drain_pool
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _DPAA2_ETH_BUFS_PER_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPAA2_ETH_BUFS_PER_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drain_bufs
	mov	x0, x19
	mov	w1, #1
	bl	_drain_bufs
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #16
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x13, x14, [x11, #-16]
	ldp	x15, x16, [x11], #32
	str	xzr, [x13]
	str	xzr, [x14]
	str	xzr, [x15]
	str	xzr, [x16]
	subs	x12, x12, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	str	xzr, [x10]
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DPAA2_ETH_BUFS_PER_CMD,4,2     ; @DPAA2_ETH_BUFS_PER_CMD
	.no_dead_strip	_drain_pool
.subsections_via_symbols
