	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function VIDDCInit
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
	.long	0x40000000                      ## float 2
	.long	0x40400000                      ## float 3
LCPI0_3:
	.long	0x40800000                      ## float 4
	.long	0x40a00000                      ## float 5
	.long	0x40c00000                      ## float 6
	.long	0x40e00000                      ## float 7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_VIDDCInit:                             ## @VIDDCInit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DM_320x240@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PM_RGB565@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vid_set_mode
	movq	_pvr_params@GOTPCREL(%rip), %rdi
	callq	_pvr_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$-1, %r15d
	jmp	LBB0_3
LBB0_2:
	movq	_PVR_LIST_OP_POLY@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_vbuf_opaque@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$262144, %edx                   ## imm = 0x40000
	callq	_pvr_set_vertbuf
	movq	_PVR_LIST_TR_POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %rbx
	movq	_vbuf_translucent@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$262144, %edx                   ## imm = 0x40000
	callq	_pvr_set_vertbuf
	movq	_PVR_LIST_PT_POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_vbuf_punchthru@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$262144, %edx                   ## imm = 0x40000
	callq	_pvr_set_vertbuf
	movl	$2097152, %edi                  ## imm = 0x200000
	callq	_pvr_mem_malloc
	movq	_tex_space@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movl	$1048576, %edi                  ## imm = 0x100000
	callq	_pvr_mem_malloc
	movq	_vdp2_tex@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movq	_cur_addr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pvr_mem_available
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	movq	(%r12), %rdi
	movl	$255, %esi
	movl	$2097152, %edx                  ## imm = 0x200000
	callq	_sq_set
	movl	(%r14), %esi
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	callq	_pvr_sprite_cxt_col
	movl	(%rbx), %esi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_pvr_sprite_cxt_col
	movq	_PVR_CULLING_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	%rax, -64(%rbp)
	movq	_op_poly_hdr@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_pvr_sprite_compile
	movq	_tr_poly_hdr@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pvr_sprite_compile
	movq	_PVR_TXRFMT_ARGB1555@GOTPCREL(%rip), %rbx
	movq	_PVR_TXRFMT_NONTWIDDLED@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rbx), %edx
	movq	_PVR_LIST_TR_POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %r9
	movq	_PVR_FILTER_NONE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	leaq	-48(%rbp), %rdi
	movl	$1024, %ecx                     ## imm = 0x400
	movl	$1024, %r8d                     ## imm = 0x400
	callq	_pvr_sprite_cxt_txr
	movq	_PVR_LIST_PT_POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	orl	(%rbx), %edx
	movq	(%r12), %r9
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %ecx                     ## imm = 0x400
	movl	$1024, %r8d                     ## imm = 0x400
	callq	_pvr_sprite_cxt_txr
	movq	_PVR_CULLING_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%rax, -48(%rbp)
	movq	_tr_sprite_hdr@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_pvr_sprite_compile
	movq	_pt_sprite_hdr@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pvr_sprite_compile
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	movaps	%xmm1, %xmm3
	callq	_PVR_PACK_COLOR
	movl	%eax, (%r12)
	movq	_priority_levels@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [0.0E+0,1.0E+0,2.0E+0,3.0E+0]
	movups	%xmm0, (%rax)
	movaps	LCPI0_3(%rip), %xmm0            ## xmm0 = [4.0E+0,5.0E+0,6.0E+0,7.0E+0]
	movups	%xmm0, 16(%rax)
	movq	_framecount@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%edi, %edi
	callq	_time
	movq	_lastup@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_3:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_320x240,4,2                 ## @DM_320x240
	.comm	_PM_RGB565,4,2                  ## @PM_RGB565
	.comm	_pvr_params,4,2                 ## @pvr_params
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDDCInit() - error initializing PVR\n"

	.comm	_PVR_LIST_OP_POLY,4,2           ## @PVR_LIST_OP_POLY
	.comm	_vbuf_opaque,4,2                ## @vbuf_opaque
	.comm	_PVR_LIST_TR_POLY,4,2           ## @PVR_LIST_TR_POLY
	.comm	_vbuf_translucent,4,2           ## @vbuf_translucent
	.comm	_PVR_LIST_PT_POLY,4,2           ## @PVR_LIST_PT_POLY
	.comm	_vbuf_punchthru,4,2             ## @vbuf_punchthru
	.comm	_tex_space,8,3                  ## @tex_space
	.comm	_vdp2_tex,8,3                   ## @vdp2_tex
	.comm	_cur_addr,8,3                   ## @cur_addr
