	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_sync_vc_vp
_dsi_sync_vc_vp:                        ## @dsi_sync_vc_vp
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_completion@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_DECLARE_COMPLETION_ONSTACK
	movq	%rbx, -56(%rbp)
	movq	%r15, -48(%rbp)
	movq	(%r15), %r12
	movq	_dsi_packet_sent_handler_vp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DSI_VC_IRQ_PACKET_SENT@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dsi_register_isr_vc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	sete	%bl
	orl	$30, %ebx
	movl	%r14d, %edi
	callq	_DSI_VC_TE
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_REG_GET
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movq	_completion@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	movq	_dsi_packet_sent_handler_vp@GOTPCREL(%rip), %r12
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DSSERR
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_dsi_packet_sent_handler_vp@GOTPCREL(%rip), %r12
LBB0_5:
	movl	(%r12), %edx
	movl	(%r13), %r8d
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dsi_unregister_isr_vc
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_completion,4,2                 ## @completion
	.comm	_dsi_packet_sent_handler_vp,4,2 ## @dsi_packet_sent_handler_vp
	.comm	_DSI_VC_IRQ_PACKET_SENT,4,2     ## @DSI_VC_IRQ_PACKET_SENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to complete previous frame transfer\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dsi_sync_vc_vp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_sync_vc_vp
_dsi_sync_vc_vp:                        ; @dsi_sync_vc_vp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _completion@GOTPAGE
Lloh1:
	ldr	x21, [x21, _completion@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_DECLARE_COMPLETION_ONSTACK
	stp	x21, x20, [sp]
	ldr	x24, [x20]
Lloh2:
	adrp	x22, _dsi_packet_sent_handler_vp@GOTPAGE
Lloh3:
	ldr	x22, [x22, _dsi_packet_sent_handler_vp@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x23, _DSI_VC_IRQ_PACKET_SENT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DSI_VC_IRQ_PACKET_SENT@GOTPAGEOFF]
	ldr	w4, [x23]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	bl	_dsi_register_isr_vc
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	cmp	x24, #0
	mov	w8, #30
	cinc	w21, w8, eq
	mov	x0, x19
	bl	_DSI_VC_TE
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	mov	x3, x21
	bl	_REG_GET
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #10
	bl	_msecs_to_jiffies
	mov	x1, x0
Lloh6:
	adrp	x0, _completion@GOTPAGE
Lloh7:
	ldr	x0, [x0, _completion@GOTPAGEOFF]
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_4
LBB0_3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSERR
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	ldr	w2, [x22]
	ldr	w4, [x23]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	bl	_dsi_unregister_isr_vc
LBB0_6:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_completion,4,2                 ; @completion
	.comm	_dsi_packet_sent_handler_vp,4,2 ; @dsi_packet_sent_handler_vp
	.comm	_DSI_VC_IRQ_PACKET_SENT,4,2     ; @DSI_VC_IRQ_PACKET_SENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to complete previous frame transfer\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dsi_sync_vc_vp
.subsections_via_symbols
