	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mapper_32k_w
LCPI0_0:
	.quad	262144                          ## 0x40000
	.quad	524288                          ## 0x80000
LCPI0_1:
	.quad	786432                          ## 0xc0000
	.quad	1048576                         ## 0x100000
LCPI0_2:
	.quad	1310720                         ## 0x140000
	.quad	1572864                         ## 0x180000
LCPI0_3:
	.quad	1835008                         ## 0x1c0000
	.quad	2097152                         ## 0x200000
LCPI0_4:
	.quad	2359296                         ## 0x240000
	.quad	2621440                         ## 0x280000
LCPI0_5:
	.quad	2883584                         ## 0x2c0000
	.quad	3145728                         ## 0x300000
LCPI0_6:
	.quad	3407872                         ## 0x340000
	.quad	3670016                         ## 0x380000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mapper_32k_w:                          ## @mapper_32k_w
	.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
	testl	%edi, %edi
	je	LBB0_4
## %bb.1:
	movl	%edi, %ecx
	shll	$15, %ecx
	movl	%ecx, %eax
	andl	$2064384, %eax                  ## imm = 0x1F8000
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	andl	$2031616, %ecx                  ## imm = 0x1F0000
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	$16777216, %r12d                ## imm = 0x1000000
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_cart@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	leaq	(%rax,%r12), %rdi
	movq	_m68k@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	%rdi, (%rcx,%r14,8)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx def $rcx
	orl	%ebx, %ecx
	leaq	(%rax,%rcx,4), %rsi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_memcpy
	movq	(%r15), %rax
	movq	(%rax,%r14,8), %rdi
	movl	$131072, %eax                   ## imm = 0x20000
	addq	%rax, %rdi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	orl	%ebx, %esi
	orl	$32768, %esi                    ## imm = 0x8000
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_memcpy
	incq	%r14
	addl	$65536, %ebx                    ## imm = 0x10000
	addq	$262144, %r12                   ## imm = 0x40000
	cmpq	$16, %r14
	jne	LBB0_2
	jmp	LBB0_3
LBB0_4:
	movq	_cart@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_m68k@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [262144,524288]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 8(%rcx)
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [786432,1048576]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 24(%rcx)
	movdqa	LCPI0_2(%rip), %xmm1            ## xmm1 = [1310720,1572864]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 40(%rcx)
	movdqa	LCPI0_3(%rip), %xmm1            ## xmm1 = [1835008,2097152]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 56(%rcx)
	movdqa	LCPI0_4(%rip), %xmm1            ## xmm1 = [2359296,2621440]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 72(%rcx)
	movdqa	LCPI0_5(%rip), %xmm1            ## xmm1 = [2883584,3145728]
	paddq	%xmm0, %xmm1
	paddq	LCPI0_6(%rip), %xmm0
	movdqu	%xmm1, 88(%rcx)
	movdqu	%xmm0, 104(%rcx)
	addq	$3932160, %rax                  ## imm = 0x3C0000
	movq	%rax, 120(%rcx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cart,8,3                       ## @cart
	.comm	_m68k,8,3                       ## @m68k
	.no_dead_strip	_mapper_32k_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mapper_32k_w
_mapper_32k_w:                          ; @mapper_32k_w
	.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
	cbz	w0, LBB0_3
; %bb.1:
	mov	x19, #0
	mov	w20, #0
	lsl	w8, w0, #15
	and	w21, w8, #0x1f8000
	and	w22, w8, #0x1f0000
	mov	w23, #16777216
Lloh0:
	adrp	x24, _cart@GOTPAGE
Lloh1:
	ldr	x24, [x24, _cart@GOTPAGEOFF]
Lloh2:
	adrp	x25, _m68k@GOTPAGE
Lloh3:
	ldr	x25, [x25, _m68k@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x0, x8, x23
	ldr	x9, [x25]
	str	x0, [x9, x19]
	orr	w9, w21, w20
	add	x1, x8, w9, uxtw #2
	mov	w2, #32768
	bl	_memcpy
	ldr	x8, [x25]
	ldr	x8, [x8, x19]
	add	x0, x8, #32, lsl #12            ; =131072
	ldr	x8, [x24]
	orr	w9, w22, w20
	orr	w9, w9, #0x8000
	add	x1, x8, w9, uxtw #2
	mov	w2, #32768
	bl	_memcpy
	add	w20, w20, #16, lsl #12          ; =65536
	add	x23, x23, #64, lsl #12          ; =262144
	add	x19, x19, #8
	cmp	x19, #128
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _cart@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cart@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _m68k@GOTPAGE
Lloh8:
	ldr	x9, [x9, _m68k@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x10, x8, #64, lsl #12           ; =262144
	stp	x8, x10, [x9]
	add	x10, x8, #128, lsl #12          ; =524288
	add	x11, x8, #192, lsl #12          ; =786432
	stp	x10, x11, [x9, #16]
	add	x10, x8, #256, lsl #12          ; =1048576
	add	x11, x8, #320, lsl #12          ; =1310720
	stp	x10, x11, [x9, #32]
	add	x10, x8, #384, lsl #12          ; =1572864
	add	x11, x8, #448, lsl #12          ; =1835008
	stp	x10, x11, [x9, #48]
	add	x10, x8, #512, lsl #12          ; =2097152
	add	x11, x8, #576, lsl #12          ; =2359296
	stp	x10, x11, [x9, #64]
	add	x10, x8, #640, lsl #12          ; =2621440
	add	x11, x8, #704, lsl #12          ; =2883584
	stp	x10, x11, [x9, #80]
	add	x10, x8, #768, lsl #12          ; =3145728
	add	x11, x8, #832, lsl #12          ; =3407872
	stp	x10, x11, [x9, #96]
	add	x10, x8, #896, lsl #12          ; =3670016
	add	x8, x8, #960, lsl #12           ; =3932160
	stp	x10, x8, [x9, #112]
LBB0_4:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cart,8,3                       ; @cart
	.comm	_m68k,8,3                       ; @m68k
	.no_dead_strip	_mapper_32k_w
.subsections_via_symbols
