	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emu_get_game_name              ## -- Begin function emu_get_game_name
	.p2align	4, 0x90
_emu_get_game_name:                     ## @emu_get_game_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_MCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	andl	(%rax), %edx
	sete	%cl
	movq	_media_id_header@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$80, %rsi
	movl	$48, %edx
	callq	_extract_text
	leaq	1(%rbx), %rcx
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.1:
	cltq
	addq	%rax, %rbx
	movq	%rcx, %rax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	%dl, %dl
	je	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	%dl, (%rcx)
	incq	%rcx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rbx, %rax
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$32, -1(%rcx)
	jne	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movb	$0, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_MCD,4,2                   ## @PAHW_MCD
	.comm	_media_id_header,8,3            ## @media_id_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emu_get_game_name              ; -- Begin function emu_get_game_name
	.p2align	2
_emu_get_game_name:                     ; @emu_get_game_name
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _PicoAHW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoAHW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PAHW_MCD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAHW_MCD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w3, eq
Lloh6:
	adrp	x8, _media_id_header@GOTPAGE
Lloh7:
	ldr	x8, [x8, _media_id_header@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, #80
	mov	w2, #48
	bl	_extract_text
	add	x8, x19, #1
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.1:
	add	x9, x19, w0, sxtw
	mov	x10, x8
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w11, LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w11, [x8], #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10]
	cmp	w11, #32
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldurb	w12, [x8, #-1]
	cmp	w12, #32
	b.ne	LBB0_3
	b	LBB0_4
LBB0_7:
	strb	wzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_MCD,4,2                   ; @PAHW_MCD
	.comm	_media_id_header,8,3            ; @media_id_header
.subsections_via_symbols
