	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function VIDSoftInit
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VIDSoftInit
	.p2align	4, 0x90
_VIDSoftInit:                           ## @VIDSoftInit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_TitanInit
	movl	$-1, %ebx
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movl	$4, %edi
	movl	$360448, %esi                   ## imm = 0x58000
	callq	_calloc
	movq	_dispbuffer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	$4, %edi
	movl	$262144, %esi                   ## imm = 0x40000
	callq	_calloc
	movq	_vdp1framebuffer@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	$4, %edi
	movl	$262144, %esi                   ## imm = 0x40000
	callq	_calloc
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rcx), %rcx
	movq	_vdp1backframebuffer@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_vdp1frontframebuffer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_vdp2width@GOTPCREL(%rip), %rax
	movl	$320, (%rax)                    ## imm = 0x140
	movq	_rbg0width@GOTPCREL(%rip), %rax
	movl	$320, (%rax)                    ## imm = 0x140
	movq	_vdp2height@GOTPCREL(%rip), %rax
	movl	$224, (%rax)
	movq	_vidsoft_thread_context@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,1,1,1]
	movups	%xmm1, (%rcx)
	movups	%xmm0, 16(%rax)
	movabsq	$4294967297, %rdx               ## imm = 0x100000001
	movq	%rdx, 16(%rcx)
	movups	%xmm0, 32(%rax)
	movq	_vidsoft_vdp1_thread_context@GOTPCREL(%rip), %rax
	movq	$0, 8(%rax)
	movl	$1, (%rax)
	movq	_YAB_THREAD_VIDSOFT_VDP1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VidsoftVdp1Thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_YabThreadStart
	movq	_YAB_THREAD_VIDSOFT_LAYER_RBG0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VidsoftRbg0Thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_YabThreadStart
	movq	_YAB_THREAD_VIDSOFT_LAYER_NBG0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VidsoftNbg0Thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_YabThreadStart
	movq	_YAB_THREAD_VIDSOFT_LAYER_NBG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VidsoftNbg1Thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_YabThreadStart
	movq	_YAB_THREAD_VIDSOFT_LAYER_NBG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VidsoftNbg2Thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_YabThreadStart
	movq	_YAB_THREAD_VIDSOFT_LAYER_NBG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VidsoftNbg3Thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_YabThreadStart
	movq	_YAB_THREAD_VIDSOFT_LAYER_SPRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VidsoftSpriteThread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_YabThreadStart
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dispbuffer,8,3                 ## @dispbuffer
	.comm	_vdp1framebuffer,8,3            ## @vdp1framebuffer
	.comm	_vdp1backframebuffer,8,3        ## @vdp1backframebuffer
	.comm	_vdp1frontframebuffer,8,3       ## @vdp1frontframebuffer
	.comm	_vdp2width,4,2                  ## @vdp2width
	.comm	_rbg0width,4,2                  ## @rbg0width
	.comm	_vdp2height,4,2                 ## @vdp2height
	.comm	_vidsoft_thread_context,16,3    ## @vidsoft_thread_context
	.comm	_vidsoft_vdp1_thread_context,16,3 ## @vidsoft_vdp1_thread_context
	.comm	_YAB_THREAD_VIDSOFT_VDP1,4,2    ## @YAB_THREAD_VIDSOFT_VDP1
	.comm	_VidsoftVdp1Thread,4,2          ## @VidsoftVdp1Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_RBG0,4,2 ## @YAB_THREAD_VIDSOFT_LAYER_RBG0
	.comm	_VidsoftRbg0Thread,4,2          ## @VidsoftRbg0Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_NBG0,4,2 ## @YAB_THREAD_VIDSOFT_LAYER_NBG0
	.comm	_VidsoftNbg0Thread,4,2          ## @VidsoftNbg0Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_NBG1,4,2 ## @YAB_THREAD_VIDSOFT_LAYER_NBG1
	.comm	_VidsoftNbg1Thread,4,2          ## @VidsoftNbg1Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_NBG2,4,2 ## @YAB_THREAD_VIDSOFT_LAYER_NBG2
	.comm	_VidsoftNbg2Thread,4,2          ## @VidsoftNbg2Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_NBG3,4,2 ## @YAB_THREAD_VIDSOFT_LAYER_NBG3
	.comm	_VidsoftNbg3Thread,4,2          ## @VidsoftNbg3Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_SPRITE,4,2 ## @YAB_THREAD_VIDSOFT_LAYER_SPRITE
	.comm	_VidsoftSpriteThread,4,2        ## @VidsoftSpriteThread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftInit                    ; -- Begin function VIDSoftInit
	.p2align	2
