	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_init_base                 ## -- Begin function menu_init_base
	.p2align	4, 0x90
_menu_init_base:                        ## @menu_init_base
	.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
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_menu_font_data@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	movq	_MENU_X2@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	movl	$10240, %eax                    ## imm = 0x2800
	movl	$40960, %edi                    ## imm = 0xA000
	cmovel	%eax, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_47
## %bb.3:
	xorl	%ecx, %ecx
	movq	_fontdata8x8@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
	addq	$8, %rcx
	cmpq	$256, %rsi                      ## imm = 0x100
	je	LBB0_23
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	addq	$8, %rax
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%rdi
	addq	$4, %rax
	cmpq	$8, %rdi
	je	LBB0_22
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx), %rbx
	addq	%rcx, %rbx
	movzbl	(%rdi,%rbx), %ebx
	testb	$-128, %bl
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	testb	$64, %bl
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	testb	$32, %bl
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	testb	$16, %bl
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	testb	$8, %bl
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	testb	$4, %bl
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=2
	testb	$2, %bl
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=2
	testb	$1, %bl
	je	LBB0_21
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	movb	$-16, -8(%rax)
	testb	$64, %bl
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	orb	$15, -8(%rax)
	testb	$32, %bl
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movb	$-16, -7(%rax)
	testb	$16, %bl
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	orb	$15, -7(%rax)
	testb	$8, %bl
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	movb	$-16, -6(%rax)
	testb	$4, %bl
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=2
	orb	$15, -6(%rax)
	testb	$2, %bl
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=2
	movb	$-16, -5(%rax)
	testb	$1, %bl
	je	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=2
	orb	$15, -5(%rax)
	jmp	LBB0_21
LBB0_23:
	cmpq	$0, (%r12)
	je	LBB0_28
## %bb.24:
	movq	(%r15), %rax
	leaq	10236(%rax), %rcx
	addq	$40959, %rax                    ## imm = 0x9FFF
	movl	$255, %edi
	.p2align	4, 0x90
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	3(%rcx,%rsi), %ebx
	movl	%ebx, %edx
	andb	$15, %dl
	shlb	$4, %bl
	orb	%dl, %bl
	movb	%bl, (%rax)
	movzbl	3(%rcx,%rsi), %edx
	movl	%edx, %ebx
	shrb	$4, %bl
	andb	$-16, %dl
	orb	%bl, %dl
	movb	%dl, -1(%rax)
	movzbl	2(%rcx,%rsi), %edx
	movl	%edx, %ebx
	andb	$15, %bl
	shlb	$4, %dl
	orb	%bl, %dl
	movb	%dl, -2(%rax)
	movzbl	2(%rcx,%rsi), %edx
	movl	%edx, %ebx
	shrb	$4, %bl
	andb	$-16, %dl
	orb	%bl, %dl
	movb	%dl, -3(%rax)
	movzbl	1(%rcx,%rsi), %edx
	movl	%edx, %ebx
	andb	$15, %bl
	shlb	$4, %dl
	orb	%bl, %dl
	movb	%dl, -4(%rax)
	movzbl	1(%rcx,%rsi), %edx
	movl	%edx, %ebx
	shrb	$4, %bl
	andb	$-16, %dl
	orb	%bl, %dl
	movb	%dl, -5(%rax)
	movzbl	(%rcx,%rsi), %edx
	movl	%edx, %ebx
	andb	$15, %bl
	shlb	$4, %dl
	orb	%bl, %dl
	movb	%dl, -6(%rax)
	movzbl	(%rcx,%rsi), %edx
	movl	%edx, %ebx
	shrb	$4, %bl
	andb	$-16, %dl
	orb	%bl, %dl
	movb	%dl, -7(%rax)
	movzbl	3(%rcx,%rsi), %edx
	movl	%edx, %ebx
	andb	$15, %bl
	shlb	$4, %dl
	orb	%bl, %dl
	movb	%dl, -8(%rax)
	movzbl	3(%rcx,%rsi), %edx
	movl	%edx, %ebx
	shrb	$4, %bl
	andb	$-16, %dl
	orb	%bl, %dl
	movb	%dl, -9(%rax)
	movzbl	2(%rcx,%rsi), %edx
	movl	%edx, %ebx
	andb	$15, %bl
	shlb	$4, %dl
	orb	%bl, %dl
	movb	%dl, -10(%rax)
	movzbl	2(%rcx,%rsi), %edx
	movl	%edx, %ebx
	shrb	$4, %bl
	andb	$-16, %dl
	orb	%bl, %dl
	movb	%dl, -11(%rax)
	movzbl	1(%rcx,%rsi), %edx
	movl	%edx, %ebx
	andb	$15, %bl
	shlb	$4, %dl
	orb	%bl, %dl
	movb	%dl, -12(%rax)
	movzbl	1(%rcx,%rsi), %edx
	movl	%edx, %ebx
	shrb	$4, %bl
	andb	$-16, %dl
	orb	%bl, %dl
	movb	%dl, -13(%rax)
	movzbl	(%rcx,%rsi), %edx
	movl	%edx, %ebx
	andb	$15, %bl
	shlb	$4, %dl
	orb	%bl, %dl
	movb	%dl, -14(%rax)
	movzbl	(%rcx,%rsi), %edx
	movl	%edx, %ebx
	shrb	$4, %bl
	andb	$-16, %dl
	orb	%bl, %dl
	movb	%dl, -15(%rax)
	addq	$-16, %rax
	addq	$-4, %rsi
	cmpl	$-40, %esi
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	addq	%rsi, %rcx
	subl	$1, %edi
	jae	LBB0_25
