	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function putpixel
_putpixel:                              ## @putpixel
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_vdp1backframebuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_vdp1width@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	imull	%esi, %r12d
	movq	_cmd@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	testl	$256, %r13d                     ## imm = 0x100
	je	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	xorl	%r14d, %eax
	testb	$1, %al
	jne	LBB0_33
LBB0_2:
	testl	$1024, %r13d                    ## imm = 0x400
	je	LBB0_4
## %bb.3:
	movl	%r13d, %edi
	shrl	$9, %edi
	andl	$1, %edi
	callq	_PushUserClipping
LBB0_4:
	movq	_vdp1clipxstart@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jg	LBB0_33
## %bb.5:
	movq	_vdp1clipxend@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jle	LBB0_33
## %bb.6:
	movq	_vdp1clipystart@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_33
## %bb.7:
	movq	_vdp1clipyend@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_33
## %bb.8:
	testb	$4, 1(%r15)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_PopUserClipping
LBB0_10:
	testb	$64, %r13b
	jne	LBB0_12
## %bb.11:
	movq	_currentPixel@GOTPCREL(%rip), %rax
	movq	_currentPixelIsVisible@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_33
LBB0_12:
	addl	%r14d, %r12d
	movslq	%r12d, %r12
	movl	(%r15), %eax
	movl	%eax, %ecx
	andl	$7, %ecx
	cmpl	$4, %ecx
	ja	LBB0_21
## %bb.13:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_14:
	andl	$64, %r13d
	movq	_currentPixel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %r13d
	jne	LBB0_30
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %eax
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_27
	jmp	LBB0_31
LBB0_16:
	shrl	$3, %eax
	andl	$7, %eax
	cmpl	$5, %eax
	je	LBB0_28
## %bb.17:
	cmpl	$1, %eax
	je	LBB0_28
## %bb.18:
	movq	_leftColumnColor@GOTPCREL(%rip), %rax
	cmpl	$16, 8(%rax)
	jne	LBB0_28
## %bb.19:
	cmpl	$16, (%rax)
	jne	LBB0_28
## %bb.20:
	movl	16(%rax), %ecx
	addl	$-16, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovgl	%ecx, %eax
	movq	_currentPixel@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_30
LBB0_21:
	movq	_leftColumnColor@GOTPCREL(%rip), %rax
	movl	16(%rax), %ecx
	andl	$31, %ecx
	movl	(%rax), %edx
	movl	8(%rax), %eax
	andl	$31, %eax
	shll	$5, %eax
	orl	%ecx, %eax
	shll	$10, %edx
	movzwl	%dx, %edi
	orl	%eax, %edi
	orl	$32768, %edi                    ## imm = 0x8000
	movq	_currentPixel@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edx
	callq	_alphablend16
	jmp	LBB0_29
LBB0_22:
	movq	_currentPixel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_30
LBB0_23:
	movq	_currentPixel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	andl	$-49681, %eax                   ## imm = 0xFFFF3DEF
	jmp	LBB0_29
LBB0_24:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%r12,4), %edi
	movq	_currentPixel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	$32768, %edi                    ## imm = 0x8000
	je	LBB0_26
## %bb.25:
	movl	%eax, %esi
	movl	$128, %edx
	callq	_alphablend16
	orl	$32768, %eax                    ## imm = 0x8000
LBB0_26:
	movl	%eax, (%rbx,%r12,4)
	testl	$32768, %eax                    ## imm = 0x8000
	je	LBB0_31
LBB0_27:
	movq	_vdp1draw_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	$1, (%rcx,%rax,4)
	jmp	LBB0_33
LBB0_28:
	movq	_currentPixel@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	andl	$31, %edi
	movq	_leftColumnColor@GOTPCREL(%rip), %r15
	movl	16(%r15), %esi
	callq	_gouraudAdjust
	movl	%eax, %r14d
	andl	$31, %r14d
	movl	(%r13), %edi
	shrl	$5, %edi
	andl	$31, %edi
	movl	8(%r15), %esi
	callq	_gouraudAdjust
	movl	%eax, %ebx
	andl	$31, %ebx
	shll	$5, %ebx
	orl	%r14d, %ebx
	movl	(%r13), %edi
	shrl	$10, %edi
	andl	$31, %edi
	movl	(%r15), %esi
	callq	_gouraudAdjust
	shll	$10, %eax
	movzwl	%ax, %eax
	orl	%ebx, %eax
LBB0_29:
	orl	$32768, %eax                    ## imm = 0x8000
LBB0_30:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_27
LBB0_31:
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movl	%eax, -56(%rbp)
	movq	_vdp1spritetype@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-60(%rbp), %r8
	callq	_Vdp1ProcessSpritePixel
	movq	_vdp1draw_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-52(%rbp), %rcx
	movl	$1, (%rax,%rcx,4)