L_.str.1:                               ## @.str.1
	.asciz	"PVR Memory Available: %lu\n"

	.comm	_PVR_CULLING_NONE,8,3           ## @PVR_CULLING_NONE
	.comm	_op_poly_hdr,4,2                ## @op_poly_hdr
	.comm	_tr_poly_hdr,4,2                ## @tr_poly_hdr
	.comm	_PVR_TXRFMT_ARGB1555,4,2        ## @PVR_TXRFMT_ARGB1555
	.comm	_PVR_TXRFMT_NONTWIDDLED,4,2     ## @PVR_TXRFMT_NONTWIDDLED
	.comm	_PVR_FILTER_NONE,4,2            ## @PVR_FILTER_NONE
	.comm	_tr_sprite_hdr,4,2              ## @tr_sprite_hdr
	.comm	_pt_sprite_hdr,4,2              ## @pt_sprite_hdr
	.comm	_priority_levels,8,3            ## @priority_levels
	.comm	_framecount,8,3                 ## @framecount
	.comm	_lastup,4,2                     ## @lastup
	.no_dead_strip	_VIDDCInit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function VIDDCInit
lCPI0_0:
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1
	.long	0x40000000                      ; float 2
	.long	0x40400000                      ; float 3
lCPI0_1:
	.long	0x40800000                      ; float 4
	.long	0x40a00000                      ; float 5
	.long	0x40c00000                      ; float 6
	.long	0x40e00000                      ; float 7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_VIDDCInit:                             ; @VIDDCInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _DM_320x240@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_320x240@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PM_RGB565@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PM_RGB565@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_vid_set_mode
Lloh6:
	adrp	x0, _pvr_params@GOTPAGE