_VIDSoftInit:                           ; @VIDSoftInit
	.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
	bl	_TitanInit
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	mov	w0, #4
	mov	w1, #32768
	movk	w1, #5, lsl #16
	bl	_calloc
Lloh0:
	adrp	x8, _dispbuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dispbuffer@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
	cbz	x0, LBB0_5
; %bb.2:
	mov	w0, #4
	mov	w1, #262144
	bl	_calloc
Lloh3:
	adrp	x19, _vdp1framebuffer@GOTPAGE
Lloh4:
	ldr	x19, [x19, _vdp1framebuffer@GOTPAGEOFF]
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_5
; %bb.3:
	mov	w0, #4
	mov	w1, #262144
	bl	_calloc
	ldr	x8, [x19]
	str	x0, [x8, #8]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _vdp1backframebuffer@GOTPAGE
Lloh6:
	ldr	x9, [x9, _vdp1backframebuffer@GOTPAGEOFF]
Lloh7:
	adrp	x10, _vdp1frontframebuffer@GOTPAGE
Lloh8:
	ldr	x10, [x10, _vdp1frontframebuffer@GOTPAGEOFF]
Lloh9:
	str	x8, [x9]
Lloh10:
	str	x0, [x10]
Lloh11:
	adrp	x8, _vdp2width@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vdp2width@GOTPAGEOFF]
	mov	w9, #320
Lloh13:
	str	w9, [x8]
Lloh14:
	adrp	x8, _rbg0width@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rbg0width@GOTPAGEOFF]
Lloh16:
	str	w9, [x8]
Lloh17:
	adrp	x8, _vdp2height@GOTPAGE
Lloh18:
	ldr	x8, [x8, _vdp2height@GOTPAGEOFF]
	mov	w9, #224
Lloh19:
	str	w9, [x8]
Lloh20:
	adrp	x8, _vidsoft_thread_context@GOTPAGE
