	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blit
_blit:                                  ## @blit
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_currentConfig@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	testb	$16, (%rax)
	jne	LBB0_1
## %bb.6:
	testb	$-128, %bl
	jne	LBB0_12
## %bb.7:
	movq	_Pico@GOTPCREL(%rip), %r13
	cmpq	$0, 16(%r13)
	je	LBB0_10
## %bb.8:
	movq	$0, 16(%r13)
	movq	_localPal@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	8(%r13), %esi
	movl	$64, %edx
	callq	_vidConvCpyRGB565
	movq	(%r13), %rax
	testb	$8, 48(%rax)
	je	LBB0_10
## %bb.9:
	movq	_localPal@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	768(%rsi), %rdi
	addq	$256, %rsi                      ## imm = 0x100
	movl	$32, %edx
	callq	_memcpy32
	movq	_localPal@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1536, 768(%rax)                ## imm = 0x600
	movl	$49152, 832(%rax)               ## imm = 0xC000
	movl	$0, 896(%rax)
	movl	$65535, 960(%rax)               ## imm = 0xFFFF
LBB0_10:
	movq	(%r13), %rax
	movb	4(%rax), %cl
	andb	$8, %cl
	shrb	$3, %cl
	movzbl	%cl, %ecx
	shll	$4, %ecx
	movl	48(%rax), %eax
	andl	$1, %eax
	shll	$16, %eax
	orl	%ecx, %eax
	movl	(%r12), %ecx
	shll	$4, %ecx
	andl	$262144, %ecx                   ## imm = 0x40000
	addl	%eax, %ecx
	addl	$224, %ecx
	xorl	$65536, %ecx                    ## imm = 0x10000
	jmp	LBB0_11
LBB0_1:
	movq	_Pico@GOTPCREL(%rip), %r13
	cmpq	$0, 16(%r13)
	je	LBB0_3
## %bb.2:
	movq	$0, 16(%r13)
	movq	_localPal@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	8(%r13), %esi
	movl	$64, %edx
	callq	_vidConvCpyRGB565
LBB0_3:
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_SVP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_PicoDraw2FB@GOTPCREL(%rip), %rax
	movl	$75768, %edi                    ## imm = 0x127F8
	addq	(%rax), %rdi
	movl	$-522133280, %esi               ## imm = 0xE0E0E0E0
	movl	$328, %edx                      ## imm = 0x148
	callq	_memset32
LBB0_5:
	movq	(%r13), %rax
	xorl	%ecx, %ecx
	testb	$1, 48(%rax)
	sete	%cl
	shll	$16, %ecx
	movl	(%r12), %eax
	shll	$4, %eax
	andl	$262144, %eax                   ## imm = 0x40000
	addl	%eax, %ecx
	addl	$224, %ecx
LBB0_11:
	movq	_giz_screen@GOTPCREL(%rip), %rax
	movl	$5136, %edi                     ## imm = 0x1410
	addq	(%rax), %rdi
	movq	_PicoDraw2FB@GOTPCREL(%rip), %rax
	movl	$2624, %esi                     ## imm = 0xA40
	addq	(%rax), %rsi
	movq	_localPal@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_vidCpy8to16
LBB0_12:
	testq	%r15, %r15
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	andl	$2, %eax
	je	LBB0_18
LBB0_14:
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	movl	$4, %edi
	movl	$232, %esi
	movq	%r15, %rdx
	callq	_osd_text
LBB0_16:
	testb	$2, %bl
	je	LBB0_18
## %bb.17:
	movq	_OSD_FPS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$232, %esi
	movq	%r14, %rdx
	callq	_osd_text
LBB0_18:
	testl	$1024, %ebx                     ## imm = 0x400
	je	LBB0_20
## %bb.19:
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_MCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_20
## %bb.21:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cd_leds                        ## TAILCALL
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_currentConfig,4,2              ## @currentConfig
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_Pico,24,3                      ## @Pico
	.comm	_localPal,8,3                   ## @localPal
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_SVP,4,2                   ## @PAHW_SVP
	.comm	_PicoDraw2FB,8,3                ## @PicoDraw2FB
	.comm	_giz_screen,8,3                 ## @giz_screen
	.comm	_OSD_FPS_X,4,2                  ## @OSD_FPS_X
	.comm	_PAHW_MCD,4,2                   ## @PAHW_MCD
	.no_dead_strip	_blit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blit
_blit:                                  ; @blit
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _currentConfig@GOTPAGE
Lloh1:
	ldr	x25, [x25, _currentConfig@GOTPAGEOFF]
	ldr	w21, [x25]
