	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function custom_read
_custom_read:                           ## @custom_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdx
	movl	(%rdi), %esi
	leal	-128(%rsi), %eax
	cmpl	$9, %eax
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcasecmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.3:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoul
                                        ## kill: def $eax killed $eax def $rax
	leal	-44101(%rax), %ecx
	cmpl	$-36101, %ecx                   ## imm = 0xFFFF72FB
	movl	$22050, %ecx                    ## imm = 0x5622
	cmovael	%eax, %ecx
	movq	_PsndRate@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	-24(%rbp), %rbx
	movb	(%rbx), %al
	movl	%eax, %ecx
	orb	$32, %cl
	cmpb	$104, %cl
	jne	LBB0_5
## %bb.4:
	leaq	1(%rbx), %rcx
	movq	%rcx, -24(%rbp)
	movb	1(%rbx), %al
	movq	%rcx, %rbx
LBB0_5:
	orb	$32, %al
	cmpb	$122, %al
	jne	LBB0_7
## %bb.6:
	incq	%rbx
	movq	%rbx, -24(%rbp)
LBB0_7:
	decq	%rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_8
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_41
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_40
## %bb.11:
	movq	_POPT_EN_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	_PicoOpt@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jmp	LBB0_42
LBB0_12:
	leaq	L_.str.18(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_lprintf
	xorl	%r14d, %r14d
	jmp	LBB0_40
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcasecmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_43
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_50
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_56
## %bb.17:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_57
## %bb.18:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_58
## %bb.19:
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_40
## %bb.20:
	movq	_PicoRegionOverride@GOTPCREL(%rip), %rax
	movl	$8, (%rax)
	jmp	LBB0_39
LBB0_21:
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcasecmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.22:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_47
## %bb.23:
	movq	%rbx, %rdi
	callq	_atoi
	jmp	LBB0_48
LBB0_24:
	leaq	L_.str.14(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcasecmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.25:
	leaq	L_.str.15(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_49
## %bb.26:
	leaq	L_.str.16(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_51
## %bb.27:
	leaq	L_.str.17(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_40
## %bb.28:
	movq	_currentConfig@GOTPCREL(%rip), %rax
	movl	$-73729, %ecx                   ## imm = 0xFFFEDFFF
	andl	12(%rax), %ecx
	orl	$8192, %ecx                     ## imm = 0x2000
	movl	%ecx, 12(%rax)
	jmp	LBB0_39
LBB0_29:
	leaq	L_.str.11(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcasecmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.30:
	movq	%rbx, %rdi
	callq	_atof
	movq	_currentConfig@GOTPCREL(%rip), %rcx
	movq	%rax, 32(%rcx)
	jmp	LBB0_39
LBB0_31:
	leaq	L_.str.13(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcasecmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.32:
	movq	%rbx, %rdi
	callq	_atof
	movq	_currentConfig@GOTPCREL(%rip), %rcx
	movq	%rax, 16(%rcx)
	jmp	LBB0_39
LBB0_33:
	leaq	L_.str.12(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcasecmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.34:
	movq	%rbx, %rdi
	callq	_atof
	movq	_currentConfig@GOTPCREL(%rip), %rcx
	movq	%rax, 24(%rcx)
	jmp	LBB0_39
LBB0_35:
	movq	%rbx, %rdi
	callq	_atoi
	movq	_currentConfig@GOTPCREL(%rip), %rcx
	movq	%rax, 40(%rcx)
	jmp	LBB0_39
LBB0_36:
	movq	%rbx, %rdi
	callq	_atoi
	movq	_currentConfig@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%rcx)
	imull	$1000, %eax, %esi               ## imm = 0x3E8
	xorl	%edi, %edi
	jmp	LBB0_38
LBB0_37:
	movq	%rbx, %rdi
	callq	_atoi
	movq	_currentConfig@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
	imull	$1000, %eax, %edi               ## imm = 0x3E8
	xorl	%esi, %esi
LBB0_38:
	callq	_Pico32xSetClocks
LBB0_39:
	movl	$1, %r14d
LBB0_40:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_41:
	movq	_POPT_EN_STEREO@GOTPCREL(%rip), %rcx
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_42:
	movq	_PicoOpt@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_39
LBB0_43:
	movq	%rbx, %rdi
	callq	_strlen
	movq	_PicoAutoRgnOrder@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movq	_PicoRegionOverride@GOTPCREL(%rip), %rdx
	movl	$0, (%rdx)
	movl	$1, %r14d
	cmpl	$6, %eax
	jl	LBB0_40
## %bb.44:
	movslq	%eax, %rdx
	addq	%rbx, %rdx
	addq	$5, %rbx
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	jne	LBB0_52
## %bb.46:                              ##   in Loop: Header=BB0_45 Depth=1
	incq	%rbx
	jmp	LBB0_45
LBB0_47:
	movl	$-1, %eax
LBB0_48:
	movq	_currentConfig@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_39
LBB0_49:
	movq	_currentConfig@GOTPCREL(%rip), %rax
	andl	$-73729, 12(%rax)               ## imm = 0xFFFEDFFF
	jmp	LBB0_39
LBB0_50:
	movq	_PicoRegionOverride@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_39
LBB0_51:
	movq	_currentConfig@GOTPCREL(%rip), %rax
	orl	$73728, 12(%rax)                ## imm = 0x12000
	jmp	LBB0_39
LBB0_52:
	xorl	%edi, %edi
	cmpb	$69, %al
	je	LBB0_59
## %bb.53:
	cmpb	$74, %al
	je	LBB0_60
## %bb.54:
	cmpb	$85, %al
	jne	LBB0_64
## %bb.55:
	movl	$4, %esi
	cmpb	$83, 1(%rbx)
	jne	LBB0_64
	jmp	LBB0_61
LBB0_56:
	movq	_PicoRegionOverride@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_39
LBB0_57:
	movq	_PicoRegionOverride@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
	jmp	LBB0_39
LBB0_58:
	movq	_PicoRegionOverride@GOTPCREL(%rip), %rax
	movl	$4, (%rax)
	jmp	LBB0_39
LBB0_59:
	movl	$8, %esi
	cmpb	$85, 1(%rbx)
	jne	LBB0_64
	jmp	LBB0_61
LBB0_60:
	movl	$1, %esi
	cmpb	$80, 1(%rbx)
	jne	LBB0_64
LBB0_61:
	movl	%esi, (%rcx)
	movl	%esi, %edi
	jmp	LBB0_64
LBB0_62:                                ##   in Loop: Header=BB0_64 Depth=1
	cmpb	$32, %al
	je	LBB0_65
## %bb.63:                              ##   in Loop: Header=BB0_64 Depth=1
	incq	%rbx
LBB0_64:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	testb	%al, %al
	jne	LBB0_62
	jmp	LBB0_40
LBB0_65:
	cmpq	%rdx, %rbx
	jae	LBB0_40
LBB0_66:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	jne	LBB0_68
## %bb.67:                              ##   in Loop: Header=BB0_66 Depth=1
	incq	%rbx
	jmp	LBB0_66
LBB0_68:
	cmpb	$85, %al
	je	LBB0_72
## %bb.69:
	cmpb	$74, %al
	je	LBB0_73
## %bb.70:
	cmpb	$69, %al
	jne	LBB0_76
## %bb.71:
	movl	$128, %esi
	cmpb	$85, 1(%rbx)
	jne	LBB0_76
	jmp	LBB0_74
LBB0_72:
	movl	$64, %esi
	cmpb	$83, 1(%rbx)
	jne	LBB0_76
	jmp	LBB0_74
LBB0_73:
	movl	$16, %esi
	cmpb	$80, 1(%rbx)
	jne	LBB0_76
LBB0_74:
	orl	%esi, %edi
	movl	%edi, (%rcx)
	jmp	LBB0_76
LBB0_75:                                ##   in Loop: Header=BB0_76 Depth=1
	incq	%rbx
LBB0_76:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_40
## %bb.77:                              ##   in Loop: Header=BB0_76 Depth=1
	cmpb	$32, %al
	jne	LBB0_75
## %bb.78:
	cmpq	%rdx, %rbx
	jae	LBB0_40
LBB0_79:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	jne	LBB0_81
## %bb.80:                              ##   in Loop: Header=BB0_79 Depth=1
	incq	%rbx
	jmp	LBB0_79
LBB0_81:
	cmpb	$85, %al
	je	LBB0_85
## %bb.82:
	cmpb	$74, %al
	je	LBB0_86
## %bb.83:
	cmpb	$69, %al
	jne	LBB0_89
## %bb.84:
	movl	$2048, %edx                     ## imm = 0x800
	cmpb	$85, 1(%rbx)
	jne	LBB0_89
	jmp	LBB0_87
LBB0_85:
	movl	$1024, %edx                     ## imm = 0x400
	cmpb	$83, 1(%rbx)
	jne	LBB0_89
	jmp	LBB0_87
LBB0_86:
	movl	$256, %edx                      ## imm = 0x100
	cmpb	$80, 1(%rbx)
	jne	LBB0_89
LBB0_87:
	orl	%edx, %edi
	movl	%edi, (%rcx)
	jmp	LBB0_89
LBB0_88:                                ##   in Loop: Header=BB0_89 Depth=1
	incq	%rbx
LBB0_89:                                ## =>This Inner Loop Header: Depth=1
	testb	$-33, (%rbx)
	jne	LBB0_88
	jmp	LBB0_40
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_21
	.long	L0_0_set_24
	.long	L0_0_set_29
	.long	L0_0_set_31
	.long	L0_0_set_33
	.long	L0_0_set_35
	.long	L0_0_set_36
	.long	L0_0_set_37
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Frameskip"

L_.str.1:                               ## @.str.1
	.asciz	"Auto"

	.comm	_currentConfig,48,3             ## @currentConfig
L_.str.2:                               ## @.str.2
	.asciz	"Sound Quality"

	.comm	_PsndRate,4,2                   ## @PsndRate
L_.str.3:                               ## @.str.3
	.asciz	"stereo"

	.comm	_POPT_EN_STEREO,4,2             ## @POPT_EN_STEREO
	.comm	_PicoOpt,4,2                    ## @PicoOpt
L_.str.4:                               ## @.str.4
	.asciz	"mono"

L_.str.5:                               ## @.str.5
	.asciz	"Region"

L_.str.6:                               ## @.str.6
	.asciz	"Auto: "

	.comm	_PicoAutoRgnOrder,4,2           ## @PicoAutoRgnOrder
	.comm	_PicoRegionOverride,4,2         ## @PicoRegionOverride
L_.str.7:                               ## @.str.7
	.asciz	"Japan NTSC"

L_.str.8:                               ## @.str.8
	.asciz	"Japan PAL"

L_.str.9:                               ## @.str.9
	.asciz	"USA"

L_.str.10:                              ## @.str.10
	.asciz	"Europe"

L_.str.11:                              ## @.str.11
	.asciz	"Scale factor"

L_.str.12:                              ## @.str.12
	.asciz	"Hor. scale (for low res. games)"

L_.str.13:                              ## @.str.13
	.asciz	"Hor. scale (for hi res. games)"

L_.str.14:                              ## @.str.14
	.asciz	"Wait for vsync"

L_.str.15:                              ## @.str.15
	.asciz	"never"

L_.str.16:                              ## @.str.16
	.asciz	"sometimes"

L_.str.17:                              ## @.str.17
	.asciz	"always"

L_.str.18:                              ## @.str.18
	.asciz	"unhandled custom_read %i: %s\n"

	.no_dead_strip	_custom_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function custom_read
_custom_read:                           ; @custom_read
	.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, x2
	mov	x2, x1
	ldr	w1, [x0]
	sub	w8, w1, #128
	cmp	w8, #9
	b.hi	LBB0_12
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x2
	bl	_strcasecmp
	cbnz	w0, LBB0_34
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_strtoul
	mov	w8, #-44101
	mov	w9, #-36101
	add	w8, w0, w8
	cmp	w8, w9
	mov	w8, #22050
Lloh4:
	adrp	x9, _PsndRate@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PsndRate@GOTPAGEOFF]
	csel	w8, w8, w0, lo
Lloh6:
	str	w8, [x9]
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	orr	w10, w9, #0x20
	cmp	w10, #104
	b.ne	LBB0_5
; %bb.4:
	ldrb	w9, [x8, #1]!
	str	x8, [sp, #8]
LBB0_5:
	orr	w9, w9, #0x20
	cmp	w9, #122
	b.ne	LBB0_7
; %bb.6:
	add	x8, x8, #1
	str	x8, [sp, #8]
LBB0_7:
	sub	x19, x8, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19, #1]!
	cmp	w8, #32
	b.eq	LBB0_8
; %bb.9:
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_41
; %bb.10:
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbnz	w0, LBB0_34
; %bb.11:
Lloh11:
	adrp	x8, _POPT_EN_STEREO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POPT_EN_STEREO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PicoOpt@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PicoOpt@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w8, w9, w8
	b	LBB0_42
LBB0_12:
Lloh17:
	adrp	x0, l_.str.18@PAGE
Lloh18:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_lprintf
	b	LBB0_34
LBB0_13:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x2
	bl	_strcasecmp
	cbnz	w0, LBB0_34
; %bb.14:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w2, #6
	bl	_strncasecmp
	cbz	w0, LBB0_43
; %bb.15:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_50
; %bb.16:
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_59
; %bb.17:
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_60
; %bb.18:
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_61
; %bb.19:
Lloh31:
	adrp	x1, l_.str.10@PAGE
Lloh32:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbnz	w0, LBB0_34
; %bb.20:
Lloh33:
	adrp	x8, _PicoRegionOverride@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PicoRegionOverride@GOTPAGEOFF]
	mov	w9, #8
	b	LBB0_62
LBB0_21:
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_strcasecmp
	cbnz	w0, LBB0_34
; %bb.22:
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_47
; %bb.23:
	mov	x0, x19
	bl	_atoi
	b	LBB0_48
LBB0_24:
Lloh39:
	adrp	x1, l_.str.14@PAGE
Lloh40:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x2
	bl	_strcasecmp
	cbnz	w0, LBB0_34
; %bb.25:
Lloh41:
	adrp	x1, l_.str.15@PAGE
Lloh42:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_49
; %bb.26:
Lloh43:
	adrp	x1, l_.str.16@PAGE
Lloh44:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_51
; %bb.27:
Lloh45:
	adrp	x1, l_.str.17@PAGE
Lloh46:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbnz	w0, LBB0_34
; %bb.28:
Lloh47:
	adrp	x8, _currentConfig@GOTPAGE
Lloh48:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
	ldr	w9, [x8, #12]
	and	w9, w9, #0xfffeffff
	orr	w9, w9, #0x2000
	b	LBB0_52
LBB0_29:
Lloh49:
	adrp	x1, l_.str.11@PAGE
Lloh50:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x2
	bl	_strcasecmp
	cbnz	w0, LBB0_34
; %bb.30:
	mov	x0, x19
	bl	_atof
Lloh51:
	adrp	x8, _currentConfig@GOTPAGE
Lloh52:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh53:
	str	x0, [x8, #32]
	mov	w0, #1
	b	LBB0_39
LBB0_31:
Lloh54:
	adrp	x1, l_.str.13@PAGE
Lloh55:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x2
	bl	_strcasecmp
	cbnz	w0, LBB0_34
; %bb.32:
	mov	x0, x19
	bl	_atof
Lloh56:
	adrp	x8, _currentConfig@GOTPAGE
Lloh57:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh58:
	str	x0, [x8, #16]
	mov	w0, #1
	b	LBB0_39
LBB0_33:
Lloh59:
	adrp	x1, l_.str.12@PAGE
Lloh60:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x2
	bl	_strcasecmp
	cbz	w0, LBB0_40
LBB0_34:
	mov	w0, #0
	b	LBB0_39
LBB0_35:
	mov	x0, x19
	bl	_atoi
Lloh61:
	adrp	x8, _currentConfig@GOTPAGE
Lloh62:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh63:
	str	x0, [x8, #40]
	mov	w0, #1
	b	LBB0_39
LBB0_36:
	mov	x0, x19
	bl	_atoi
Lloh64:
	adrp	x8, _currentConfig@GOTPAGE
Lloh65:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh66:
	str	w0, [x8, #8]
	mov	w8, #1000
	mul	w1, w0, w8
	mov	w0, #0
	b	LBB0_38
LBB0_37:
	mov	x0, x19
	bl	_atoi
Lloh67:
	adrp	x8, _currentConfig@GOTPAGE
Lloh68:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh69:
	str	w0, [x8, #4]
	mov	w8, #1000
	mul	w0, w0, w8
	mov	w1, #0
LBB0_38:
	bl	_Pico32xSetClocks
	mov	w0, #1
LBB0_39:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_40:
	mov	x0, x19
	bl	_atof
Lloh70:
	adrp	x8, _currentConfig@GOTPAGE
Lloh71:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh72:
	str	x0, [x8, #24]
	mov	w0, #1
	b	LBB0_39
LBB0_41:
Lloh73:
	adrp	x8, _POPT_EN_STEREO@GOTPAGE
Lloh74:
	ldr	x8, [x8, _POPT_EN_STEREO@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
Lloh76:
	adrp	x9, _PicoOpt@GOTPAGE
Lloh77:
	ldr	x9, [x9, _PicoOpt@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_42:
Lloh79:
	adrp	x9, _PicoOpt@GOTPAGE
Lloh80:
	ldr	x9, [x9, _PicoOpt@GOTPAGEOFF]
Lloh81:
	str	w8, [x9]
	mov	w0, #1
	b	LBB0_39
LBB0_43:
	mov	x0, x19
	bl	_strlen
Lloh82:
	adrp	x9, _PicoAutoRgnOrder@GOTPAGE
Lloh83:
	ldr	x9, [x9, _PicoAutoRgnOrder@GOTPAGEOFF]
	str	wzr, [x9]
Lloh84:
	adrp	x8, _PicoRegionOverride@GOTPAGE
Lloh85:
	ldr	x8, [x8, _PicoRegionOverride@GOTPAGEOFF]
Lloh86:
	str	wzr, [x8]
	cmp	w0, #6
	b.lt	LBB0_53
; %bb.44:
	add	x11, x19, w0, sxtw
	add	x8, x19, #5
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	w10, #32
	b.ne	LBB0_54
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	add	x8, x8, #1
	b	LBB0_45
LBB0_47:
	mov	w0, #-1
LBB0_48:
Lloh87:
	adrp	x8, _currentConfig@GOTPAGE
Lloh88:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh89:
	str	w0, [x8]
	mov	w0, #1
	b	LBB0_39
LBB0_49:
Lloh90:
	adrp	x8, _currentConfig@GOTPAGE
Lloh91:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
	ldr	w9, [x8, #12]
	mov	w10, #57343
	movk	w10, #65534, lsl #16
	and	w9, w9, w10
	b	LBB0_52
LBB0_50:
Lloh92:
	adrp	x8, _PicoRegionOverride@GOTPAGE
Lloh93:
	ldr	x8, [x8, _PicoRegionOverride@GOTPAGEOFF]
Lloh94:
	str	wzr, [x8]
	mov	w0, #1
	b	LBB0_39
LBB0_51:
Lloh95:
	adrp	x8, _currentConfig@GOTPAGE
Lloh96:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
	ldr	w9, [x8, #12]
	mov	w10, #8192
	movk	w10, #1, lsl #16
	orr	w9, w9, w10
LBB0_52:
	str	w9, [x8, #12]
LBB0_53:
	mov	w0, #1
	b	LBB0_39
LBB0_54:
	cmp	w10, #69
	b.eq	LBB0_63
; %bb.55:
	cmp	w10, #74
	b.eq	LBB0_65
; %bb.56:
	cmp	w10, #85
	b.ne	LBB0_68
; %bb.57:
	ldrb	w10, [x8, #1]
	cmp	w10, #83
	b.ne	LBB0_68
; %bb.58:
	mov	w10, #4
	b	LBB0_67
LBB0_59:
Lloh97:
	adrp	x8, _PicoRegionOverride@GOTPAGE
Lloh98:
	ldr	x8, [x8, _PicoRegionOverride@GOTPAGEOFF]
	mov	w0, #1
Lloh99:
	str	w0, [x8]
	b	LBB0_39
LBB0_60:
Lloh100:
	adrp	x8, _PicoRegionOverride@GOTPAGE
Lloh101:
	ldr	x8, [x8, _PicoRegionOverride@GOTPAGEOFF]
	mov	w9, #2
	b	LBB0_62
LBB0_61:
Lloh102:
	adrp	x8, _PicoRegionOverride@GOTPAGE
Lloh103:
	ldr	x8, [x8, _PicoRegionOverride@GOTPAGEOFF]
	mov	w9, #4
LBB0_62:
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_39
LBB0_63:
	ldrb	w10, [x8, #1]
	cmp	w10, #85
	b.ne	LBB0_68
; %bb.64:
	mov	w10, #8
	b	LBB0_67
LBB0_65:
	ldrb	w10, [x8, #1]
	cmp	w10, #80
	b.ne	LBB0_68
; %bb.66:
	mov	w10, #1
LBB0_67:
	str	w10, [x9]
	ldrb	w12, [x8]
	cbnz	w12, LBB0_69
	b	LBB0_53
LBB0_68:
	mov	w10, #0
	ldrb	w12, [x8]
	cbz	w12, LBB0_53
LBB0_69:                                ; =>This Inner Loop Header: Depth=1
	cmp	w12, #32
	b.eq	LBB0_71
; %bb.70:                               ;   in Loop: Header=BB0_69 Depth=1
	add	x8, x8, #1
	ldrb	w12, [x8]
	cbnz	w12, LBB0_69
	b	LBB0_53
LBB0_71:
	cmp	x8, x11
	b.hs	LBB0_53
LBB0_72:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x8]
	cmp	w12, #32
	b.ne	LBB0_74
; %bb.73:                               ;   in Loop: Header=BB0_72 Depth=1
	add	x8, x8, #1
	b	LBB0_72
LBB0_74:
	cmp	w12, #85
	b.eq	LBB0_79
; %bb.75:
	cmp	w12, #74
	b.eq	LBB0_81
; %bb.76:
	cmp	w12, #69
	b.ne	LBB0_85
; %bb.77:
	ldrb	w12, [x8, #1]
	cmp	w12, #85
	b.ne	LBB0_85
; %bb.78:
	mov	w12, #128
	b	LBB0_83
LBB0_79:
	ldrb	w12, [x8, #1]
	cmp	w12, #83
	b.ne	LBB0_85
; %bb.80:
	mov	w12, #64
	b	LBB0_83
LBB0_81:
	ldrb	w12, [x8, #1]
	cmp	w12, #80
	b.ne	LBB0_85
; %bb.82:
	mov	w12, #16
LBB0_83:
	orr	w10, w10, w12
	str	w10, [x9]
	b	LBB0_85
LBB0_84:                                ;   in Loop: Header=BB0_85 Depth=1
	add	x8, x8, #1
LBB0_85:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x8]
	cbz	w12, LBB0_53
; %bb.86:                               ;   in Loop: Header=BB0_85 Depth=1
	cmp	w12, #32
	b.ne	LBB0_84
; %bb.87:
	cmp	x8, x11
	b.hs	LBB0_53
LBB0_88:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8]
	cmp	w11, #32
	b.ne	LBB0_90
; %bb.89:                               ;   in Loop: Header=BB0_88 Depth=1
	add	x8, x8, #1
	b	LBB0_88
LBB0_90:
	cmp	w11, #85
	b.eq	LBB0_95
; %bb.91:
	cmp	w11, #74
	b.eq	LBB0_97
; %bb.92:
	cmp	w11, #69
	b.ne	LBB0_100
; %bb.93:
	ldrb	w11, [x8, #1]
	cmp	w11, #85
	b.ne	LBB0_100
; %bb.94:
	mov	w11, #2048
	b	LBB0_99
LBB0_95:
	ldrb	w11, [x8, #1]
	cmp	w11, #83
	b.ne	LBB0_100
; %bb.96:
	mov	w11, #1024
	b	LBB0_99
LBB0_97:
	ldrb	w11, [x8, #1]
	cmp	w11, #80
	b.ne	LBB0_100
; %bb.98:
	mov	w11, #256
LBB0_99:
	orr	w10, w10, w11
	str	w10, [x9]
LBB0_100:
	mov	x9, #0
LBB0_101:                               ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8, x9]
	orr	w10, w10, #0x20
	cmp	w10, #32
	b.eq	LBB0_53
; %bb.102:                              ;   in Loop: Header=BB0_101 Depth=1
	add	x9, x9, #1
	b	LBB0_101
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotStr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotStr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotStr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotStr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotStr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotStr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotStr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotStr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGotStr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotStr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh102, Lloh103
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_31-LBB0_2)>>2
	.byte	(LBB0_33-LBB0_2)>>2
	.byte	(LBB0_35-LBB0_2)>>2
	.byte	(LBB0_36-LBB0_2)>>2
	.byte	(LBB0_37-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Frameskip"

l_.str.1:                               ; @.str.1
	.asciz	"Auto"

	.comm	_currentConfig,48,3             ; @currentConfig
l_.str.2:                               ; @.str.2
	.asciz	"Sound Quality"

	.comm	_PsndRate,4,2                   ; @PsndRate
l_.str.3:                               ; @.str.3
	.asciz	"stereo"

	.comm	_POPT_EN_STEREO,4,2             ; @POPT_EN_STEREO
	.comm	_PicoOpt,4,2                    ; @PicoOpt
l_.str.4:                               ; @.str.4
	.asciz	"mono"

l_.str.5:                               ; @.str.5
	.asciz	"Region"

l_.str.6:                               ; @.str.6
	.asciz	"Auto: "

	.comm	_PicoAutoRgnOrder,4,2           ; @PicoAutoRgnOrder
	.comm	_PicoRegionOverride,4,2         ; @PicoRegionOverride
l_.str.7:                               ; @.str.7
	.asciz	"Japan NTSC"

l_.str.8:                               ; @.str.8
	.asciz	"Japan PAL"

l_.str.9:                               ; @.str.9
	.asciz	"USA"

l_.str.10:                              ; @.str.10
	.asciz	"Europe"

l_.str.11:                              ; @.str.11
	.asciz	"Scale factor"

l_.str.12:                              ; @.str.12
	.asciz	"Hor. scale (for low res. games)"

l_.str.13:                              ; @.str.13
	.asciz	"Hor. scale (for hi res. games)"

l_.str.14:                              ; @.str.14
	.asciz	"Wait for vsync"

l_.str.15:                              ; @.str.15
	.asciz	"never"

l_.str.16:                              ; @.str.16
	.asciz	"sometimes"

l_.str.17:                              ; @.str.17
	.asciz	"always"

l_.str.18:                              ; @.str.18
	.asciz	"unhandled custom_read %i: %s\n"

	.no_dead_strip	_custom_read
.subsections_via_symbols