LBB0_33:
	addq	$24, %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_14, LBB0_14-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_vdp1backframebuffer,8,3        ## @vdp1backframebuffer
	.comm	_vdp1width,4,2                  ## @vdp1width
	.comm	_cmd,8,2                        ## @cmd
	.comm	_vdp1clipxstart,4,2             ## @vdp1clipxstart
	.comm	_vdp1clipxend,4,2               ## @vdp1clipxend
	.comm	_vdp1clipystart,4,2             ## @vdp1clipystart
	.comm	_vdp1clipyend,4,2               ## @vdp1clipyend
	.comm	_currentPixel,4,2               ## @currentPixel
	.comm	_currentPixelIsVisible,4,2      ## @currentPixelIsVisible
	.comm	_leftColumnColor,24,3           ## @leftColumnColor
	.comm	_vdp1draw_info,16,3             ## @vdp1draw_info
	.comm	_vdp1spritetype,4,2             ## @vdp1spritetype
	.no_dead_strip	_putpixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function putpixel
_putpixel:                              ; @putpixel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _vdp1backframebuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vdp1backframebuffer@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _vdp1width@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vdp1width@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x23, _cmd@GOTPAGE
Lloh7:
	ldr	x23, [x23, _cmd@GOTPAGEOFF]
	ldr	w22, [x23]
	tbz	w22, #8, LBB0_2
; %bb.1:
	eor	w8, w19, w20
	tbnz	w8, #0, LBB0_22
LBB0_2:
	tbz	w22, #10, LBB0_4
; %bb.3:
	ubfx	w0, w22, #9, #1
	bl	_PushUserClipping
LBB0_4:
Lloh8:
	adrp	x8, _vdp1clipxstart@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vdp1clipxstart@GOTPAGEOFF]
Lloh10:
	adrp	x9, _vdp1clipxend@GOTPAGE