Lloh21:
	ldr	x8, [x8, _vidsoft_thread_context@GOTPAGEOFF]
	ldp	x9, x8, [x8]
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #1
	str	q1, [x9]
	stp	q0, q0, [x8]
	movi.2s	v1, #1
	str	d1, [x9, #16]
	str	q0, [x8, #32]
Lloh22:
	adrp	x8, _vidsoft_vdp1_thread_context@GOTPAGE
Lloh23:
	ldr	x8, [x8, _vidsoft_vdp1_thread_context@GOTPAGEOFF]
	str	xzr, [x8, #8]
	mov	w9, #1
	str	w9, [x8]
Lloh24:
	adrp	x8, _YAB_THREAD_VIDSOFT_VDP1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _YAB_THREAD_VIDSOFT_VDP1@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _VidsoftVdp1Thread@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VidsoftVdp1Thread@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_YabThreadStart
Lloh30:
	adrp	x8, _YAB_THREAD_VIDSOFT_LAYER_RBG0@GOTPAGE
Lloh31:
	ldr	x8, [x8, _YAB_THREAD_VIDSOFT_LAYER_RBG0@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _VidsoftRbg0Thread@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VidsoftRbg0Thread@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_YabThreadStart
Lloh36:
	adrp	x8, _YAB_THREAD_VIDSOFT_LAYER_NBG0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _YAB_THREAD_VIDSOFT_LAYER_NBG0@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _VidsoftNbg0Thread@GOTPAGE
Lloh40:
	ldr	x8, [x8, _VidsoftNbg0Thread@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_YabThreadStart
Lloh42:
	adrp	x8, _YAB_THREAD_VIDSOFT_LAYER_NBG1@GOTPAGE
Lloh43:
	ldr	x8, [x8, _YAB_THREAD_VIDSOFT_LAYER_NBG1@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x8, _VidsoftNbg1Thread@GOTPAGE
Lloh46:
	ldr	x8, [x8, _VidsoftNbg1Thread@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_YabThreadStart
Lloh48:
	adrp	x8, _YAB_THREAD_VIDSOFT_LAYER_NBG2@GOTPAGE
Lloh49:
	ldr	x8, [x8, _YAB_THREAD_VIDSOFT_LAYER_NBG2@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x8, _VidsoftNbg2Thread@GOTPAGE
Lloh52:
	ldr	x8, [x8, _VidsoftNbg2Thread@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_YabThreadStart
Lloh54:
	adrp	x8, _YAB_THREAD_VIDSOFT_LAYER_NBG3@GOTPAGE
Lloh55:
	ldr	x8, [x8, _YAB_THREAD_VIDSOFT_LAYER_NBG3@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x8, _VidsoftNbg3Thread@GOTPAGE
Lloh58:
	ldr	x8, [x8, _VidsoftNbg3Thread@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_YabThreadStart
Lloh60:
	adrp	x8, _YAB_THREAD_VIDSOFT_LAYER_SPRITE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _YAB_THREAD_VIDSOFT_LAYER_SPRITE@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
Lloh63:
	adrp	x8, _VidsoftSpriteThread@GOTPAGE
Lloh64:
	ldr	x8, [x8, _VidsoftSpriteThread@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_YabThreadStart
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_dispbuffer,8,3                 ; @dispbuffer
	.comm	_vdp1framebuffer,8,3            ; @vdp1framebuffer
	.comm	_vdp1backframebuffer,8,3        ; @vdp1backframebuffer
	.comm	_vdp1frontframebuffer,8,3       ; @vdp1frontframebuffer
	.comm	_vdp2width,4,2                  ; @vdp2width
	.comm	_rbg0width,4,2                  ; @rbg0width
	.comm	_vdp2height,4,2                 ; @vdp2height
	.comm	_vidsoft_thread_context,16,3    ; @vidsoft_thread_context
	.comm	_vidsoft_vdp1_thread_context,16,3 ; @vidsoft_vdp1_thread_context
	.comm	_YAB_THREAD_VIDSOFT_VDP1,4,2    ; @YAB_THREAD_VIDSOFT_VDP1
	.comm	_VidsoftVdp1Thread,4,2          ; @VidsoftVdp1Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_RBG0,4,2 ; @YAB_THREAD_VIDSOFT_LAYER_RBG0
	.comm	_VidsoftRbg0Thread,4,2          ; @VidsoftRbg0Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_NBG0,4,2 ; @YAB_THREAD_VIDSOFT_LAYER_NBG0
	.comm	_VidsoftNbg0Thread,4,2          ; @VidsoftNbg0Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_NBG1,4,2 ; @YAB_THREAD_VIDSOFT_LAYER_NBG1
	.comm	_VidsoftNbg1Thread,4,2          ; @VidsoftNbg1Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_NBG2,4,2 ; @YAB_THREAD_VIDSOFT_LAYER_NBG2
	.comm	_VidsoftNbg2Thread,4,2          ; @VidsoftNbg2Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_NBG3,4,2 ; @YAB_THREAD_VIDSOFT_LAYER_NBG3
	.comm	_VidsoftNbg3Thread,4,2          ; @VidsoftNbg3Thread
	.comm	_YAB_THREAD_VIDSOFT_LAYER_SPRITE,4,2 ; @YAB_THREAD_VIDSOFT_LAYER_SPRITE
	.comm	_VidsoftSpriteThread,4,2        ; @VidsoftSpriteThread
.subsections_via_symbols
