	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp1Init                       ## -- Begin function Vdp1Init
	.p2align	4, 0x90
_Vdp1Init:                              ## @Vdp1Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$4, %edi
	callq	_malloc
	movq	_Vdp1Regs@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	$524288, %edi                   ## imm = 0x80000
	callq	_T1MemoryInit
	movq	_Vdp1Ram@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	$524288, %edi                   ## imm = 0x80000
	callq	_T1MemoryInit
	movq	_Vdp1FrameBuffer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_Vdp1External@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Vdp1Regs,8,3                   ## @Vdp1Regs
	.comm	_Vdp1Ram,8,3                    ## @Vdp1Ram
	.comm	_Vdp1FrameBuffer,8,3            ## @Vdp1FrameBuffer
	.comm	_Vdp1External,4,2               ## @Vdp1External
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp1Init                       ; -- Begin function Vdp1Init
	.p2align	2
_Vdp1Init:                              ; @Vdp1Init
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w0, #4
	bl	_malloc
Lloh0:
	adrp	x8, _Vdp1Regs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Vdp1Regs@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	w0, #524288
	bl	_T1MemoryInit
Lloh3:
	adrp	x8, _Vdp1Ram@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Vdp1Ram@GOTPAGEOFF]
Lloh5:
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #524288
	bl	_T1MemoryInit
Lloh6:
	adrp	x8, _Vdp1FrameBuffer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Vdp1FrameBuffer@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
Lloh9:
	adrp	x8, _Vdp1External@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Vdp1External@GOTPAGEOFF]
	mov	w9, #1
Lloh11:
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_Vdp1Regs,8,3                   ; @Vdp1Regs
	.comm	_Vdp1Ram,8,3                    ; @Vdp1Ram
	.comm	_Vdp1FrameBuffer,8,3            ; @Vdp1FrameBuffer
	.comm	_Vdp1External,4,2               ; @Vdp1External
.subsections_via_symbols
