	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoVideoWrite                 ## -- Begin function PicoVideoWrite
	.p2align	4, 0x90
_PicoVideoWrite:                        ## @PicoVideoWrite
	.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, %r15d
	andl	$28, %edi
	cmpl	$4, %edi
	je	LBB0_21
## %bb.1:
	testl	%edi, %edi
	jne	LBB0_45
## %bb.2:
	movq	_Pico@GOTPCREL(%rip), %rbx
	cmpl	$223, 8(%rbx)
	jg	LBB0_8
## %bb.3:
	movq	16(%rbx), %rax
	testb	$64, 4(%rax)
	je	LBB0_8
## %bb.4:
	cmpl	$0, 24(%rbx)
	jne	LBB0_7
## %bb.5:
	movl	$-1073741584, %eax              ## imm = 0xC00000F0
	andl	28(%rbx), %eax
	cmpl	$1073741840, %eax               ## imm = 0x40000010
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movl	32(%rbx), %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpw	%r15w, (%rax,%rcx,2)
	je	LBB0_8
LBB0_7:
	xorl	%edi, %edi
	callq	_DrawSync
LBB0_8:
	cmpl	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_CommandChange
	movl	$0, 24(%rbx)
LBB0_10:
	testb	$-128, 28(%rbx)
	je	LBB0_13
## %bb.11:
	movq	16(%rbx), %rax
	testb	$16, 4(%rax)
	je	LBB0_13
## %bb.12:
	movl	92(%rax), %eax
	andl	$-64, %eax
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.46:
	movzwl	%r15w, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DmaFill                        ## TAILCALL
LBB0_21:
	movq	_Pico@GOTPCREL(%rip), %r12
	cmpl	$0, 24(%r12)
	movzwl	%r15w, %ebx
	je	LBB0_25
## %bb.22:
	testb	$-128, %bl
	je	LBB0_24
## %bb.23:
	xorl	%edi, %edi
	callq	_DrawSync
LBB0_24:
	movw	%r15w, 28(%r12)
	movl	$0, 24(%r12)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CommandChange                  ## TAILCALL
LBB0_13:
	movl	36(%rbx), %eax
	testb	$8, %al
	jne	LBB0_20
## %bb.14:
	movq	16(%rbx), %rcx
	testb	$64, 4(%rcx)
	je	LBB0_20
## %bb.15:
	movq	_PicoOpt@GOTPCREL(%rip), %rcx
	movq	_POPT_DIS_VDP_FIFO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	jne	LBB0_20
## %bb.16:
	andl	$-513, %eax                     ## imm = 0xFDFF
	movl	%eax, 36(%rbx)
	movl	40(%rbx), %ecx
	leal	1(%rcx), %r9d
	movl	%r9d, 40(%rbx)
	cmpl	$3, %ecx
	jl	LBB0_19
## %bb.17:
	orl	$256, %eax                      ## imm = 0x100
	movl	%eax, 36(%rbx)
	cmpl	$5, %r9d
	movl	$4, %r9d
	jb	LBB0_19
## %bb.18:
	movl	$32, %edi
	callq	_SekCyclesBurnRun
	movl	40(%rbx), %r9d
LBB0_19:
	movq	_EL_ASVDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzwl	%r15w, %edx
	movzwl	32(%rbx), %ecx
	movl	44(%rbx), %r8d
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elprintf
LBB0_20:
	movzwl	%r15w, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VideoWrite                     ## TAILCALL
LBB0_25:
	movl	%ebx, %eax
	andl	$49152, %eax                    ## imm = 0xC000
	cmpl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_44
## %bb.26:
	movl	%ebx, %r14d
	shrl	$8, %r14d
	andl	$31, %r14d
	movq	16(%r12), %rax
	movl	(%rax,%r14,4), %r13d
	movl	$0, 44(%r12)
	cmpl	$11, %r14d
	jb	LBB0_29
## %bb.27:
	testb	$4, 4(%rax)
	jne	LBB0_36
## %bb.28:
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
LBB0_44:
	movw	%r15w, 30(%r12)
	movl	$1, 24(%r12)
	jmp	LBB0_45
LBB0_29:
	testb	$64, %bl
	jne	LBB0_36
## %bb.30:
	cmpl	$1, %r14d
	jne	LBB0_36
## %bb.31:
	xorl	%eax, %eax
	callq	_SekCyclesDone
	movq	_line_base_cycles@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	xorl	%edi, %edi
	cmpl	$99, %eax
	setl	%dil
	callq	_DrawSync
	movzbl	%r15b, %eax
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
	jmp	LBB0_32
