	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa_bp_drain
_dpaa_bp_drain:                         ## @dpaa_bp_drain
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$8, %ebx
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	8(%r13), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_bman_acquire
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rcx
	xorl	%r15d, %r15d
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*%rcx
	cmpl	$1, %ebx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r14d
	decq	%r14
	leaq	-76(%rbp), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*(%r13)
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	leaq	-80(%rbp), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	cmpl	$8, %ebx
	movl	$1, %eax
	cmovel	%eax, %ebx
	sete	%r15b
	cmovel	%eax, %r12d
	orl	$2, %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$2, %r15d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jg	LBB0_1
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dpaa_bp_drain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa_bp_drain
_dpaa_bp_drain:                         ; @dpaa_bp_drain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x8, sp, #8
	orr	x23, x8, #0x4
	mov	w20, #8
	mov	w24, #2
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	mov	x2, x20
	bl	_bman_acquire
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	cmp	w20, #1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, w20
	sub	x25, x8, #1
	mov	x22, x23
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x22
	blr	x8
	add	x22, x22, #4
	subs	x25, x25, #1
	b.ne	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #2
	b.ne	LBB0_9
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w20, #8
	csinc	w20, w20, wzr, ne
	csinc	w21, w21, wzr, ne
	cinc	w8, w24, eq
	cmp	w8, #2
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w21, #0
	b.gt	LBB0_1
LBB0_10:
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dpaa_bp_drain
.subsections_via_symbols
