	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detect_psp_game                ## -- Begin function detect_psp_game
	.p2align	4, 0x90
_detect_psp_game:                       ## @detect_psp_game
	.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, %rbx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movq	_SEEK_SET@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_intfstream_seek
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_intfstream_read
	testq	%rax, %rax
	jle	LBB0_25
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, 5(%rbx)
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.14(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.15(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.16(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.17(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.18(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.19(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	cmpl	$100000, %r13d                  ## imm = 0x186A0
	jne	LBB0_1
	jmp	LBB0_25
LBB0_22:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_intfstream_seek
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_intfstream_read
	testq	%rax, %rax
	jle	LBB0_25
## %bb.23:
	movb	$0, 10(%rbx)
	movl	$1, %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ULES-"

L_.str.1:                               ## @.str.1
	.asciz	"ULUS-"

L_.str.2:                               ## @.str.2
	.asciz	"ULJS-"

L_.str.3:                               ## @.str.3
	.asciz	"ULEM-"

L_.str.4:                               ## @.str.4
	.asciz	"ULUM-"

L_.str.5:                               ## @.str.5
	.asciz	"ULJM-"

L_.str.6:                               ## @.str.6
	.asciz	"UCES-"

L_.str.7:                               ## @.str.7
	.asciz	"UCUS-"

L_.str.8:                               ## @.str.8
	.asciz	"UCJS-"

L_.str.9:                               ## @.str.9
	.asciz	"UCAS-"

L_.str.10:                              ## @.str.10
	.asciz	"NPEH-"

L_.str.11:                              ## @.str.11
	.asciz	"NPUH-"

L_.str.12:                              ## @.str.12
	.asciz	"NPJH-"

L_.str.13:                              ## @.str.13
	.asciz	"NPEG-"

L_.str.14:                              ## @.str.14
	.asciz	"NPUG-"

L_.str.15:                              ## @.str.15
	.asciz	"NPJG-"

L_.str.16:                              ## @.str.16
	.asciz	"NPHG-"

L_.str.17:                              ## @.str.17
	.asciz	"NPEZ-"

L_.str.18:                              ## @.str.18
	.asciz	"NPUZ-"

L_.str.19:                              ## @.str.19
	.asciz	"NPJZ-"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detect_psp_game                ; -- Begin function detect_psp_game
	.p2align	2
_detect_psp_game:                       ; @detect_psp_game
	.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
	mov	w21, #0
Lloh0:
	adrp	x28, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x28, [x28, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh8:
	adrp	x25, l_.str.3@PAGE
Lloh9:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh10:
	adrp	x26, l_.str.4@PAGE
Lloh11:
	add	x26, x26, l_.str.4@PAGEOFF
Lloh12:
	adrp	x27, l_.str.5@PAGE
Lloh13:
	add	x27, x27, l_.str.5@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x21
	bl	_intfstream_seek
	mov	x0, x20
	mov	x1, x19
	mov	w2, #5
	bl	_intfstream_read
	cmp	x0, #1
	b.lt	LBB0_25
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	strb	wzr, [x19, #5]
	mov	x0, x19
	mov	x1, x22
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x27
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh20:
	adrp	x1, l_.str.9@PAGE
Lloh21:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh24:
	adrp	x1, l_.str.11@PAGE
Lloh25:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh26:
	adrp	x1, l_.str.12@PAGE
Lloh27:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh28:
	adrp	x1, l_.str.13@PAGE
Lloh29:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh30:
	adrp	x1, l_.str.14@PAGE
Lloh31:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh32:
	adrp	x1, l_.str.15@PAGE
Lloh33:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh34:
	adrp	x1, l_.str.16@PAGE
Lloh35:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh36:
	adrp	x1, l_.str.17@PAGE
Lloh37:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh38:
	adrp	x1, l_.str.18@PAGE
Lloh39:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
Lloh40:
	adrp	x1, l_.str.19@PAGE
Lloh41:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w21, w21, #1
	mov	w8, #34464
	movk	w8, #1, lsl #16
	cmp	w21, w8
	b.ne	LBB0_1
	b	LBB0_25
LBB0_23:
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x21
	bl	_intfstream_seek
	mov	x0, x20
	mov	x1, x19
	mov	w2, #10
	bl	_intfstream_read
	cmp	x0, #1
	b.lt	LBB0_25
; %bb.24:
	strb	wzr, [x19, #10]
	mov	w0, #1
	b	LBB0_26
LBB0_25:
	mov	w0, #0
LBB0_26:
	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 AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ULES-"

l_.str.1:                               ; @.str.1
	.asciz	"ULUS-"

l_.str.2:                               ; @.str.2
	.asciz	"ULJS-"

l_.str.3:                               ; @.str.3
	.asciz	"ULEM-"

l_.str.4:                               ; @.str.4
	.asciz	"ULUM-"

l_.str.5:                               ; @.str.5
	.asciz	"ULJM-"

l_.str.6:                               ; @.str.6
	.asciz	"UCES-"

l_.str.7:                               ; @.str.7
	.asciz	"UCUS-"

l_.str.8:                               ; @.str.8
	.asciz	"UCJS-"

l_.str.9:                               ; @.str.9
	.asciz	"UCAS-"

l_.str.10:                              ; @.str.10
	.asciz	"NPEH-"

l_.str.11:                              ; @.str.11
	.asciz	"NPUH-"

l_.str.12:                              ; @.str.12
	.asciz	"NPJH-"

l_.str.13:                              ; @.str.13
	.asciz	"NPEG-"

l_.str.14:                              ; @.str.14
	.asciz	"NPUG-"

l_.str.15:                              ; @.str.15
	.asciz	"NPJG-"

l_.str.16:                              ; @.str.16
	.asciz	"NPHG-"

l_.str.17:                              ; @.str.17
	.asciz	"NPEZ-"

l_.str.18:                              ; @.str.18
	.asciz	"NPUZ-"

l_.str.19:                              ; @.str.19
	.asciz	"NPJZ-"

.subsections_via_symbols
