	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa_release_sgt_members
_dpaa_release_sgt_members:              ## @dpaa_release_sgt_members
	.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
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DPAA_BUFF_RELEASE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leal	(,%r15,4), %edx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_dpaa_bman_release
	movq	%rbx, %rdi
	callq	_qm_sg_entry_is_final
	addq	%r13, %r15
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_7
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movslq	%r15d, %r15
	movq	(%rbx,%r15,8), %rdi
	callq	_dpaa_bpid2pool
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r15,8), %rax
	movl	$1, %ecx
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %r13
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_qm_sg_entry_is_ext
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_qm_sg_entry_get64
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bm_buffer_set64
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r13
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	callq	_qm_sg_entry_is_final
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rbx), %rdx
	leaq	8(%rbx), %rax
	addq	$4, %r12
	leaq	1(%r13), %rcx
	cmpq	8(%rbx), %rdx
	je	LBB0_3
	jmp	LBB0_6
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DPAA_BUFF_RELEASE_MAX,4,2      ## @DPAA_BUFF_RELEASE_MAX
	.no_dead_strip	_dpaa_release_sgt_members
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa_release_sgt_members
_dpaa_release_sgt_members:              ; @dpaa_release_sgt_members
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _DPAA_BUFF_RELEASE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPAA_BUFF_RELEASE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	lsl	w2, w12, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	mov	x22, #0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_dpaa_bman_release
	mov	x0, x23
	bl	_qm_sg_entry_is_final
	add	x22, x25, x22
	cbnz	w0, LBB0_7
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	sbfiz	x8, x22, #3, #32
	ldr	x0, [x19, x8]
	bl	_dpaa_bpid2pool
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	sxtw	x25, w22
	add	x8, x19, x25, lsl #3
	mov	w9, #1
	mov	x24, x20
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x9
	mov	x23, x8
	mov	x0, x8
	bl	_qm_sg_entry_is_ext
	bl	_WARN_ON
	mov	x0, x23
	bl	_qm_sg_entry_get64
	mov	x1, x0
	mov	x0, x24
	bl	_bm_buffer_set64
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	bl	_qm_sg_entry_is_final
	cbnz	w0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x10, [x23]
	mov	x8, x23
	ldr	x11, [x8, #8]!
	add	x24, x24, #4
	add	x9, x22, #1
	cmp	x10, x11
	b.eq	LBB0_4
	b	LBB0_1
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #64
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DPAA_BUFF_RELEASE_MAX,4,2      ; @DPAA_BUFF_RELEASE_MAX
	.no_dead_strip	_dpaa_release_sgt_members
.subsections_via_symbols
