	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intfstream_get_serial
_intfstream_get_serial:                 ## @intfstream_get_serial
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %rsi
	callq	_detect_system
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	-32(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_detect_psp_game
	jmp	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_detect_serial_ascii_game
	xorl	%r15d, %r15d
	movl	$0, %ebx
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_6:
	movq	-32(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_detect_ps1_game
LBB0_3:
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_4
LBB0_10:
	movq	_MSG_FOUND_DISK_LABEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_RARCH_LOG
	movl	%r15d, %ebx
	jmp	LBB0_11
LBB0_4:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-32(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_string_is_equal
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_detect_gc_game
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s '%s'\n"

	.comm	_MSG_FOUND_DISK_LABEL,4,2       ## @MSG_FOUND_DISK_LABEL
L_.str.1:                               ## @.str.1
	.asciz	"psp"

L_.str.2:                               ## @.str.2
	.asciz	"ps1"

L_.str.3:                               ## @.str.3
	.asciz	"gc"

	.no_dead_strip	_intfstream_get_serial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intfstream_get_serial
_intfstream_get_serial:                 ; @intfstream_get_serial
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	add	x1, sp, #8
	bl	_detect_system
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_detect_psp_game
	cbnz	x0, LBB0_8
	b	LBB0_10
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_detect_serial_ascii_game
	mov	w20, #0
	cbnz	x0, LBB0_9
	b	LBB0_11
LBB0_4:
	ldr	x0, [sp, #8]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_detect_ps1_game
	cbnz	x0, LBB0_8
	b	LBB0_10
LBB0_6:
	ldr	x0, [sp, #8]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_10
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_detect_gc_game
	cbz	x0, LBB0_10
LBB0_8:
	mov	w20, #1
LBB0_9:
Lloh6:
	adrp	x8, _MSG_FOUND_DISK_LABEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_FOUND_DISK_LABEL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_RARCH_LOG
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s '%s'\n"

	.comm	_MSG_FOUND_DISK_LABEL,4,2       ; @MSG_FOUND_DISK_LABEL
l_.str.1:                               ; @.str.1
	.asciz	"psp"

l_.str.2:                               ; @.str.2
	.asciz	"ps1"

l_.str.3:                               ; @.str.3
	.asciz	"gc"

	.no_dead_strip	_intfstream_get_serial
.subsections_via_symbols
