	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_texture
_init_texture:                          ## @init_texture
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_GX_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GX_NEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-52(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	callq	_menu_display_get_fb_size
	movq	_g_tex@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.1:
	movq	_GX_TF_RGBA8@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_2:
	cmpq	$0, (%r13)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_3
## %bb.4:
	movq	_GX_TF_RGB565@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_GX_TF_RGB5A3@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r8d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_6:
	andl	$-4, %ecx
	andl	$-4, %r15d
	testq	%rax, %rax
	cmovel	%r14d, %r12d
	movq	_GX_CLAMP@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	movq	_GX_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addq	$4, %rbx
	movq	%rbx, %rdi
	movl	%r15d, %edx
	pushq	%rax
	pushq	%r9
	callq	_GX_InitTexObj
	addq	$16, %rsp
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r12d, %edx
	callq	_GX_InitTexObjFilterMode
	movq	_menu_tex@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	-52(%rbp), %edx
	movl	-48(%rbp), %ecx
	movq	_GX_TF_RGB5A3@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r14), %r9d
	movl	(%r13), %eax
	addq	$4, %rbx
	movq	%rbx, %rdi
	pushq	%rax
	pushq	%r9
	callq	_GX_InitTexObj
	addq	$16, %rsp
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r12d, %edx
	callq	_GX_InitTexObjFilterMode
	xorl	%eax, %eax
	callq	_GX_InvalidateTexAll
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_tex,8,2                      ## @g_tex
	.comm	_menu_tex,8,2                   ## @menu_tex
	.comm	_GX_LINEAR,4,2                  ## @GX_LINEAR
	.comm	_GX_NEAR,4,2                    ## @GX_NEAR
	.comm	_GX_TF_RGBA8,4,2                ## @GX_TF_RGBA8
	.comm	_GX_TF_RGB5A3,4,2               ## @GX_TF_RGB5A3
	.comm	_GX_TF_RGB565,4,2               ## @GX_TF_RGB565
	.comm	_GX_CLAMP,4,2                   ## @GX_CLAMP
	.comm	_GX_FALSE,4,2                   ## @GX_FALSE
	.no_dead_strip	_init_texture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_texture
_init_texture:                          ; @init_texture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_config_get_ptr
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _GX_LINEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_LINEAR@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _GX_NEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GX_NEAR@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	add	x0, sp, #4
	mov	x1, sp
	add	x2, sp, #8
	bl	_menu_display_get_fb_size
Lloh6:
	adrp	x8, _g_tex@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_tex@GOTPAGEOFF]
	ldr	w1, [x8]
	ldr	x9, [x21, #8]
Lloh8:
	adrp	x22, _GX_TF_RGB5A3@GOTPAGE
Lloh9:
	ldr	x22, [x22, _GX_TF_RGB5A3@GOTPAGEOFF]
	cbz	x9, LBB0_2
; %bb.1:
Lloh10:
	adrp	x9, _GX_TF_RGBA8@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GX_TF_RGBA8@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	x9, [x21]
Lloh12:
	adrp	x10, _GX_TF_RGB565@GOTPAGE
Lloh13:
	ldr	x10, [x10, _GX_TF_RGB565@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x10, x22, eq
LBB0_3:
	ldr	w4, [x9]
	and	w3, w20, #0xfffffffc
	and	w2, w19, #0xfffffffc
	cmp	x23, #0
	csel	w19, w25, w24, eq
Lloh14:
	adrp	x21, _GX_CLAMP@GOTPAGE
Lloh15:
	ldr	x21, [x21, _GX_CLAMP@GOTPAGEOFF]
	ldr	w5, [x21]
Lloh16:
	adrp	x23, _GX_FALSE@GOTPAGE
Lloh17:
	ldr	x23, [x23, _GX_FALSE@GOTPAGEOFF]
	ldr	w7, [x23]
	add	x20, x8, #4
	mov	x0, x20
	mov	x6, x5
	bl	_GX_InitTexObj
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	bl	_GX_InitTexObjFilterMode
Lloh18:
	adrp	x20, _menu_tex@GOTPAGE
Lloh19:
	ldr	x20, [x20, _menu_tex@GOTPAGEOFF]
	ldr	w1, [x20], #4
	ldp	w3, w2, [sp]
	ldr	w4, [x22]
	ldr	w5, [x21]
	ldr	w7, [x23]
	mov	x0, x20
	mov	x6, x5
	bl	_GX_InitTexObj
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	bl	_GX_InitTexObjFilterMode
	bl	_GX_InvalidateTexAll
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_g_tex,8,2                      ; @g_tex
	.comm	_menu_tex,8,2                   ; @menu_tex
	.comm	_GX_LINEAR,4,2                  ; @GX_LINEAR
	.comm	_GX_NEAR,4,2                    ; @GX_NEAR
	.comm	_GX_TF_RGBA8,4,2                ; @GX_TF_RGBA8
	.comm	_GX_TF_RGB5A3,4,2               ; @GX_TF_RGB5A3
	.comm	_GX_TF_RGB565,4,2               ; @GX_TF_RGB565
	.comm	_GX_CLAMP,4,2                   ; @GX_CLAMP
	.comm	_GX_FALSE,4,2                   ; @GX_FALSE
	.no_dead_strip	_init_texture
.subsections_via_symbols
