	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoWrite8_32x_on
_PicoWrite8_32x_on:                     ## @PicoWrite8_32x_on
	.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
	movl	%esi, %r14d
	movl	%edi, %ebx
	movl	%edi, %eax
	andl	$64512, %eax                    ## imm = 0xFC00
	cmpl	$20480, %eax                    ## imm = 0x5000
	jne	LBB0_5
## %bb.1:
	movq	_EL_32X@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movzbl	%r14b, %r15d
	movq	_SekPc@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_elprintf
	movl	%ebx, %eax
	andl	$65472, %eax                    ## imm = 0xFFC0
	cmpl	$20736, %eax                    ## imm = 0x5100
	je	LBB0_14
## %bb.2:
	movq	_Pico32x@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	_P32XS_FM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
LBB0_15:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %r8d
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
LBB0_5:
	movl	%ebx, %eax
	andl	$65472, %eax                    ## imm = 0xFFC0
	cmpl	$20736, %eax                    ## imm = 0x5100
	jne	LBB0_6
LBB0_14:
	movl	%ebx, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p32x_reg_write8                ## TAILCALL
LBB0_6:
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_MCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_PicoWrite8_mcd_io
	cmpl	$10563825, %ebx                 ## imm = 0xA130F1
	je	LBB0_10
	jmp	LBB0_13
LBB0_3:
	movl	%ebx, %eax
	andl	$65520, %eax                    ## imm = 0xFFF0
	cmpl	$20864, %eax                    ## imm = 0x5180
	jne	LBB0_11
## %bb.4:
	movl	%ebx, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p32x_vdp_write8                ## TAILCALL
LBB0_8:
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_PicoWrite8_io
	cmpl	$10563825, %ebx                 ## imm = 0xA130F1
	jne	LBB0_13
LBB0_10:
	movq	_Pico32x@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bank_switch                    ## TAILCALL
LBB0_11:
	movl	%ebx, %eax
	andl	$65024, %eax                    ## imm = 0xFE00
	cmpl	$20992, %eax                    ## imm = 0x5200
	jne	LBB0_15
## %bb.12:
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r13), %edi
	movl	(%r12), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%rdx, %r12
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_elprintf
	movq	_Pico32xMem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	andl	$511, %ebx                      ## imm = 0x1FF
	xorl	$1, %ebx
	movl	%r14d, (%rax,%rbx,4)
	movl	$1, 8(%r12)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_32X,4,2                     ## @EL_32X
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m68k 32x w8  [%06x]   %02x @%06x"

	.comm	_SekPc,4,2                      ## @SekPc
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_MCD,4,2                   ## @PAHW_MCD
	.comm	_Pico32x,16,3                   ## @Pico32x
	.comm	_P32XS_FM,4,2                   ## @P32XS_FM
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
L_.str.1:                               ## @.str.1
	.asciz	"m68k 32x PAL w8  [%06x]   %02x @%06x"

	.comm	_Pico32xMem,8,3                 ## @Pico32xMem
	.comm	_EL_UIO,4,2                     ## @EL_UIO
L_.str.2:                               ## @.str.2
	.asciz	"m68k unmapped w8  [%06x]   %02x @%06x"

	.no_dead_strip	_PicoWrite8_32x_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoWrite8_32x_on
_PicoWrite8_32x_on:                     ; @PicoWrite8_32x_on
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	and	w8, w0, #0xfc00
	cmp	w8, #5, lsl #12                 ; =20480
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x23, _EL_32X@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EL_32X@GOTPAGEOFF]
	ldr	w0, [x23]
	and	w21, w20, #0xff
Lloh2:
	adrp	x22, _SekPc@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SekPc@GOTPAGEOFF]
	ldr	w4, [x22]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_elprintf
	and	w8, w19, #0xffc0
	mov	w9, #20736
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.2:
Lloh6:
	adrp	x24, _Pico32x@GOTPAGE
Lloh7:
	ldr	x24, [x24, _Pico32x@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _P32XS_FM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _P32XS_FM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_3:
Lloh11:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	w4, [x22]
	mov	x2, x19
	mov	x3, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_elprintf
LBB0_4:
	and	w8, w19, #0xffc0
	mov	w9, #20736
	cmp	w8, w9
	b.ne	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_p32x_reg_write8
LBB0_6:
Lloh16:
	adrp	x8, _PicoAHW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PicoAHW@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _PAHW_MCD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PAHW_MCD@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	mov	x0, x19
	mov	x1, x20
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	bl	_PicoWrite8_mcd_io
	b	LBB0_11
LBB0_8:
	and	w8, w19, #0xfff0
	mov	w9, #20864
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_p32x_vdp_write8
LBB0_10:
	bl	_PicoWrite8_io
LBB0_11:
	mov	w8, #12529
	movk	w8, #161, lsl #16
	cmp	w19, w8
	b.ne	LBB0_15
; %bb.12:
Lloh22:
	adrp	x8, _Pico32x@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Pico32x@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bank_switch
LBB0_13:
	and	w8, w19, #0xfe00
	mov	w9, #20992
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.14:
	ldr	w8, [x23]
Lloh25:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w4, [x22]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_elprintf
Lloh30:
	adrp	x8, _Pico32xMem@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Pico32xMem@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x8, [x8]
	and	w9, w19, #0x1ff
	eor	w9, w9, #0x1
	str	w20, [x8, w9, uxtw #2]
	mov	w8, #1
	str	w8, [x24, #8]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_32X,4,2                     ; @EL_32X
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m68k 32x w8  [%06x]   %02x @%06x"

	.comm	_SekPc,4,2                      ; @SekPc
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_MCD,4,2                   ; @PAHW_MCD
	.comm	_Pico32x,16,3                   ; @Pico32x
	.comm	_P32XS_FM,4,2                   ; @P32XS_FM
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
l_.str.1:                               ; @.str.1
	.asciz	"m68k 32x PAL w8  [%06x]   %02x @%06x"

	.comm	_Pico32xMem,8,3                 ; @Pico32xMem
	.comm	_EL_UIO,4,2                     ; @EL_UIO
l_.str.2:                               ; @.str.2
	.asciz	"m68k unmapped w8  [%06x]   %02x @%06x"

	.no_dead_strip	_PicoWrite8_32x_on
.subsections_via_symbols
