	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VidsoftVdp1Thread              ## -- Begin function VidsoftVdp1Thread
	.p2align	4, 0x90
_VidsoftVdp1Thread:                     ## @VidsoftVdp1Thread
	.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	_vidsoft_vdp1_thread_context@GOTPCREL(%rip), %rbx
	leaq	8(%rbx), %r14
	movq	_vdp1backframebuffer@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_YabThreadSleep
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, 16(%rbx)
	movl	4(%rbx), %edx
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	callq	_Vdp1DrawCommands
	movl	(%r15), %edi
	movl	4(%rbx), %esi
	movl	$262144, %edx                   ## imm = 0x40000
	callq	_memcpy
	movl	$1, (%rbx)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_vidsoft_vdp1_thread_context,24,3 ## @vidsoft_vdp1_thread_context
	.comm	_vdp1backframebuffer,4,2        ## @vdp1backframebuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VidsoftVdp1Thread              ; -- Begin function VidsoftVdp1Thread
	.p2align	2
_VidsoftVdp1Thread:                     ; @VidsoftVdp1Thread
	.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
Lloh0:
	adrp	x19, _vidsoft_vdp1_thread_context@GOTPAGE
Lloh1:
	ldr	x19, [x19, _vidsoft_vdp1_thread_context@GOTPAGEOFF]
Lloh2:
	adrp	x20, _vdp1backframebuffer@GOTPAGE
Lloh3:
	ldr	x20, [x20, _vdp1backframebuffer@GOTPAGEOFF]
	mov	w21, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_YabThreadSleep
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x19, #16]
	ldr	w0, [x19, #12]
	ldr	w2, [x19, #4]
	add	x1, x19, #8
	bl	_Vdp1DrawCommands
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
	mov	w2, #262144
	bl	_memcpy
	str	w21, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vidsoft_vdp1_thread_context,24,3 ; @vidsoft_vdp1_thread_context
	.comm	_vdp1backframebuffer,4,2        ; @vdp1backframebuffer
.subsections_via_symbols
