	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function GX_InitTexObjLOD
LCPI0_0:
	.long	0xc0800000                      ## float -4
LCPI0_1:
	.long	0x40800000                      ## float 4
LCPI0_2:
	.long	0x407f5c29                      ## float 3.99000001
LCPI0_3:
	.long	0x42000000                      ## float 32
LCPI0_4:
	.long	0x41200000                      ## float 10
LCPI0_5:
	.long	0x41800000                      ## float 16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_GX_InitTexObjLOD
	.p2align	4, 0x90
_GX_InitTexObjLOD:                      ## @GX_InitTexObjLOD
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movss	%xmm1, -60(%rbp)                ## 4-byte Spill
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r12
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	ja	LBB0_3
## %bb.1:
	ucomiss	LCPI0_1(%rip), %xmm2
	movaps	%xmm2, %xmm0
	jne	LBB0_3
	jp	LBB0_3
## %bb.2:
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
LBB0_3:
	movl	$-130561, %ebx                  ## imm = 0xFFFE01FF
	andl	(%r12), %ebx
	mulss	LCPI0_3(%rip), %xmm0
	cvttss2si	%xmm0, %edi
	movl	$9, %esi
	movl	$8, %edx
	callq	__SHIFTL
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	%r15d, (%r12)
	andl	$-17, %r15d
	movq	_GX_LINEAR@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	sete	%dil
	movl	$4, %esi
	movl	$1, %edx
	callq	__SHIFTL
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	%ebx, (%r12)
	andl	$-225, %ebx
	movslq	%r13d, %rax
	leaq	_GX_InitTexObjLOD.GX2HWFiltConv(%rip), %rcx
	movl	(%rcx,%rax,4), %edi
	movl	$5, %esi
	movl	$3, %edx
	callq	__SHIFTL
	movl	%eax, %r14d
	orl	%ebx, %r14d
	movl	%r14d, (%r12)
	andl	$-257, %r14d                    ## imm = 0xFEFF
	xorl	%edi, %edi
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	sete	%dil
	movl	$8, %esi
	movl	$1, %edx
	callq	__SHIFTL
	movl	%eax, %r15d
	orl	%r14d, %r15d
	movl	%r15d, (%r12)
	andl	$-1572865, %r15d                ## imm = 0xFFE7FFFF
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	$19, %esi
	movl	$2, %edx
	callq	__SHIFTL
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	%ebx, (%r12)
	andl	$-2097153, %ebx                 ## imm = 0xFFDFFFFF
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	$21, %esi
	movl	$1, %edx
	callq	__SHIFTL
	orl	%ebx, %eax
	movl	%eax, (%r12)
	xorps	%xmm0, %xmm0
	movss	-56(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	xorps	%xmm1, %xmm1
	ja	LBB0_6
## %bb.4:
	ucomiss	LCPI0_4(%rip), %xmm2
	movaps	%xmm2, %xmm1
	jbe	LBB0_6
## %bb.5:
	movss	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
LBB0_6:
	movss	-60(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	ja	LBB0_9
## %bb.7:
	ucomiss	LCPI0_4(%rip), %xmm2
	movaps	%xmm2, %xmm0
	jbe	LBB0_9
## %bb.8:
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
LBB0_9:
	movl	$-256, %eax
	andl	4(%r12), %eax
	movss	LCPI0_5(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm1
	cvttss2si	%xmm1, %ecx
	movzbl	%cl, %ebx
	orl	%eax, %ebx
	movl	%ebx, 4(%r12)
	andl	$-65281, %ebx                   ## imm = 0xFFFF00FF
	mulss	%xmm2, %xmm0
	cvttss2si	%xmm0, %edi
	movl	$8, %esi
	movl	$8, %edx
	callq	__SHIFTL
	orl	%ebx, %eax
	movl	%eax, 4(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @GX_InitTexObjLOD.GX2HWFiltConv
_GX_InitTexObjLOD.GX2HWFiltConv:
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	1                               ## 0x1
	.long	5                               ## 0x5
	.long	2                               ## 0x2
	.long	6                               ## 0x6
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_GX_LINEAR,4,2                  ## @GX_LINEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_InitTexObjLOD               ; -- Begin function GX_InitTexObjLOD
	.p2align	2
_GX_InitTexObjLOD:                      ; @GX_InitTexObjLOD
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x21, x5
	mov	x22, x4
	mov	x20, x3
	fmov	s8, s1
	fmov	s9, s0
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	fmov	s0, #-4.00000000
	fcmp	s2, s0
	b.mi	LBB0_3
; %bb.1:
	fmov	s0, #4.00000000
	fcmp	s2, s0
	fmov	s0, s2
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #23593
	movk	w8, #16511, lsl #16
	fmov	s0, w8
LBB0_3:
	ldr	w8, [x19]
	and	w25, w8, #0xfffe01ff
	fcvtzs	w0, s0, #5
	mov	w1, #9
	mov	w2, #8
	bl	__SHIFTL
	orr	w8, w25, w0
	str	w8, [x19]
	and	w25, w8, #0xffffffef
Lloh0:
	adrp	x8, _GX_LINEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_LINEAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w24
	cset	w0, eq
	mov	w1, #4
	mov	w2, #1
	bl	__SHIFTL
	orr	w8, w0, w25
	str	w8, [x19]
	and	w24, w8, #0xffffff1f
Lloh3:
	adrp	x8, _GX_InitTexObjLOD.GX2HWFiltConv@PAGE
Lloh4:
	add	x8, x8, _GX_InitTexObjLOD.GX2HWFiltConv@PAGEOFF
	ldr	w0, [x8, w23, sxtw #2]
	mov	w1, #5
	mov	w2, #3
	bl	__SHIFTL
	orr	w8, w0, w24
	str	w8, [x19]
	and	w23, w8, #0xfffffeff
	tst	w22, #0xff
	cset	w0, eq
	mov	w1, #8
	mov	w2, #1
	bl	__SHIFTL
	orr	w8, w23, w0
	str	w8, [x19]
	and	w22, w8, #0xffe7ffff
	mov	x0, x21
	mov	w1, #19
	mov	w2, #2
	bl	__SHIFTL
	orr	w8, w22, w0
	str	w8, [x19]
	and	w21, w8, #0xffdfffff
	mov	x0, x20
	mov	w1, #21
	mov	w2, #1
	bl	__SHIFTL
	orr	w8, w21, w0
	movi	d0, #0000000000000000
	fmov	s1, #10.00000000
	fcmp	s9, s1
	fcsel	s2, s9, s1, le
	fcmp	s9, #0.0
	fcsel	s2, s0, s2, mi
	ldr	w9, [x19, #4]
	fcvtzs	w10, s2, #4
	bfxil	w9, w10, #0, #8
	fcmp	s8, s1
	fcsel	s1, s8, s1, le
	fcmp	s8, #0.0
	fcsel	s0, s0, s1, mi
	stp	w8, w9, [x19]
	and	w20, w9, #0xffff00ff
	fcvtzs	w0, s0, #4
	mov	w1, #8
	mov	w2, #8
	bl	__SHIFTL
	orr	w8, w20, w0
	str	w8, [x19, #4]
	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
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @GX_InitTexObjLOD.GX2HWFiltConv
_GX_InitTexObjLOD.GX2HWFiltConv:
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.long	5                               ; 0x5
	.long	2                               ; 0x2
	.long	6                               ; 0x6
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_GX_LINEAR,4,2                  ; @GX_LINEAR
.subsections_via_symbols
