	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getpixel
_getpixel:                              ## @getpixel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	_cmd@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, %edx
	andl	$7, %edx
	movl	12(%r14), %r13d
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$3, %ecx
	andl	$6, %eax
	cmpl	$4, %eax
	sete	%r12b
	cmpl	$6, %edx
	sete	%al
	cmpl	$3, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$2, %ecx
	je	LBB0_3
## %bb.2:
	cmpl	$1, %ecx
	je	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	_characterHeight@GOTPCREL(%rip), %rcx
	notl	%edi
	addl	(%rcx), %edi
	jmp	LBB0_6
LBB0_4:
	movq	_characterHeight@GOTPCREL(%rip), %rcx
	notl	%edi
	addl	(%rcx), %edi
LBB0_5:
	movq	_characterWidth@GOTPCREL(%rip), %rcx
	notl	%esi
	addl	(%rcx), %esi
LBB0_6:
	movl	8(%r14), %r15d
	orb	%al, %r12b
	movl	%r13d, %eax
	shrl	$3, %eax
	andl	$7, %eax
	cmpl	$5, %eax
	ja	LBB0_30
## %bb.7:
	movl	4(%r14), %ecx
	shll	$3, %ecx
	movl	%r12d, %ebx
	xorb	$1, %bl
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_8:
	testb	$-128, %r13b
	sete	-48(%rbp)                       ## 1-byte Folded Spill
	movq	_characterWidth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	imull	%edi, %eax
	addl	%ecx, %eax
	movl	%eax, %edi
	callq	_Vdp1ReadPattern16
	movl	%eax, %ecx
	movq	_currentPixel@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	andb	-48(%rbp), %bl                  ## 1-byte Folded Reload
	cmpb	$1, %bl
	jne	LBB0_10
## %bb.9:
	movl	$1, %eax
	cmpl	$15, %ecx
	je	LBB0_33
LBB0_10:
	andl	$64, %r13d
	orl	%ecx, %r13d
	je	LBB0_12
## %bb.11:
	orl	%r15d, %ecx
	movl	%ecx, (%rdx)
LBB0_12:
	movq	_currentPixelIsVisible@GOTPCREL(%rip), %rax
	movl	$15, (%rax)
	jmp	LBB0_30
LBB0_17:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r15d
	andl	$128, %r15d
	andl	$64, %r13d
	movq	_characterWidth@GOTPCREL(%rip), %rax
	imull	(%rax), %edi
	addl	%ecx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Vdp1ReadPattern64
	movl	%eax, %ecx
	xorl	$63, %ecx
	xorl	%edx, %edx
	orl	%r15d, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %ecx
	cmovel	%edx, %ecx
	testb	%bl, %bl
	cmovel	%eax, %ecx
	orl	%ecx, %r13d
	cmovnel	%r15d, %edx
	orl	%ecx, %edx
	movq	_currentPixel@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movq	_currentPixelIsVisible@GOTPCREL(%rip), %rax
	movl	$63, (%rax)
	jmp	LBB0_30
LBB0_18:
	testb	$-128, %r13b
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	sete	%r15b
	movq	_characterWidth@GOTPCREL(%rip), %rax
	imull	(%rax), %edi
	addl	%ecx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Vdp1ReadPattern128
	movl	%eax, %ecx
	movq	_currentPixel@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	andb	%r15b, %bl
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpb	$1, %bl
	jne	LBB0_20
## %bb.19:
	movl	$1, %eax
	cmpl	$255, %ecx
	je	LBB0_33
LBB0_20:
	andl	$64, %r13d
	orl	%ecx, %r13d
	je	LBB0_22
## %bb.21:
	orl	%r15d, %ecx
	movl	%ecx, (%rdx)
LBB0_22:
	movq	_currentPixelIsVisible@GOTPCREL(%rip), %rax
	movl	$127, (%rax)
	jmp	LBB0_30