Lloh2:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh4:
	adrp	x22, _PicoAHW@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PicoAHW@GOTPAGEOFF]
Lloh6:
	adrp	x24, _PicoDraw2FB@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PicoDraw2FB@GOTPAGEOFF]
Lloh8:
	adrp	x23, _localPal@GOTPAGE
Lloh9:
	ldr	x23, [x23, _localPal@GOTPAGEOFF]
	tbnz	w8, #4, LBB0_6
; %bb.1:
	tbnz	w21, #7, LBB0_12
; %bb.2:
Lloh10:
	adrp	x26, _Pico@GOTPAGE
Lloh11:
	ldr	x26, [x26, _Pico@GOTPAGEOFF]
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_5
; %bb.3:
	str	xzr, [x26, #16]
	ldr	x0, [x23]
	ldr	w1, [x26, #8]
	mov	w2, #64
	bl	_vidConvCpyRGB565
	ldr	x8, [x26]
	ldrb	w8, [x8, #48]
	tbz	w8, #3, LBB0_5
; %bb.4:
	ldr	x8, [x23]
	add	x0, x8, #768
	add	x1, x8, #256
	mov	w2, #32
	bl	_memcpy32
	ldr	x8, [x23]
	mov	w9, #1536
	str	w9, [x8, #768]
	mov	w9, #49152
	str	w9, [x8, #832]
	str	wzr, [x8, #896]
	mov	w9, #65535
	str	w9, [x8, #960]
LBB0_5:
	ldr	x8, [x26]
	ldrb	w9, [x8, #4]
	tst	w9, #0x8
	mov	w9, #240
	mov	w10, #224
	csel	w9, w10, w9, eq
	ldr	w8, [x8, #48]
	bfi	w9, w8, #16, #1
	ldr	w8, [x25]
	lsr	w8, w8, #14
	bfi	w9, w8, #18, #1
	eor	w3, w9, #0x10000
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x26, _Pico@GOTPAGE
Lloh13:
	ldr	x26, [x26, _Pico@GOTPAGEOFF]
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_8
; %bb.7:
	str	xzr, [x26, #16]
	ldr	x0, [x23]
	ldr	w1, [x26, #8]
	mov	w2, #64
	bl	_vidConvCpyRGB565
LBB0_8:
	ldr	w8, [x22]
Lloh14:
	adrp	x9, _PAHW_SVP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PAHW_SVP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x24]
	add	x8, x8, #18, lsl #12            ; =73728
	add	x0, x8, #2040
	mov	w1, #-522133280
	mov	w2, #328
	bl	_memset32
LBB0_10:
	ldr	x8, [x26]
	ldrb	w8, [x8, #48]
	tst	w8, #0x1
	mov	w8, #224
	mov	w9, #224
	movk	w9, #1, lsl #16
	csel	w3, w9, w8, eq
	ldr	w8, [x25]
	lsr	w8, w8, #14
	bfi	w3, w8, #18, #1
LBB0_11:
Lloh17:
	adrp	x8, _giz_screen@GOTPAGE
Lloh18:
	ldr	x8, [x8, _giz_screen@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	mov	w9, #5136
	add	x0, x8, x9
	ldr	x8, [x24]
	add	x1, x8, #2624
	ldr	x2, [x23]
	bl	_vidCpy8to16
LBB0_12:
	cbnz	x20, LBB0_14
; %bb.13:
	tbz	w21, #1, LBB0_18
LBB0_14:
	cbz	x20, LBB0_16
; %bb.15:
	mov	w0, #4
	mov	w1, #232
	mov	x2, x20
	bl	_osd_text
LBB0_16:
	tbz	w21, #1, LBB0_18
; %bb.17:
Lloh20:
	adrp	x8, _OSD_FPS_X@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OSD_FPS_X@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #232
	mov	x2, x19
	bl	_osd_text
LBB0_18:
	tbz	w21, #10, LBB0_21
; %bb.19:
	ldr	w8, [x22]
Lloh23:
	adrp	x9, _PAHW_MCD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PAHW_MCD@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	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
	b	_cd_leds
LBB0_21:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_currentConfig,4,2              ; @currentConfig
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_Pico,24,3                      ; @Pico
	.comm	_localPal,8,3                   ; @localPal
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_SVP,4,2                   ; @PAHW_SVP
	.comm	_PicoDraw2FB,8,3                ; @PicoDraw2FB
	.comm	_giz_screen,8,3                 ; @giz_screen
	.comm	_OSD_FPS_X,4,2                  ; @OSD_FPS_X
	.comm	_PAHW_MCD,4,2                   ; @PAHW_MCD
	.no_dead_strip	_blit
.subsections_via_symbols
