	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blit2
_blit2:                                 ## @blit2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	_currentConfig@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	andl	$2, %eax
	je	LBB0_6
LBB0_2:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	$4, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_osd_text
LBB0_4:
	testb	$2, %bl
	je	LBB0_6
## %bb.5:
	movq	_OSD_FPS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_osd_text
LBB0_6:
	testl	$1024, %ebx                     ## imm = 0x400
	je	LBB0_9
## %bb.7:
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_MCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_cd_leds
LBB0_9:
	movl	(%r15), %eax
	xorl	%edi, %edi
	testl	$8192, %eax                     ## imm = 0x2000
	je	LBB0_11
## %bb.10:
	testl	$65536, %eax                    ## imm = 0x10000
	sete	%al
	testl	%r14d, %r14d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psp_video_flip                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_currentConfig,4,2              ## @currentConfig
	.comm	_OSD_FPS_X,4,2                  ## @OSD_FPS_X
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_MCD,4,2                   ## @PAHW_MCD
	.no_dead_strip	_blit2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blit2
_blit2:                                 ; @blit2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x21, _currentConfig@GOTPAGE
Lloh1:
	ldr	x21, [x21, _currentConfig@GOTPAGEOFF]
	ldr	w22, [x21]
	cbnz	x1, LBB0_2
; %bb.1:
	tbz	w22, #1, LBB0_6
LBB0_2:
	cbz	x1, LBB0_4
; %bb.3:
	mov	w0, #4
	mov	w2, #0
	mov	w3, #0
	bl	_osd_text
LBB0_4:
	tbz	w22, #1, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _OSD_FPS_X@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OSD_FPS_X@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_osd_text
LBB0_6:
	tbz	w22, #10, LBB0_9
; %bb.7:
Lloh5:
	adrp	x8, _PicoAHW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PicoAHW@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _PAHW_MCD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PAHW_MCD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	bl	_cd_leds
LBB0_9:
	ldr	w8, [x21]
	tbnz	w8, #13, LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	tst	w8, #0x10000
	ccmp	w19, #0, #4, ne
	cset	w0, eq
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_psp_video_flip
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_currentConfig,4,2              ; @currentConfig
	.comm	_OSD_FPS_X,4,2                  ; @OSD_FPS_X
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_MCD,4,2                   ; @PAHW_MCD
	.no_dead_strip	_blit2
.subsections_via_symbols
