	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %ebx
	movl	%edi, %r13d
	movl	(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	movq	%rdx, %rsi
	callq	_CheckDil
	testq	%rax, %rax
	jne	LBB0_28
## %bb.1:
	movq	_vdp1interlace@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movq	_vdp1width@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	imull	%eax, %r14d
	addl	%r13d, %r14d
	cmpl	$262143, %r14d                  ## imm = 0x3FFFF
	jg	LBB0_28
## %bb.2:
	testl	$256, -44(%rbp)                 ## 4-byte Folded Reload
                                        ## imm = 0x100
	je	LBB0_4
## %bb.3:
	xorl	%r13d, %eax
	testb	$1, %al
	jne	LBB0_28
LBB0_4:
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_IsClipped
	testq	%rax, %rax
	jne	LBB0_28
## %bb.5:
	movslq	%r14d, %rbx
	movl	(%r15), %ecx
	movq	_currentPixel@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	$32768, %ecx                    ## imm = 0x8000
	je	LBB0_8
## %bb.6:
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	$32768, %eax                    ## imm = 0x8000
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	(%rcx,%rbx,4), %eax
	jmp	LBB0_27
LBB0_8:
	testb	$64, -44(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	movq	_currentPixelIsVisible@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_28
LBB0_10:
	movl	%ecx, %edx
	andl	$7, %edx
	cmpl	$4, %edx
	ja	LBB0_18
## %bb.11:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_12:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	andl	$64, %ecx
	orl	%eax, %ecx
	jne	LBB0_27
	jmp	LBB0_28
LBB0_13:
	shrl	$3, %ecx
	andl	$7, %ecx
	cmpl	$5, %ecx
	je	LBB0_25
## %bb.14:
	cmpl	$1, %ecx
	je	LBB0_25
## %bb.15:
	movq	_leftColumnColor@GOTPCREL(%rip), %rcx
	cmpl	$16, 8(%rcx)
	jne	LBB0_25
## %bb.16:
	cmpl	$16, (%rcx)
	jne	LBB0_25
## %bb.17:
	movl	16(%rcx), %ecx
	addl	$-16, %ecx
	xorl	%edx, %edx
	testl	%ecx, %ecx
	cmovgl	%ecx, %edx
	addl	%edx, %eax
	movl	%eax, (%r13)
	jmp	LBB0_27
LBB0_18:
	movq	_leftColumnColor@GOTPCREL(%rip), %rcx
	movl	16(%rcx), %edx
	andl	$31, %edx
	movl	(%rcx), %esi
	movl	8(%rcx), %ecx
	andl	$31, %ecx
	shll	$5, %ecx
	orl	%edx, %ecx
	shll	$10, %esi
	movzwl	%si, %edi
	orl	%ecx, %edi
	orl	$32768, %edi                    ## imm = 0x8000
	jmp	LBB0_23
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %edi
	testl	$32768, %edi                    ## imm = 0x8000
	je	LBB0_28
## %bb.20:
	xorl	%esi, %esi
	jmp	LBB0_24
LBB0_21:
	sarl	%eax
	andl	$-49681, %eax                   ## imm = 0xFFFF3DEF
	jmp	LBB0_26
LBB0_22:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rbx,4), %edi
	testl	$32768, %edi                    ## imm = 0x8000
	je	LBB0_27
LBB0_23:
	movl	%eax, %esi
LBB0_24:
	movl	$128, %edx
	callq	_alphablend16
	jmp	LBB0_26
LBB0_25:
	andl	$31, %eax
	movq	_leftColumnColor@GOTPCREL(%rip), %r14
	movl	16(%r14), %esi
	movl	%eax, %edi
	callq	_gouraudAdjust
	movl	%eax, %r15d
	andl	$31, %r15d
	movl	(%r13), %edi
	shrl	$5, %edi
	andl	$31, %edi
	movl	8(%r14), %esi
	callq	_gouraudAdjust
	movl	%eax, %r12d
	andl	$31, %r12d
	shll	$5, %r12d
	orl	%r15d, %r12d
	movl	(%r13), %edi
	shrl	$10, %edi
	andl	$31, %edi
	movl	(%r14), %esi
	callq	_gouraudAdjust
	shll	$10, %eax
	movzwl	%ax, %eax
	orl	%r12d, %eax
LBB0_26:
	orl	$32768, %eax                    ## imm = 0x8000
LBB0_27:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
LBB0_28:
	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_12, LBB0_12-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_19
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_vdp1interlace,4,2              ## @vdp1interlace
	.comm	_vdp1width,4,2                  ## @vdp1width
	.comm	_currentPixel,4,2               ## @currentPixel
	.comm	_currentPixelIsVisible,4,2      ## @currentPixelIsVisible
	.comm	_leftColumnColor,24,3           ## @leftColumnColor
	.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:
	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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w24, [x3]
	mov	x0, x1
	mov	x1, x2
	bl	_CheckDil
	cbnz	x0, LBB0_26
; %bb.1:
Lloh0:
	adrp	x8, _vdp1interlace@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vdp1interlace@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w8, w22, w8
Lloh3:
	adrp	x9, _vdp1width@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vdp1width@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	madd	w25, w9, w8, w23
	cmp	w25, #64, lsl #12               ; =262144
	b.ge	LBB0_26
; %bb.2:
	tbz	w24, #8, LBB0_4
; %bb.3:
	eor	w8, w8, w23
	tbnz	w8, #0, LBB0_26
LBB0_4:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_IsClipped
	cbnz	x0, LBB0_26
; %bb.5:
	sxtw	x21, w25
	ldr	w8, [x20]
Lloh6:
	adrp	x22, _currentPixel@GOTPAGE
Lloh7:
	ldr	x22, [x22, _currentPixel@GOTPAGEOFF]
	ldr	w1, [x22]
	tbz	w8, #15, LBB0_8
; %bb.6:
	cbz	w1, LBB0_8
; %bb.7:
	ldr	w8, [x19, x21, lsl #2]
	orr	w1, w8, #0x8000
	b	LBB0_25
LBB0_8:
	tbnz	w24, #6, LBB0_10
; %bb.9:
Lloh8:
	adrp	x9, _currentPixelIsVisible@GOTPAGE
Lloh9:
	ldr	x9, [x9, _currentPixelIsVisible@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_26
LBB0_10:
	and	w9, w8, #0x7
	cmp	w9, #4
	b.hi	LBB0_18
; %bb.11:
Lloh11:
	adrp	x10, lJTI0_0@PAGE
Lloh12:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_12
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_12:
	and	w8, w24, #0x40
	orr	w8, w1, w8
	cbnz	w8, LBB0_25
	b	LBB0_26
LBB0_13:
	ubfx	w8, w8, #3, #3
Lloh13:
	adrp	x23, _leftColumnColor@GOTPAGE
Lloh14:
	ldr	x23, [x23, _leftColumnColor@GOTPAGEOFF]
	cmp	w8, #5
	b.eq	LBB0_24
; %bb.14:
	cmp	w8, #1
	b.eq	LBB0_24
; %bb.15:
	ldr	w8, [x23, #8]
	cmp	w8, #16
	b.ne	LBB0_24
; %bb.16:
	ldr	w8, [x23]
	cmp	w8, #16
	b.ne	LBB0_24
; %bb.17:
	ldr	w8, [x23, #16]
	sub	w8, w8, #16
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	add	w1, w8, w1
	str	w1, [x22]
	b	LBB0_25
LBB0_18:
Lloh15:
	adrp	x8, _leftColumnColor@GOTPAGE
Lloh16:
	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
	b	LBB0_23
LBB0_19:
	ldr	w0, [x19, x21, lsl #2]
	tbz	w0, #15, LBB0_26
; %bb.20:
	mov	w1, #0
	b	LBB0_23
LBB0_21:
	mov	w8, #-49681
	and	w8, w8, w1, asr #1
	orr	w1, w8, #0x8000
	b	LBB0_25
LBB0_22:
	ldr	w0, [x19, x21, lsl #2]
	tbz	w0, #15, LBB0_25
LBB0_23:
	mov	w2, #128
	bl	_alphablend16
	orr	w1, w0, #0x8000
	b	LBB0_25
LBB0_24:
	and	w0, w1, #0x1f
	ldr	w1, [x23, #16]
	bl	_gouraudAdjust
	and	w24, w0, #0x1f
	ldr	w8, [x22]
	ubfx	w0, w8, #5, #5
	ldr	w1, [x23, #8]
	bl	_gouraudAdjust
	mov	x20, x0
	ldr	w8, [x22]
	ubfx	w0, w8, #10, #5
	ldr	w1, [x23]
	bl	_gouraudAdjust
	bfi	w24, w20, #5, #5
	bfi	w24, w0, #10, #5
	orr	w1, w24, #0x8000
LBB0_25:
	str	w1, [x19, x21, lsl #2]
LBB0_26:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
	.byte	(LBB0_21-LBB0_12)>>2
	.byte	(LBB0_22-LBB0_12)>>2
	.byte	(LBB0_13-LBB0_12)>>2
                                        ; -- End function
	.comm	_vdp1interlace,4,2              ; @vdp1interlace
	.comm	_vdp1width,4,2                  ; @vdp1width
	.comm	_currentPixel,4,2               ; @currentPixel
	.comm	_currentPixelIsVisible,4,2      ; @currentPixelIsVisible
	.comm	_leftColumnColor,24,3           ; @leftColumnColor
	.no_dead_strip	_putpixel
.subsections_via_symbols