Lloh11:
	ldr	x9, [x9, _vdp1clipxend@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _vdp1clipystart@GOTPAGE
Lloh15:
	ldr	x10, [x10, _vdp1clipystart@GOTPAGEOFF]
Lloh16:
	adrp	x11, _vdp1clipyend@GOTPAGE
Lloh17:
	ldr	x11, [x11, _vdp1clipyend@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	ldr	w11, [x11]
	cmp	w8, w20
	ccmp	w9, w20, #4, le
	ccmp	w10, w19, #0, gt
	ccmp	w11, w19, #4, le
	b.le	LBB0_22
; %bb.5:
	ldrb	w8, [x23, #1]
	tbz	w8, #2, LBB0_7
; %bb.6:
	bl	_PopUserClipping
LBB0_7:
	tbnz	w22, #6, LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _currentPixel@GOTPAGE
Lloh21:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _currentPixelIsVisible@GOTPAGE
Lloh24:
	ldr	x9, [x9, _currentPixelIsVisible@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
LBB0_9:
	madd	w8, w24, w19, w20
	sxtw	x20, w8
	ldr	w8, [x23]
	and	x9, x8, #0x7
	cmp	w9, #4
	b.hi	LBB0_13
; %bb.10:
Lloh26:
	adrp	x10, lJTI0_0@PAGE
Lloh27:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_11
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_11:
	and	w8, w22, #0x40
Lloh28:
	adrp	x9, _currentPixel@GOTPAGE
Lloh29:
	ldr	x9, [x9, _currentPixel@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x9]
	orr	w8, w1, w8
	cbnz	w8, LBB0_19
; %bb.12:
	ldr	w1, [x21, x20, lsl #2]
	tbnz	w1, #15, LBB0_16
	b	LBB0_20
LBB0_13:
Lloh31:
	adrp	x8, _leftColumnColor@GOTPAGE
Lloh32:
	ldr	x8, [x8, _leftColumnColor@GOTPAGEOFF]
	ldr	w9, [x8, #16]
	and	w9, w9, #0x1f
	ldr	w10, [x8, #8]
	ldr	w8, [x8]
	bfi	w9, w10, #5, #5
	bfi	w9, w8, #10, #5
	orr	w0, w9, #0x8000
Lloh33:
	adrp	x8, _currentPixel@GOTPAGE
Lloh34:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	b	LBB0_18
LBB0_14:
Lloh36:
	adrp	x8, _currentPixel@GOTPAGE
Lloh37:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	str	w1, [x21, x20, lsl #2]
	tbz	w1, #15, LBB0_20
	b	LBB0_16
LBB0_15:
Lloh39:
	adrp	x8, _currentPixel@GOTPAGE
Lloh40:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	mov	w9, #-49681
	and	w8, w9, w8, asr #1
	orr	w1, w8, #0x8000
	str	w1, [x21, x20, lsl #2]
	tbz	w1, #15, LBB0_20
LBB0_16:
Lloh42:
	adrp	x8, _vdp1draw_info@GOTPAGE
Lloh43:
	ldr	x8, [x8, _vdp1draw_info@GOTPAGEOFF]
	ldp	x9, x8, [x8]
	ldr	x8, [x8]
	mov	w10, #1
	str	w10, [x9, x8, lsl #2]
	b	LBB0_22
LBB0_17:
	ldr	w0, [x21, x20, lsl #2]
Lloh44:
	adrp	x8, _currentPixel@GOTPAGE
Lloh45:
	ldr	x8, [x8, _currentPixel@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	tbz	w0, #15, LBB0_19
LBB0_18:
	mov	w2, #128
	bl	_alphablend16
	orr	w1, w0, #0x8000
LBB0_19:
	str	w1, [x21, x20, lsl #2]
	tbnz	w1, #15, LBB0_16
LBB0_20:
	cbz	w1, LBB0_22
; %bb.21:
	str	w1, [sp, #12]
Lloh47:
	adrp	x8, _vdp1spritetype@GOTPAGE
Lloh48:
	ldr	x8, [x8, _vdp1spritetype@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x4, sp
	bl	_Vdp1ProcessSpritePixel
Lloh50:
	adrp	x8, _vdp1draw_info@GOTPAGE
Lloh51:
	ldr	x8, [x8, _vdp1draw_info@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	ldrsw	x9, [sp, #4]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
LBB0_22:
	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
	add	sp, sp, #80
	ret
LBB0_23:
	ubfx	w8, w8, #3, #3
Lloh53:
	adrp	x22, _leftColumnColor@GOTPAGE
Lloh54:
	ldr	x22, [x22, _leftColumnColor@GOTPAGEOFF]
	cmp	w8, #5
	b.eq	LBB0_25
; %bb.24:
	ldr	w9, [x22, #8]
	ldr	w10, [x22]
	cmp	w8, #1
	ccmp	w9, #16, #0, ne
	ccmp	w10, #16, #0, eq
	b.eq	LBB0_26
LBB0_25:
Lloh55:
	adrp	x23, _currentPixel@GOTPAGE
Lloh56:
	ldr	x23, [x23, _currentPixel@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w0, w8, #0x1f
	ldr	w1, [x22, #16]
	bl	_gouraudAdjust
	and	w24, w0, #0x1f
	ldr	w8, [x23]
	ubfx	w0, w8, #5, #5
	ldr	w1, [x22, #8]
	bl	_gouraudAdjust
	mov	x19, x0
	ldr	w8, [x23]
	ubfx	w0, w8, #10, #5
	ldr	w1, [x22]
	bl	_gouraudAdjust
	bfi	w24, w19, #5, #5
	bfi	w24, w0, #10, #5
	orr	w1, w24, #0x8000
	str	w1, [x21, x20, lsl #2]
	tbz	w1, #15, LBB0_20
	b	LBB0_16
LBB0_26:
	ldr	w8, [x22, #16]
	sub	w8, w8, #16
Lloh57:
	adrp	x9, _currentPixel@GOTPAGE
Lloh58:
	ldr	x9, [x9, _currentPixel@GOTPAGEOFF]
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	ldr	w10, [x9]
	add	w1, w8, w10
	str	w1, [x9]
	str	w1, [x21, x20, lsl #2]
	tbz	w1, #15, LBB0_20
	b	LBB0_16
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
	.byte	(LBB0_23-LBB0_11)>>2
                                        ; -- End function
	.comm	_vdp1backframebuffer,8,3        ; @vdp1backframebuffer
	.comm	_vdp1width,4,2                  ; @vdp1width
	.comm	_cmd,8,2                        ; @cmd
	.comm	_vdp1clipxstart,4,2             ; @vdp1clipxstart
	.comm	_vdp1clipxend,4,2               ; @vdp1clipxend
	.comm	_vdp1clipystart,4,2             ; @vdp1clipystart
	.comm	_vdp1clipyend,4,2               ; @vdp1clipyend
	.comm	_currentPixel,4,2               ; @currentPixel
	.comm	_currentPixelIsVisible,4,2      ; @currentPixelIsVisible
	.comm	_leftColumnColor,24,3           ; @leftColumnColor
	.comm	_vdp1draw_info,16,3             ; @vdp1draw_info
	.comm	_vdp1spritetype,4,2             ; @vdp1spritetype
	.no_dead_strip	_putpixel
.subsections_via_symbols
