	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoDraw32xLayerMdOnly         ## -- Begin function PicoDraw32xLayerMdOnly
	.p2align	4, 0x90
_PicoDraw32xLayerMdOnly:                ## @PicoDraw32xLayerMdOnly
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edi killed $edi def $rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_PicoDraw2FB@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_HighPal@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	8(%rax), %rcx
	movl	48(%rcx), %r15d
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_PicoDrawUpdateHighPal
LBB0_2:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_7
## %bb.3:
	andl	$1, %r15d
	imull	$328, -56(%rbp), %eax           ## 4-byte Folded Reload
                                        ## imm = 0x148
	cltq
	movq	%r15, %rdx
	shlq	$5, %rdx
	leal	4(%r15), %ecx
	addq	%rax, %r14
	addq	$8, %r14
	xorq	$32, %rdx
	shll	$6, %ecx
	movl	$328, %eax                      ## imm = 0x148
	subl	%ecx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r15d
	addq	$3, %rdx
	xorl	%r13d, %r13d
	addq	%rdx, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %r12d
	movl	%r12d, %edi
	callq	_PicoScan32xBegin
	movq	_DrawLineDest@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r14,%rax), %edx
	movzwl	(%rbx,%rdx,2), %edx
	movw	%dx, -6(%rcx,%rax,2)
	movzbl	1(%r14,%rax), %edx
	movzwl	(%rbx,%rdx,2), %edx
	movw	%dx, -4(%rcx,%rax,2)
	movzbl	2(%r14,%rax), %edx
	movzwl	(%rbx,%rdx,2), %edx
	movw	%dx, -2(%rcx,%rax,2)
	movzbl	3(%r14,%rax), %edx
	movzwl	(%rbx,%rdx,2), %edx
	movw	%dx, (%rcx,%rax,2)
	addq	$4, %rax
	cmpq	%r15, %rax
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	addq	%rax, %r14
	movl	%r12d, %edi
	callq	_PicoScan32xEnd
	incl	%r13d
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jne	LBB0_4
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DrawLineDestBase,8,3           ## @DrawLineDestBase
	.comm	_DrawLineDestIncrement,4,2      ## @DrawLineDestIncrement
	.comm	_PicoDraw2FB,8,3                ## @PicoDraw2FB
	.comm	_HighPal,8,3                    ## @HighPal
	.comm	_Pico,16,3                      ## @Pico
	.comm	_DrawLineDest,8,3               ## @DrawLineDest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoDraw32xLayerMdOnly         ; -- Begin function PicoDraw32xLayerMdOnly
	.p2align	2
_PicoDraw32xLayerMdOnly:                ; @PicoDraw32xLayerMdOnly
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PicoDraw2FB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoDraw2FB@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HighPal@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HighPal@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
Lloh5:
	ldr	x22, [x9]
Lloh6:
	adrp	x8, _Pico@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
	ldp	x8, x9, [x8]
	ldr	w9, [x9, #48]
	and	x26, x9, #0x1
	mov	w9, #320
	mov	w10, #256
	cmp	w26, #0
	csel	w23, w10, w9, eq
	cbz	x8, LBB0_2
; %bb.1:
	bl	_PicoDrawUpdateHighPal
LBB0_2:
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w24, #0
	mov	w8, #328
	mul	w8, w20, w8
	add	x8, x21, w8, sxtw
	add	x25, x8, #8
	lsl	x8, x26, #5
	eor	x8, x8, #0x20
	mov	w9, #328
	sub	w26, w9, w23
	add	x27, x8, #2
Lloh8:
	adrp	x28, _DrawLineDest@GOTPAGE
Lloh9:
	ldr	x28, [x28, _DrawLineDest@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	w21, w24, w20
	mov	x0, x21
	bl	_PicoScan32xBegin
	mov	x8, #0
	ldr	x9, [x28]
	add	x9, x9, x27, lsl #1
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x10, x25, x8
	ldrb	w11, [x10]
	ldrh	w11, [x22, x11, lsl #1]
	sturh	w11, [x9, #-4]
	ldrb	w11, [x10, #1]
	ldrh	w11, [x22, x11, lsl #1]
	sturh	w11, [x9, #-2]
	ldrb	w11, [x10, #2]
	ldrh	w11, [x22, x11, lsl #1]
	strh	w11, [x9]
	ldrb	w10, [x10, #3]
	ldrh	w10, [x22, x10, lsl #1]
	strh	w10, [x9, #2]
	add	x8, x8, #4
	add	x9, x9, #8
	cmp	x8, x23
	b.lo	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x25, x26
	add	x25, x9, x8
	mov	x0, x21
	bl	_PicoScan32xEnd
	add	w24, w24, #1
	cmp	w24, w19
	b.ne	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DrawLineDestBase,8,3           ; @DrawLineDestBase
	.comm	_DrawLineDestIncrement,4,2      ; @DrawLineDestIncrement
	.comm	_PicoDraw2FB,8,3                ; @PicoDraw2FB
	.comm	_HighPal,8,3                    ; @HighPal
	.comm	_Pico,16,3                      ; @Pico
	.comm	_DrawLineDest,8,3               ; @DrawLineDest
.subsections_via_symbols