LBB0_36:
	xorl	%edi, %edi
	callq	_DrawSync
	movzbl	%r15b, %eax
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
	cmpl	$12, %r14d
	ja	LBB0_45
## %bb.37:
	leaq	L_.str.2(%rip), %rsi
	movw	$4, %ax
	movl	$4, %edi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r14,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_32:
	leaq	L_.str.3(%rip), %rsi
	movw	$5, %ax
	movl	$5, %edi
LBB0_33:
	movq	_EL_INTSW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %ecx
	xorl	%r13d, %r13d
	btl	%edi, %ecx
	setb	%r13b
	xorl	%ebx, %ebx
	btl	%eax, %r15d
	setb	%bl
	xorl	%eax, %eax
	movq	%rsi, %r15
	movl	%edi, %r14d
	callq	_SekCyclesDone
	movl	48(%r12), %ecx
	xorl	%r9d, %r9d
	btl	%r14d, %ecx
	setb	%r9b
	movq	_SekPc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_elprintf
	xorl	%eax, %eax
	callq	_SekShouldInterrupt
	testl	%eax, %eax
	je	LBB0_34
LBB0_45:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	16(%r12), %rax
	movl	48(%r12), %ebx
	movl	4(%rax), %ecx
	andl	%ebx, %ecx
	testb	$32, %cl
	je	LBB0_35
## %bb.42:
	movl	$6, %edi
	callq	_SekInterrupt
	jmp	LBB0_43
LBB0_38:
	cmpl	%ebx, %r13d
	je	LBB0_45
## %bb.39:
	movq	_PDRAW_SPRITES_MOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rendstatus@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_45
LBB0_40:
	xorl	%ebx, %r13d
	testb	$8, %r13b
	je	LBB0_45
## %bb.41:
	movl	$2, 12(%r12)
	jmp	LBB0_45
LBB0_35:
	andl	(%rax), %ebx
	andl	$16, %ebx
	movl	%ebx, %edi
	shrl	$2, %edi
	callq	_SekInterrupt
	testl	%ebx, %ebx
	je	LBB0_45
LBB0_43:
	movl	$24, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SekEndRun                      ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
LJTI0_0:
	.long	L0_0_set_33
	.long	L0_0_set_32
	.long	L0_0_set_45
	.long	L0_0_set_45
	.long	L0_0_set_45
	.long	L0_0_set_38
	.long	L0_0_set_45
	.long	L0_0_set_45
	.long	L0_0_set_45
	.long	L0_0_set_45
	.long	L0_0_set_45
	.long	L0_0_set_45
	.long	L0_0_set_40
	.end_data_region
                                        ## -- End function
	.comm	_Pico,56,3                      ## @Pico
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_DIS_VDP_FIFO,4,2          ## @POPT_DIS_VDP_FIFO
	.comm	_EL_ASVDP,4,2                   ## @EL_ASVDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VDP data write: %04x [%06x] {%i} #%i @ %06x"

	.comm	_SekPc,4,2                      ## @SekPc
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
L_.str.1:                               ## @.str.1
	.asciz	"%02x written to reg %02x in SMS mode @ %06x"

	.comm	_line_base_cycles,4,2           ## @line_base_cycles
	.comm	_EL_INTSW,4,2                   ## @EL_INTSW
L_.str.2:                               ## @.str.2
	.asciz	"hint_onoff: %i->%i [%i] pend=%i @ %06x"

L_.str.3:                               ## @.str.3
	.asciz	"vint_onoff: %i->%i [%i] pend=%i @ %06x"

	.comm	_PDRAW_SPRITES_MOVED,4,2        ## @PDRAW_SPRITES_MOVED
	.comm	_rendstatus,4,2                 ## @rendstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoVideoWrite                 ; -- Begin function PicoVideoWrite
	.p2align	2
_PicoVideoWrite:                        ; @PicoVideoWrite
	.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
	and	w8, w0, #0x1c
	cmp	w8, #4
	b.eq	LBB0_14
; %bb.1:
	cbnz	w8, LBB0_36