Lloh7:
	ldr	x0, [x0, _pvr_params@GOTPAGEOFF]
	bl	_pvr_init
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x22, _PVR_LIST_OP_POLY@GOTPAGE
Lloh14:
	ldr	x22, [x22, _PVR_LIST_OP_POLY@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _vbuf_opaque@GOTPAGE
Lloh16:
	ldr	x8, [x8, _vbuf_opaque@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #262144
	bl	_pvr_set_vertbuf
Lloh18:
	adrp	x20, _PVR_LIST_TR_POLY@GOTPAGE
Lloh19:
	ldr	x20, [x20, _PVR_LIST_TR_POLY@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh20:
	adrp	x8, _vbuf_translucent@GOTPAGE
Lloh21:
	ldr	x8, [x8, _vbuf_translucent@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #262144
	bl	_pvr_set_vertbuf
Lloh23:
	adrp	x19, _PVR_LIST_PT_POLY@GOTPAGE
Lloh24:
	ldr	x19, [x19, _PVR_LIST_PT_POLY@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh25:
	adrp	x8, _vbuf_punchthru@GOTPAGE
Lloh26:
	ldr	x8, [x8, _vbuf_punchthru@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w2, #262144
	bl	_pvr_set_vertbuf
	mov	w0, #2097152
	bl	_pvr_mem_malloc
Lloh28:
	adrp	x21, _tex_space@GOTPAGE
Lloh29:
	ldr	x21, [x21, _tex_space@GOTPAGEOFF]
	str	x0, [x21]
	mov	w0, #1048576
	bl	_pvr_mem_malloc
Lloh30:
	adrp	x8, _vdp2_tex@GOTPAGE
Lloh31:
	ldr	x8, [x8, _vdp2_tex@GOTPAGEOFF]
Lloh32:
	str	x0, [x8]
	ldr	x8, [x21]
Lloh33:
	adrp	x9, _cur_addr@GOTPAGE
Lloh34:
	ldr	x9, [x9, _cur_addr@GOTPAGEOFF]
Lloh35:
	str	x8, [x9]
	bl	_pvr_mem_available
	mov	x1, x0
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x0, [x21]
	mov	w1, #255
	mov	w2, #2097152
	bl	_sq_set
	ldr	w1, [x22]
	add	x0, sp, #24
	bl	_pvr_sprite_cxt_col
	ldr	w1, [x20]
	add	x0, sp, #16
	bl	_pvr_sprite_cxt_col
Lloh38:
	adrp	x22, _PVR_CULLING_NONE@GOTPAGE
Lloh39:
	ldr	x22, [x22, _PVR_CULLING_NONE@GOTPAGEOFF]
	ldr	x8, [x22]
	stp	x8, x8, [sp, #16]
Lloh40:
	adrp	x0, _op_poly_hdr@GOTPAGE
Lloh41:
	ldr	x0, [x0, _op_poly_hdr@GOTPAGEOFF]
	add	x1, sp, #24
	bl	_pvr_sprite_compile
Lloh42:
	adrp	x0, _tr_poly_hdr@GOTPAGE
Lloh43:
	ldr	x0, [x0, _tr_poly_hdr@GOTPAGEOFF]
	add	x1, sp, #16
	bl	_pvr_sprite_compile
	ldr	w1, [x20]
Lloh44:
	adrp	x20, _PVR_TXRFMT_ARGB1555@GOTPAGE
Lloh45:
	ldr	x20, [x20, _PVR_TXRFMT_ARGB1555@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh46:
	adrp	x23, _PVR_TXRFMT_NONTWIDDLED@GOTPAGE
Lloh47:
	ldr	x23, [x23, _PVR_TXRFMT_NONTWIDDLED@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w9, w8
	ldr	x5, [x21]
Lloh48:
	adrp	x24, _PVR_FILTER_NONE@GOTPAGE
Lloh49:
	ldr	x24, [x24, _PVR_FILTER_NONE@GOTPAGEOFF]
	ldr	w6, [x24]
	mov	x0, sp
	mov	w3, #1024
	mov	w4, #1024
	bl	_pvr_sprite_cxt_txr
	ldr	w1, [x19]
	ldr	w8, [x20]
	ldr	w9, [x23]
	orr	w2, w9, w8
	ldr	x5, [x21]
	ldr	w6, [x24]
	add	x0, sp, #8
	mov	w3, #1024
	mov	w4, #1024
	bl	_pvr_sprite_cxt_txr
	ldr	x8, [x22]
	stp	x8, x8, [sp]
Lloh50:
	adrp	x19, _tr_sprite_hdr@GOTPAGE
Lloh51:
	ldr	x19, [x19, _tr_sprite_hdr@GOTPAGEOFF]
	mov	x1, sp
	mov	x0, x19
	bl	_pvr_sprite_compile
Lloh52:
	adrp	x0, _pt_sprite_hdr@GOTPAGE
Lloh53:
	ldr	x0, [x0, _pt_sprite_hdr@GOTPAGEOFF]
	add	x1, sp, #8
	bl	_pvr_sprite_compile
	fmov	s0, #0.50000000
	fmov	s1, #1.00000000
	fmov	s2, #1.00000000
	fmov	s3, #1.00000000
	bl	_PVR_PACK_COLOR
	str	w0, [x19]
Lloh54:
	adrp	x8, _priority_levels@GOTPAGE
Lloh55:
	ldr	x8, [x8, _priority_levels@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
Lloh57:
	adrp	x9, lCPI0_0@PAGE
Lloh58:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
Lloh59:
	adrp	x9, lCPI0_1@PAGE
Lloh60:
	ldr	q1, [x9, lCPI0_1@PAGEOFF]
	stp	q0, q1, [x8]
Lloh61:
	adrp	x8, _framecount@GOTPAGE
Lloh62:
	ldr	x8, [x8, _framecount@GOTPAGEOFF]
Lloh63:
	str	xzr, [x8]
	mov	x0, #0
	bl	_time
	mov	x8, x0
	mov	w0, #0
Lloh64:
	adrp	x9, _lastup@GOTPAGE
Lloh65:
	ldr	x9, [x9, _lastup@GOTPAGEOFF]
Lloh66:
	str	w8, [x9]
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotStr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdr	Lloh59, Lloh60
	.loh AdrpAdrp	Lloh57, Lloh59
	.loh AdrpLdr	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_320x240,4,2                 ; @DM_320x240
	.comm	_PM_RGB565,4,2                  ; @PM_RGB565
	.comm	_pvr_params,4,2                 ; @pvr_params
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDDCInit() - error initializing PVR\n"

	.comm	_PVR_LIST_OP_POLY,4,2           ; @PVR_LIST_OP_POLY
	.comm	_vbuf_opaque,4,2                ; @vbuf_opaque
	.comm	_PVR_LIST_TR_POLY,4,2           ; @PVR_LIST_TR_POLY
	.comm	_vbuf_translucent,4,2           ; @vbuf_translucent
	.comm	_PVR_LIST_PT_POLY,4,2           ; @PVR_LIST_PT_POLY
	.comm	_vbuf_punchthru,4,2             ; @vbuf_punchthru
	.comm	_tex_space,8,3                  ; @tex_space
	.comm	_vdp2_tex,8,3                   ; @vdp2_tex
	.comm	_cur_addr,8,3                   ; @cur_addr
l_.str.1:                               ; @.str.1
	.asciz	"PVR Memory Available: %lu\n"

	.comm	_PVR_CULLING_NONE,8,3           ; @PVR_CULLING_NONE
	.comm	_op_poly_hdr,4,2                ; @op_poly_hdr
	.comm	_tr_poly_hdr,4,2                ; @tr_poly_hdr
	.comm	_PVR_TXRFMT_ARGB1555,4,2        ; @PVR_TXRFMT_ARGB1555
	.comm	_PVR_TXRFMT_NONTWIDDLED,4,2     ; @PVR_TXRFMT_NONTWIDDLED
	.comm	_PVR_FILTER_NONE,4,2            ; @PVR_FILTER_NONE
	.comm	_tr_sprite_hdr,4,2              ; @tr_sprite_hdr
	.comm	_pt_sprite_hdr,4,2              ; @pt_sprite_hdr
	.comm	_priority_levels,8,3            ; @priority_levels
	.comm	_framecount,8,3                 ; @framecount
	.comm	_lastup,4,2                     ; @lastup
	.no_dead_strip	_VIDDCInit
.subsections_via_symbols