LBB0_23:
	testb	$-128, %r13b
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	sete	%r15b
	movq	_characterWidth@GOTPCREL(%rip), %rax
	imull	(%rax), %edi
	addl	%ecx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Vdp1ReadPattern256
	movl	%eax, %ecx
	movq	_currentPixel@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	andb	%r15b, %bl
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpb	$1, %bl
	jne	LBB0_25
## %bb.24:
	movl	$1, %eax
	cmpl	$255, %ecx
	je	LBB0_33
LBB0_25:
	andl	$64, %r13d
	movq	_currentPixelIsVisible@GOTPCREL(%rip), %rax
	movl	$255, (%rax)
	orl	%ecx, %r13d
	je	LBB0_30
## %bb.26:
	orl	%r15d, %ecx
	movl	%ecx, (%rdx)
	jmp	LBB0_30
LBB0_13:
	testb	$-128, %r13b
	sete	-48(%rbp)                       ## 1-byte Folded Spill
	movq	_characterWidth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	imull	%edi, %eax
	addl	%ecx, %eax
	movl	%eax, %edi
	callq	_Vdp1ReadPattern16
	movl	%eax, %ecx
	movq	_currentPixel@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	andb	-48(%rbp), %bl                  ## 1-byte Folded Reload
	cmpb	$1, %bl
	jne	LBB0_15
## %bb.14:
	movl	$1, %eax
	cmpl	$15, %ecx
	je	LBB0_33
LBB0_15:
	andl	$64, %r13d
	orl	%ecx, %r13d
	je	LBB0_29
## %bb.16:
	leal	(,%r15,8), %eax
	movq	%rdx, %rbx
	movq	_Vdp1Ram@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leal	(%rax,%rcx,2), %esi
	andl	$524286, %esi                   ## imm = 0x7FFFE
	callq	_T1ReadWord
	movl	%eax, (%rbx)
	jmp	LBB0_29
LBB0_27:
	testb	$-128, %r13b
	movq	%r15, %r13
	sete	%r15b
	movq	_characterWidth@GOTPCREL(%rip), %rax
	imull	(%rax), %edi
	leal	(%rcx,%rdi,2), %edi
	callq	_Vdp1ReadPattern64k
	movl	%eax, %ecx
	movq	_currentPixel@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	andb	%r15b, %bl
	movq	%r13, %r15
	cmpb	$1, %bl
	jne	LBB0_29
## %bb.28:
	movl	$1, %eax
	cmpl	$32767, %ecx                    ## imm = 0x7FFF
	je	LBB0_33
LBB0_29:
	movq	_currentPixelIsVisible@GOTPCREL(%rip), %rax
	movl	$65535, (%rax)                  ## imm = 0xFFFF
LBB0_30:
	movq	_currentPixel@GOTPCREL(%rip), %rax
	testb	%r12b, %r12b
	jne	LBB0_32
## %bb.31:
	movl	(%rax), %r15d
LBB0_32:
	movl	$32768, %ecx                    ## imm = 0x8000
	andl	12(%r14), %ecx
	orl	%r15d, %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_23
	.long	L0_0_set_27
	.end_data_region
                                        ## -- End function
	.comm	_cmd,16,2                       ## @cmd
	.comm	_characterWidth,4,2             ## @characterWidth
	.comm	_characterHeight,4,2            ## @characterHeight
	.comm	_currentPixel,4,2               ## @currentPixel
	.comm	_currentPixelIsVisible,4,2      ## @currentPixelIsVisible
	.comm	_Vdp1Ram,4,2                    ## @Vdp1Ram
	.no_dead_strip	_getpixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getpixel
