	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpdma_submit_descs             ## -- Begin function vpdma_submit_descs
	.p2align	4, 0x90
_vpdma_submit_descs:                    ## @vpdma_submit_descs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%edx, %esi
	callq	_vpdma_list_busy
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	(%r15), %r12d
	subl	8(%r15), %r12d
	sarl	$4, %r12d
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_VPDMA_LIST_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movq	%r14, %rdi
	callq	_write_reg
	movq	_VPDMA_LIST_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VPDMA_LIST_NUM_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r12d, %ebx
	movl	4(%r15), %edx
	movq	_VPDMA_LIST_TYPE_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%ebx, %edx
	movq	%r14, %rdi
	callq	_write_reg
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_VPDMA_LIST_ADDR,4,2            ## @VPDMA_LIST_ADDR
	.comm	_VPDMA_LIST_ATTR,4,2            ## @VPDMA_LIST_ATTR
	.comm	_VPDMA_LIST_NUM_SHFT,4,2        ## @VPDMA_LIST_NUM_SHFT
	.comm	_VPDMA_LIST_TYPE_SHFT,4,2       ## @VPDMA_LIST_TYPE_SHFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpdma_submit_descs             ; -- Begin function vpdma_submit_descs
	.p2align	2
_vpdma_submit_descs:                    ; @vpdma_submit_descs
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x1, x2
	bl	_vpdma_list_busy
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20]
	ldr	w9, [x20, #8]
	sub	w22, w8, w9
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _VPDMA_LIST_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPDMA_LIST_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_write_reg
Lloh6:
	adrp	x8, _VPDMA_LIST_ATTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPDMA_LIST_ATTR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _VPDMA_LIST_NUM_SHFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VPDMA_LIST_NUM_SHFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w21, w8
	ldr	w9, [x20, #4]
Lloh12:
	adrp	x10, _VPDMA_LIST_TYPE_SHFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VPDMA_LIST_TYPE_SHFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w22, asr #4
	orr	w2, w8, w9
	mov	x0, x19
	bl	_write_reg
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_VPDMA_LIST_ADDR,4,2            ; @VPDMA_LIST_ADDR
	.comm	_VPDMA_LIST_ATTR,4,2            ; @VPDMA_LIST_ATTR
	.comm	_VPDMA_LIST_NUM_SHFT,4,2        ; @VPDMA_LIST_NUM_SHFT
	.comm	_VPDMA_LIST_TYPE_SHFT,4,2       ; @VPDMA_LIST_TYPE_SHFT
.subsections_via_symbols
