	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_dlm_irq_frame_end         ## -- Begin function vsp1_dlm_irq_frame_end
	.p2align	4, 0x90
_vsp1_dlm_irq_frame_end:                ## @vsp1_dlm_irq_frame_end
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %rdi
	movq	_VI6_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vsp1_read
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_spin_lock
	cmpq	$0, 40(%rbx)
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rdi
	callq	___vsp1_dl_list_put
	movq	$0, 24(%rbx)
	movq	_VSP1_DL_FRAME_END_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_2:
	movq	%rbx, %rdi
	callq	_vsp1_dl_list_hw_update_pending
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movl	32(%rbx), %edi
	callq	_VI6_STATUS_FLD_STD
	testl	%r15d, %eax
	jne	LBB0_11
## %bb.4:
	movq	24(%rbx), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	movl	(%rdi), %eax
	movq	_VSP1_DL_FRAME_END_WRITEBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.6:
	movl	%ecx, %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%rdi)
	movl	%ecx, %r14d
LBB0_7:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rax), %ecx
	movq	_VSP1_DL_FRAME_END_INTERNAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %r15d
	andl	%ecx, %r15d
	cmovnel	%edx, %r15d
	orl	%r14d, %r15d
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax)
	callq	___vsp1_dl_list_put
	movq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	_VSP1_DL_FRAME_END_COMPLETED@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, %r14d
LBB0_9:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_vsp1_dl_list_hw_enqueue
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
LBB0_11:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VI6_STATUS,4,2                 ## @VI6_STATUS
	.comm	_VSP1_DL_FRAME_END_COMPLETED,4,2 ## @VSP1_DL_FRAME_END_COMPLETED
	.comm	_VSP1_DL_FRAME_END_WRITEBACK,4,2 ## @VSP1_DL_FRAME_END_WRITEBACK
	.comm	_VSP1_DL_FRAME_END_INTERNAL,4,2 ## @VSP1_DL_FRAME_END_INTERNAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_dlm_irq_frame_end         ; -- Begin function vsp1_dlm_irq_frame_end
	.p2align	2
_vsp1_dlm_irq_frame_end:                ; @vsp1_dlm_irq_frame_end
	.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
	ldr	x0, [x0, #48]
Lloh0:
	adrp	x8, _VI6_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VI6_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_vsp1_read
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #24]
	bl	___vsp1_dl_list_put
	str	xzr, [x19, #24]
Lloh3:
	adrp	x8, _VSP1_DL_FRAME_END_COMPLETED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VSP1_DL_FRAME_END_COMPLETED@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_vsp1_dl_list_hw_update_pending
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #32]
	bl	_VI6_STATUS_FLD_STD
	tst	w0, w20
	b.eq	LBB0_6
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _VSP1_DL_FRAME_END_WRITEBACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VSP1_DL_FRAME_END_WRITEBACK@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x9]
	tst	w20, w8
	b.eq	LBB0_9
; %bb.8:
	bic	w8, w8, w20
	str	w8, [x0]
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w9, [x8]
Lloh9:
	adrp	x10, _VSP1_DL_FRAME_END_INTERNAL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VSP1_DL_FRAME_END_INTERNAL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	csel	w11, wzr, w10, eq
	orr	w20, w11, w20
	bic	w9, w9, w10
	str	w9, [x8]
	bl	___vsp1_dl_list_put
	ldr	x8, [x19, #16]
	stp	xzr, x8, [x19, #16]
Lloh12:
	adrp	x8, _VSP1_DL_FRAME_END_COMPLETED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VSP1_DL_FRAME_END_COMPLETED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w20, w20, w8
LBB0_12:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.13:
	bl	_vsp1_dl_list_hw_enqueue
	ldr	x8, [x19, #8]
	stp	xzr, x8, [x19, #8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VI6_STATUS,4,2                 ; @VI6_STATUS
	.comm	_VSP1_DL_FRAME_END_COMPLETED,4,2 ; @VSP1_DL_FRAME_END_COMPLETED
	.comm	_VSP1_DL_FRAME_END_WRITEBACK,4,2 ; @VSP1_DL_FRAME_END_WRITEBACK
	.comm	_VSP1_DL_FRAME_END_INTERNAL,4,2 ; @VSP1_DL_FRAME_END_INTERNAL
.subsections_via_symbols