; %bb.2:
Lloh0:
	adrp	x20, _Pico@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Pico@GOTPAGEOFF]
	ldr	w8, [x20, #8]
	cmp	w8, #223
	b.gt	LBB0_8
; %bb.3:
	ldr	x8, [x20, #16]
	ldrb	w8, [x8, #4]
	tbz	w8, #6, LBB0_8
; %bb.4:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_7
; %bb.5:
	ldr	w8, [x20, #28]
	and	w8, w8, #0xfffffff0
	and	w8, w8, #0xc00000ff
	mov	w9, #16
	movk	w9, #16384, lsl #16
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	w9, [x20, #32]
	asr	w9, w9, #1
	ldrh	w8, [x8, w9, sxtw #1]
	cmp	w8, w19
	b.eq	LBB0_8
LBB0_7:
	mov	w0, #0
	bl	_DrawSync
LBB0_8:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_10
; %bb.9:
	bl	_CommandChange
	str	wzr, [x20, #24]
LBB0_10:
	ldrb	w8, [x20, #28]
	tbz	w8, #7, LBB0_18
; %bb.11:
	ldr	x8, [x20, #16]
	ldrb	w9, [x8, #4]
	tbz	w9, #4, LBB0_18
; %bb.12:
	ldr	w8, [x8, #92]
	and	w8, w8, #0xffffffc0
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.13:
	mov	x0, x19
	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
	b	_DmaFill
LBB0_14:
Lloh2:
	adrp	x23, _Pico@GOTPAGE
Lloh3:
	ldr	x23, [x23, _Pico@GOTPAGEOFF]
	ldr	w8, [x23, #24]
	cbz	w8, LBB0_24
; %bb.15:
	tbz	w19, #7, LBB0_17
; %bb.16:
	mov	w0, #0
	bl	_DrawSync
LBB0_17:
	strh	w19, [x23, #28]
	str	wzr, [x23, #24]
	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
	b	_CommandChange
LBB0_18:
	ldr	w8, [x20, #36]
	tbnz	w8, #3, LBB0_41
; %bb.19:
	ldr	x9, [x20, #16]
	ldrb	w9, [x9, #4]
	tbz	w9, #6, LBB0_41
; %bb.20:
Lloh4:
	adrp	x9, _PicoOpt@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PicoOpt@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _POPT_DIS_VDP_FIFO@GOTPAGE
Lloh8:
	ldr	x10, [x10, _POPT_DIS_VDP_FIFO@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_41
; %bb.21:
	and	w9, w8, #0xfffffdff
	ldr	w10, [x20, #40]
	add	w8, w10, #1
	stp	w9, w8, [x20, #36]
	cmp	w10, #3
	b.lt	LBB0_40
; %bb.22:
	orr	w9, w9, #0x100
	str	w9, [x20, #36]
	cmp	w8, #5
	b.lo	LBB0_39
; %bb.23:
	mov	w0, #32
	bl	_SekCyclesBurnRun
	ldr	w8, [x20, #40]
	b	LBB0_40
LBB0_24:
	and	w8, w19, #0xc000
	cmp	w8, #8, lsl #12                 ; =32768
	b.ne	LBB0_28
; %bb.25:
	ubfx	w20, w19, #8, #5
	ldr	x8, [x23, #16]
	ldr	w22, [x8, w20, uxtw #2]
	str	wzr, [x23, #44]
	cmp	w20, #11
	b.lo	LBB0_29
; %bb.26:
	ldrb	w8, [x8, #4]
	tbnz	w8, #2, LBB0_32
; %bb.27:
Lloh10:
	adrp	x8, _EL_ANOMALY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EL_ANOMALY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _SekPc@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh17:
	ldr	w4, [x8]
	mov	x2, x19
	mov	x3, x20
	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
	b	_elprintf
LBB0_28:
	strh	w19, [x23, #30]
	mov	w8, #1
	str	w8, [x23, #24]
	b	LBB0_36
LBB0_29:
	tbnz	w19, #6, LBB0_32
; %bb.30:
	cmp	w20, #1
	b.ne	LBB0_32
; %bb.31:
	bl	_SekCyclesDone
Lloh18:
	adrp	x8, _line_base_cycles@GOTPAGE
Lloh19:
	ldr	x8, [x8, _line_base_cycles@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	sub	w8, w0, w8
	cmp	w8, #99
	cset	w0, lt
	bl	_DrawSync
	and	w8, w19, #0xff
	ldr	x9, [x23, #16]
	str	w8, [x9, x20, lsl #2]
	b	LBB0_34
LBB0_32:
	mov	w0, #0
	bl	_DrawSync
	and	w8, w19, #0xff
	ldr	x9, [x23, #16]
	str	w8, [x9, x20, lsl #2]
	cmp	w20, #12
	b.hi	LBB0_36
; %bb.33:
Lloh21:
	adrp	x21, l_.str.2@PAGE
Lloh22:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	w24, #4
Lloh23:
	adrp	x8, lJTI0_0@PAGE
Lloh24:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_34
	ldrb	w10, [x8, x20]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_34:
Lloh25:
	adrp	x21, l_.str.3@PAGE
Lloh26:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	w24, #5
LBB0_35:
Lloh27:
	adrp	x8, _EL_INTSW@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EL_INTSW@GOTPAGEOFF]
Lloh29:
	ldr	w20, [x8]
	lsr	w8, w22, w24
	and	w22, w8, #0x1
	lsr	w8, w19, w24
	and	w19, w8, #0x1
	bl	_SekCyclesDone
	mov	x4, x0
	ldr	w8, [x23, #48]
	lsr	w8, w8, w24
	and	w8, w8, #0x1
Lloh30:
	adrp	x9, _SekPc@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SekPc@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	bl	_elprintf
	bl	_SekShouldInterrupt
	cbz	w0, LBB0_37
LBB0_36:
	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_37:
	ldr	x8, [x23, #16]
	ldr	w10, [x8, #4]
	ldr	w9, [x23, #48]
	and	w10, w10, w9
	tbz	w10, #5, LBB0_46
; %bb.38:
	mov	w0, #6
	bl	_SekInterrupt
	b	LBB0_47
LBB0_39:
	mov	w8, #4
LBB0_40:
Lloh33:
	adrp	x9, _EL_ASVDP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _EL_ASVDP@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x9]
	ldrh	w3, [x20, #32]
	ldr	w4, [x20, #44]
Lloh36:
	adrp	x9, _SekPc@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SekPc@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	stp	x8, x9, [sp]
	mov	x2, x19
	bl	_elprintf
LBB0_41:
	mov	x0, x19
	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
	b	_VideoWrite
LBB0_42:
	cmp	w22, w19
	b.eq	LBB0_36
; %bb.43:
Lloh41:
	adrp	x8, _PDRAW_SPRITES_MOVED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PDRAW_SPRITES_MOVED@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _rendstatus@GOTPAGE
Lloh45:
	ldr	x9, [x9, _rendstatus@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	LBB0_36
LBB0_44:
	eor	w8, w22, w19
	tbz	w8, #3, LBB0_36
; %bb.45:
	mov	w8, #2
	str	w8, [x23, #12]
	b	LBB0_36
LBB0_46:
	ldr	w8, [x8]
	and	w19, w9, w8
	and	w8, w19, #0x10
	lsr	w0, w8, #2
	bl	_SekInterrupt
	tbz	w19, #4, LBB0_36
LBB0_47:
	mov	w0, #24
	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
	b	_SekEndRun
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_35-LBB0_34)>>2
	.byte	(LBB0_34-LBB0_34)>>2
	.byte	(LBB0_36-LBB0_34)>>2
	.byte	(LBB0_36-LBB0_34)>>2
	.byte	(LBB0_36-LBB0_34)>>2
	.byte	(LBB0_42-LBB0_34)>>2
	.byte	(LBB0_36-LBB0_34)>>2
	.byte	(LBB0_36-LBB0_34)>>2
	.byte	(LBB0_36-LBB0_34)>>2
	.byte	(LBB0_36-LBB0_34)>>2
	.byte	(LBB0_36-LBB0_34)>>2
	.byte	(LBB0_36-LBB0_34)>>2
	.byte	(LBB0_44-LBB0_34)>>2
                                        ; -- End function
	.comm	_Pico,56,3                      ; @Pico
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_DIS_VDP_FIFO,4,2          ; @POPT_DIS_VDP_FIFO
	.comm	_EL_ASVDP,4,2                   ; @EL_ASVDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VDP data write: %04x [%06x] {%i} #%i @ %06x"

	.comm	_SekPc,4,2                      ; @SekPc
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
l_.str.1:                               ; @.str.1
	.asciz	"%02x written to reg %02x in SMS mode @ %06x"

	.comm	_line_base_cycles,4,2           ; @line_base_cycles
	.comm	_EL_INTSW,4,2                   ; @EL_INTSW
l_.str.2:                               ; @.str.2
	.asciz	"hint_onoff: %i->%i [%i] pend=%i @ %06x"

l_.str.3:                               ; @.str.3
	.asciz	"vint_onoff: %i->%i [%i] pend=%i @ %06x"

	.comm	_PDRAW_SPRITES_MOVED,4,2        ; @PDRAW_SPRITES_MOVED
	.comm	_rendstatus,4,2                 ; @rendstatus
.subsections_via_symbols