_getpixel:                              ; @getpixel
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x19, _cmd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cmd@GOTPAGEOFF]
	ldr	w9, [x19]
	and	w10, w9, #0x7
	ldr	w22, [x19, #12]
	ubfx	w8, w9, #4, #2
	and	w9, w9, #0x6
	cmp	w9, #4
	ccmp	w10, #6, #4, ne
	cset	w20, eq
	cmp	w8, #3
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #1
	b.eq	LBB0_4
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _characterHeight@GOTPAGE
Lloh3:
	ldr	x8, [x8, _characterHeight@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mvn	w9, w0
	add	w0, w8, w9
LBB0_4:
Lloh5:
	adrp	x8, _characterWidth@GOTPAGE
Lloh6:
	ldr	x8, [x8, _characterWidth@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mvn	w9, w1
	add	w1, w8, w9
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _characterHeight@GOTPAGE
Lloh9:
	ldr	x8, [x8, _characterHeight@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mvn	w9, w0
	add	w0, w8, w9
LBB0_6:
	ldr	w21, [x19, #8]
	ubfx	w9, w22, #3, #3
	cmp	w9, #5
	b.hi	LBB0_28
; %bb.7:
	ldr	w8, [x19, #4]
	lsl	w8, w8, #3
	eor	w23, w20, #0x1
Lloh11:
	adrp	x10, lJTI0_0@PAGE
Lloh12:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_8:
	tst	w22, #0x80
	cset	w24, eq
Lloh13:
	adrp	x9, _characterWidth@GOTPAGE
Lloh14:
	ldr	x9, [x9, _characterWidth@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	asr	w9, w9, #1
	madd	w0, w9, w0, w8
	bl	_Vdp1ReadPattern16
Lloh16:
	adrp	x8, _currentPixel@GOTPAGE
Lloh17:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
	str	w0, [x8]
	and	w9, w23, w24
	cmp	w9, #1
	ccmp	w0, #15, #0, eq
	b.eq	LBB0_29
; %bb.9:
	and	w9, w22, #0x40
	orr	w9, w0, w9
	cbz	w9, LBB0_11
; %bb.10:
	orr	w9, w0, w21
	str	w9, [x8]
LBB0_11:
Lloh18:
	adrp	x8, _currentPixelIsVisible@GOTPAGE
Lloh19:
	ldr	x8, [x8, _currentPixelIsVisible@GOTPAGEOFF]
	mov	w9, #15
	b	LBB0_27
LBB0_12:
	tst	w22, #0x80
	cset	w25, eq
Lloh20:
	adrp	x9, _characterWidth@GOTPAGE
Lloh21:
	ldr	x9, [x9, _characterWidth@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	asr	w9, w9, #1
	madd	w0, w9, w0, w8
	bl	_Vdp1ReadPattern16
Lloh23:
	adrp	x24, _currentPixel@GOTPAGE
Lloh24:
	ldr	x24, [x24, _currentPixel@GOTPAGEOFF]
	str	w0, [x24]
	and	w8, w23, w25
	cmp	w8, #1
	ccmp	w0, #15, #0, eq
	b.eq	LBB0_29
; %bb.13:
	and	w8, w22, #0x40
	orr	w8, w0, w8
	cbz	w8, LBB0_26
; %bb.14:
	lsl	w9, w21, #3
Lloh25:
	adrp	x8, _Vdp1Ram@GOTPAGE
Lloh26:
	ldr	x8, [x8, _Vdp1Ram@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	add	w9, w9, w0, lsl #1
	and	w1, w9, #0x7fffe
	mov	x0, x8
	bl	_T1ReadWord
	str	w0, [x24]
	b	LBB0_26
LBB0_15:
	tst	w22, #0x80
	cset	w24, eq
	and	w22, w22, #0x40
Lloh28:
	adrp	x9, _characterWidth@GOTPAGE
Lloh29:
	ldr	x9, [x9, _characterWidth@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	madd	w0, w9, w0, w8
	bl	_Vdp1ReadPattern64
	and	w8, w23, w24
	cmp	w0, #63
	cset	w9, eq
	tst	w8, w9
	csel	w8, wzr, w0, ne
	orr	w9, w8, w22
	cmp	w9, #0
	csel	w9, w21, wzr, ne
Lloh31:
	adrp	x10, _currentPixel@GOTPAGE
Lloh32:
	ldr	x10, [x10, _currentPixel@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh33:
	str	w8, [x10]
Lloh34:
	adrp	x8, _currentPixelIsVisible@GOTPAGE
Lloh35:
	ldr	x8, [x8, _currentPixelIsVisible@GOTPAGEOFF]
	mov	w9, #63
	b	LBB0_27
LBB0_16:
	tst	w22, #0x80
	cset	w24, eq
Lloh36:
	adrp	x9, _characterWidth@GOTPAGE
Lloh37:
	ldr	x9, [x9, _characterWidth@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	madd	w0, w9, w0, w8
	bl	_Vdp1ReadPattern128
Lloh39:
	adrp	x8, _currentPixel@GOTPAGE
Lloh40:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
	str	w0, [x8]
	and	w9, w23, w24
	cmp	w9, #1
	b.ne	LBB0_18
; %bb.17:
	cmp	w0, #255
	b.eq	LBB0_29
LBB0_18:
	and	w9, w22, #0x40
	orr	w9, w0, w9
	cbz	w9, LBB0_20
; %bb.19:
	orr	w9, w0, w21
	str	w9, [x8]
LBB0_20:
Lloh41:
	adrp	x8, _currentPixelIsVisible@GOTPAGE
Lloh42:
	ldr	x8, [x8, _currentPixelIsVisible@GOTPAGEOFF]
	mov	w9, #127
	b	LBB0_27
LBB0_21:
	tst	w22, #0x80
	cset	w24, eq
Lloh43:
	adrp	x9, _characterWidth@GOTPAGE
Lloh44:
	ldr	x9, [x9, _characterWidth@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	madd	w0, w9, w0, w8
	bl	_Vdp1ReadPattern256
Lloh46:
	adrp	x8, _currentPixel@GOTPAGE
Lloh47:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
	str	w0, [x8]
	and	w9, w23, w24
	cmp	w9, #1
	b.ne	LBB0_23
; %bb.22:
	cmp	w0, #255
	b.eq	LBB0_29
LBB0_23:
	and	w9, w22, #0x40
Lloh48:
	adrp	x10, _currentPixelIsVisible@GOTPAGE
Lloh49:
	ldr	x10, [x10, _currentPixelIsVisible@GOTPAGEOFF]
	mov	w11, #255
Lloh50:
	str	w11, [x10]
	orr	w9, w0, w9
	cbz	w9, LBB0_28
; %bb.24:
	orr	w9, w0, w21
	b	LBB0_27
LBB0_25:
	tst	w22, #0x80
	cset	w22, eq
Lloh51:
	adrp	x9, _characterWidth@GOTPAGE
Lloh52:
	ldr	x9, [x9, _characterWidth@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	mul	w9, w0, w9
	add	w0, w8, w9, lsl #1
	bl	_Vdp1ReadPattern64k
Lloh54:
	adrp	x8, _currentPixel@GOTPAGE
Lloh55:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
Lloh56:
	str	w0, [x8]
	and	w8, w23, w22
	cmp	w8, #1
	mov	w8, #32767
	ccmp	w0, w8, #0, eq
	b.eq	LBB0_29
LBB0_26:
Lloh57:
	adrp	x8, _currentPixelIsVisible@GOTPAGE
Lloh58:
	ldr	x8, [x8, _currentPixelIsVisible@GOTPAGEOFF]
	mov	w9, #65535
LBB0_27:
	str	w9, [x8]
LBB0_28:
	mov	w0, #0
Lloh59:
	adrp	x8, _currentPixel@GOTPAGE
Lloh60:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w20, #0
	csel	w9, w21, w9, ne
	ldr	w10, [x19, #12]
	and	w10, w10, #0x8000
	orr	w9, w9, w10
	str	w9, [x8]
	b	LBB0_30
LBB0_29:
	mov	w0, #1
LBB0_30:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_25-LBB0_8)>>2
                                        ; -- End function
	.comm	_cmd,16,2                       ; @cmd
	.comm	_characterWidth,4,2             ; @characterWidth
	.comm	_characterHeight,4,2            ; @characterHeight
	.comm	_currentPixel,4,2               ; @currentPixel
	.comm	_currentPixelIsVisible,4,2      ; @currentPixelIsVisible
	.comm	_Vdp1Ram,4,2                    ; @Vdp1Ram
	.no_dead_strip	_getpixel
.subsections_via_symbols
