	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_submit_channel_buffers
_ipu_submit_channel_buffers:            ## @ipu_submit_channel_buffers
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ecx, %ecx
	movb	$1, %bl
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	setne	%al
	movl	$1, %ecx
	testb	%al, %bl
	movl	$0, %ebx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, (%rax,%rcx,8)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ipu_submit_buffer
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_sg_next
	movq	%rax, %r13
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ipu_submit_channel_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_submit_channel_buffers
_ipu_submit_channel_buffers:            ; @ipu_submit_channel_buffers
	.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
	ldr	x19, [x1]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	w22, #0
	cbnz	x19, LBB0_6
	b	LBB0_9
LBB0_3:
	mov	w22, #0
	b	LBB0_9
LBB0_4:
	str	x19, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_ipu_submit_buffer
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_sg_next
	mov	x19, x0
	cbz	x19, LBB0_9
LBB0_6:
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_9
; %bb.7:
	str	x19, [x8, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	bl	_ipu_submit_buffer
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_sg_next
LBB0_9:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ipu_submit_channel_buffers
.subsections_via_symbols