LBB0_28:
	leaq	-304(%rbp), %r14
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_plat_get_skin_dir
	cltq
	leaq	(%rax,%rbp), %rbx
	addq	$-304, %rbx                     ## imm = 0xFED0
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	movq	(%r15), %rdi
	movq	_READPNG_FONT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%r12)
	movl	(%rax), %edx
	setne	%cl
	movl	$160, %eax
	movl	$320, %r8d                      ## imm = 0x140
	cmovel	%eax, %r8d
	shll	$7, %ecx
	subl	$-128, %ecx
	movq	%r14, %rsi
	callq	_readpng
	movq	(%r15), %rdi
	movq	_me_mfont_w@GOTPCREL(%rip), %r12
	movq	_me_mfont_h@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	imull	(%r12), %eax
	movl	%eax, %ecx
	shll	$6, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rsi
	addq	%rdi, %rsi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	callq	_memcpy
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	movq	(%r15), %rdi
	movq	_READPNG_SELECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rsi
	callq	_readpng
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_46
## %bb.29:
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_lprintf
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	je	LBB0_30
LBB0_45:
	movq	%rbx, %rdi
	callq	_fclose
LBB0_46:
	movq	_LC_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_setlocale
LBB0_47:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_49
## %bb.48:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	leaq	-304(%rbp), %r12
	leaq	L_.str.5(%rip), %r13
	leaq	L_.str.7(%rip), %r14
	movabsq	$140771848102912, %r15          ## imm = 0x800800002400
	jmp	LBB0_31
LBB0_43:                                ##   in Loop: Header=BB0_31 Depth=1
	leaq	L_.str.9(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_lprintf
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_45
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%rbx, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_45
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movzbl	-304(%rbp), %eax
	cmpq	$47, %rax
	ja	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	btq	%rax, %r15
	jb	LBB0_44
LBB0_34:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$11, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_35
## %bb.39:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_43
## %bb.40:                              ##   in Loop: Header=BB0_31 Depth=1
	leaq	-288(%rbp), %rdi
	callq	_parse_hex_color
	testl	%eax, %eax
	js	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	_menu_sel_color@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_44
LBB0_35:                                ##   in Loop: Header=BB0_31 Depth=1
	leaq	-293(%rbp), %rdi
	callq	_parse_hex_color
	testl	%eax, %eax
	js	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	_menu_text_color@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_44
LBB0_37:                                ##   in Loop: Header=BB0_31 Depth=1
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_38
LBB0_42:                                ##   in Loop: Header=BB0_31 Depth=1
	leaq	L_.str.8(%rip), %rdi
LBB0_38:                                ##   in Loop: Header=BB0_31 Depth=1
	xorl	%eax, %eax
	callq	_lprintf
	jmp	LBB0_44
LBB0_49:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_font_data,8,3             ## @menu_font_data
	.comm	_MENU_X2,8,3                    ## @MENU_X2
	.comm	_fontdata8x8,8,3                ## @fontdata8x8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"font.png"

	.comm	_READPNG_FONT,4,2               ## @READPNG_FONT
	.comm	_me_mfont_w,4,2                 ## @me_mfont_w
	.comm	_me_mfont_h,4,2                 ## @me_mfont_h
L_.str.1:                               ## @.str.1
	.asciz	"selector.png"

	.comm	_READPNG_SELECTOR,4,2           ## @READPNG_SELECTOR
L_.str.2:                               ## @.str.2
	.asciz	"skin.txt"

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

L_.str.4:                               ## @.str.4
	.asciz	"found skin.txt\n"

L_.str.5:                               ## @.str.5
	.asciz	"text_color="

	.comm	_menu_text_color,4,2            ## @menu_text_color
L_.str.6:                               ## @.str.6
	.asciz	"skin.txt: parse error for text_color\n"

L_.str.7:                               ## @.str.7
	.asciz	"selection_color="

	.comm	_menu_sel_color,4,2             ## @menu_sel_color
L_.str.8:                               ## @.str.8
	.asciz	"skin.txt: parse error for selection_color\n"

L_.str.9:                               ## @.str.9
	.asciz	"skin.txt: parse error: %s\n"

	.comm	_LC_TIME,4,2                    ## @LC_TIME
L_.str.10:                              ## @.str.10
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_init_base                 ; -- Begin function menu_init_base
	.p2align	2
_menu_init_base:                        ; @menu_init_base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x20, _menu_font_data@GOTPAGE
Lloh4:
	ldr	x20, [x20, _menu_font_data@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
Lloh5:
	adrp	x21, _MENU_X2@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MENU_X2@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	mov	w8, #40960
	mov	w9, #10240
	csel	w0, w9, w8, eq
	mov	w1, #1
	bl	_calloc
	str	x0, [x20]
	cbz	x0, LBB0_32
; %bb.3:
	mov	x8, #0
	mov	x9, #0
Lloh7:
	adrp	x10, _fontdata8x8@GOTPAGE
Lloh8:
	ldr	x10, [x10, _fontdata8x8@GOTPAGEOFF]
	mov	w11, #240
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x8, x8, #8
	cmp	x9, #256
	b.eq	LBB0_23
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x12, #0
	add	x0, x0, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x12, x12, #1
	add	x0, x0, #4
	cmp	x12, #8
	b.eq	LBB0_4
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x10]
	add	x13, x13, x8
	ldrb	w13, [x13, x12]
	tbnz	w13, #7, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	tbnz	w13, #6, LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	tbnz	w13, #5, LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	tbnz	w13, #4, LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	tbnz	w13, #3, LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	tbnz	w13, #2, LBB0_20
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	tbnz	w13, #1, LBB0_21
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=2
	tbz	w13, #0, LBB0_6
	b	LBB0_22
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=2
	sturb	w11, [x0, #-8]
	tbz	w13, #6, LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=2
	ldurb	w14, [x0, #-8]
	orr	w14, w14, #0xf
	sturb	w14, [x0, #-8]
	tbz	w13, #5, LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=2
	sturb	w11, [x0, #-7]
	tbz	w13, #4, LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=2
	ldurb	w14, [x0, #-7]
	orr	w14, w14, #0xf
	sturb	w14, [x0, #-7]
	tbz	w13, #3, LBB0_12
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=2
	sturb	w11, [x0, #-6]
	tbz	w13, #2, LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=2
	ldurb	w14, [x0, #-6]
	orr	w14, w14, #0xf
	sturb	w14, [x0, #-6]
	tbz	w13, #1, LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=2
	sturb	w11, [x0, #-5]
	tbz	w13, #0, LBB0_6
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=2
	ldurb	w13, [x0, #-5]
	orr	w13, w13, #0xf
	sturb	w13, [x0, #-5]
	b	LBB0_6
LBB0_23:
	ldr	x8, [x21]
	cbz	x8, LBB0_28
; %bb.24:
	ldr	x9, [x20]
	mov	w8, #10236
	add	x8, x9, x8
	mov	w10, #40959
	add	x9, x9, x10
	mov	w12, #255
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	mov	x11, #0
	mov	x10, x12
LBB0_26:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x12, x9, x11
	ldrb	w13, [x8, #3]
	bfi	w13, w13, #4, #8
	strb	w13, [x12]
	ldrb	w13, [x8, #3]
	bfxil	w13, w13, #4, #4
	sturb	w13, [x12, #-1]
	ldrb	w13, [x8, #2]
	bfi	w13, w13, #4, #8
	sturb	w13, [x12, #-2]
	ldrb	w13, [x8, #2]
	bfxil	w13, w13, #4, #4
	sturb	w13, [x12, #-3]
	ldrb	w13, [x8, #1]
	bfi	w13, w13, #4, #8
	sturb	w13, [x12, #-4]
	ldrb	w13, [x8, #1]
	bfxil	w13, w13, #4, #4
	sturb	w13, [x12, #-5]
	ldrb	w13, [x8]
	bfi	w13, w13, #4, #8
	sturb	w13, [x12, #-6]
	ldrb	w13, [x8]
	bfxil	w13, w13, #4, #4
	sturb	w13, [x12, #-7]
	ldrb	w13, [x8, #3]
	bfi	w13, w13, #4, #8
	sturb	w13, [x12, #-8]
	ldrb	w13, [x8, #3]
	bfxil	w13, w13, #4, #4
	sturb	w13, [x12, #-9]
	ldrb	w13, [x8, #2]
	bfi	w13, w13, #4, #8
	sturb	w13, [x12, #-10]
	ldrb	w13, [x8, #2]
	bfxil	w13, w13, #4, #4
	sturb	w13, [x12, #-11]
	ldrb	w13, [x8, #1]
	bfi	w13, w13, #4, #8
	sturb	w13, [x12, #-12]
	ldrb	w13, [x8, #1]
	bfxil	w13, w13, #4, #4
	sturb	w13, [x12, #-13]
	ldrb	w13, [x8]
	bfi	w13, w13, #4, #8
	sturb	w13, [x12, #-14]
	ldrb	w13, [x8], #-4
	bfxil	w13, w13, #4, #4
	sturb	w13, [x12, #-15]
	sub	x11, x11, #16
	cmn	w11, #160
	b.ne	LBB0_26
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	sub	w12, w10, #1
	add	x9, x9, x11
	cbnz	w10, LBB0_25
LBB0_28:
	add	x19, sp, #16
	mov	w22, #256
	add	x0, sp, #16
	mov	w1, #256
	bl	_plat_get_skin_dir
	add	x19, x19, w0, sxtw
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcpy
	ldr	x0, [x20]
Lloh11:
	adrp	x8, _READPNG_FONT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _READPNG_FONT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	x8, [x21]
	cmp	x8, #0
	mov	w8, #128
	csel	w3, w8, w22, eq
	mov	w8, #320
	mov	w9, #160
	csel	w4, w9, w8, eq
	add	x1, sp, #16
	bl	_readpng
	ldr	x0, [x20]
Lloh14:
	adrp	x21, _me_mfont_w@GOTPAGE
Lloh15:
	ldr	x21, [x21, _me_mfont_w@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh16:
	adrp	x22, _me_mfont_h@GOTPAGE
Lloh17:
	ldr	x22, [x22, _me_mfont_h@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w8, w9, w8
	mov	w9, #62
	mul	w9, w8, w9
	orr	w10, w9, #0x1
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #1
	add	x1, x0, w9, sxtw
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_memcpy
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcpy
	ldr	x0, [x20]
Lloh20:
	adrp	x8, _READPNG_SELECTOR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _READPNG_SELECTOR@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	w3, [x21]
	ldr	w4, [x22]
	add	x1, sp, #16
	bl	_readpng
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcpy
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #16
	bl	_fopen
	cbz	x0, LBB0_31
; %bb.29:
	mov	x19, x0
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_lprintf
	mov	x0, x19
	bl	_feof
	cbz	w0, LBB0_34
LBB0_30:
	mov	x0, x19
	bl	_fclose
LBB0_31:
Lloh29:
	adrp	x8, _LC_TIME@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LC_TIME@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.10@PAGE
Lloh33:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_setlocale
LBB0_32:
	ldur	x8, [x29, #-96]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_48
; %bb.33:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_34:
	add	x27, sp, #16
	add	x20, x27, #16
	add	x21, x27, #11
	mov	w28, #1
	mov	x25, #9216
	movk	x25, #32776, lsl #32
Lloh37:
	adrp	x22, l_.str.5@PAGE
Lloh38:
	add	x22, x22, l_.str.5@PAGEOFF
Lloh39:
	adrp	x23, _menu_text_color@GOTPAGE
Lloh40:
	ldr	x23, [x23, _menu_text_color@GOTPAGEOFF]
Lloh41:
	adrp	x24, l_.str.7@PAGE
Lloh42:
	add	x24, x24, l_.str.7@PAGEOFF
Lloh43:
	adrp	x26, l_.str.9@PAGE
Lloh44:
	add	x26, x26, l_.str.9@PAGEOFF
	b	LBB0_38
LBB0_35:                                ;   in Loop: Header=BB0_38 Depth=1
	str	x27, [sp]
	mov	x0, x26
LBB0_36:                                ;   in Loop: Header=BB0_38 Depth=1
	bl	_lprintf
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, x19
	bl	_feof
	cbnz	w0, LBB0_30
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	mov	w1, #256
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_30
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	ldrb	w8, [sp, #16]
	cmp	w8, #47
	lsl	x8, x28, x8
	and	x8, x8, x25
	ccmp	x8, #0, #4, ls
	b.ne	LBB0_37
; %bb.40:                               ;   in Loop: Header=BB0_38 Depth=1
	add	x0, sp, #16
	mov	x1, x22
	mov	w2, #11
	bl	_strncmp
	cbz	x0, LBB0_44
; %bb.41:                               ;   in Loop: Header=BB0_38 Depth=1
	add	x0, sp, #16
	mov	x1, x24
	mov	w2, #16
	bl	_strncmp
	cbnz	x0, LBB0_35
; %bb.42:                               ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, x20
	bl	_parse_hex_color
	tbnz	w0, #31, LBB0_47
; %bb.43:                               ;   in Loop: Header=BB0_38 Depth=1
Lloh45:
	adrp	x8, _menu_sel_color@GOTPAGE
Lloh46:
	ldr	x8, [x8, _menu_sel_color@GOTPAGEOFF]
Lloh47:
	str	w0, [x8]
	b	LBB0_37
LBB0_44:                                ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, x21
	bl	_parse_hex_color
	tbnz	w0, #31, LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_38 Depth=1
	str	w0, [x23]
	b	LBB0_37
LBB0_46:                                ;   in Loop: Header=BB0_38 Depth=1
Lloh48:
	adrp	x0, l_.str.6@PAGE
Lloh49:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_36
LBB0_47:                                ;   in Loop: Header=BB0_38 Depth=1
Lloh50:
	adrp	x0, l_.str.8@PAGE
Lloh51:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_36
LBB0_48:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_font_data,8,3             ; @menu_font_data
	.comm	_MENU_X2,8,3                    ; @MENU_X2
	.comm	_fontdata8x8,8,3                ; @fontdata8x8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"font.png"

	.comm	_READPNG_FONT,4,2               ; @READPNG_FONT
	.comm	_me_mfont_w,4,2                 ; @me_mfont_w
	.comm	_me_mfont_h,4,2                 ; @me_mfont_h
l_.str.1:                               ; @.str.1
	.asciz	"selector.png"

	.comm	_READPNG_SELECTOR,4,2           ; @READPNG_SELECTOR
l_.str.2:                               ; @.str.2
	.asciz	"skin.txt"

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

l_.str.4:                               ; @.str.4
	.asciz	"found skin.txt\n"

l_.str.5:                               ; @.str.5
	.asciz	"text_color="

	.comm	_menu_text_color,4,2            ; @menu_text_color
l_.str.6:                               ; @.str.6
	.asciz	"skin.txt: parse error for text_color\n"

l_.str.7:                               ; @.str.7
	.asciz	"selection_color="

	.comm	_menu_sel_color,4,2             ; @menu_sel_color
l_.str.8:                               ; @.str.8
	.asciz	"skin.txt: parse error for selection_color\n"

l_.str.9:                               ; @.str.9
	.asciz	"skin.txt: parse error: %s\n"

	.comm	_LC_TIME,4,2                    ; @LC_TIME
l_.str.10:                              ; @.str.10
	.space	1

.subsections_via_symbols
