	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_InitTexObjFilterMode        ## -- Begin function GX_InitTexObjFilterMode
	.p2align	4, 0x90
_GX_InitTexObjFilterMode:               ## @GX_InitTexObjFilterMode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	andl	$-17, %r12d
	movq	_GX_LINEAR@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%edx, (%rax)
	sete	%dil
	movl	$4, %esi
	movl	$1, %edx
	callq	__SHIFTL
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%ebx, (%r15)
	andl	$-225, %ebx
	movslq	%r14d, %rax
	leaq	_GX_InitTexObjFilterMode.GX2HWFiltConv(%rip), %rcx
	movl	(%rcx,%rax,4), %edi
	movl	$5, %esi
	movl	$3, %edx
	callq	__SHIFTL
	orl	%ebx, %eax
	movl	%eax, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @GX_InitTexObjFilterMode.GX2HWFiltConv
_GX_InitTexObjFilterMode.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_InitTexObjFilterMode        ; -- Begin function GX_InitTexObjFilterMode
	.p2align	2
_GX_InitTexObjFilterMode:               ; @GX_InitTexObjFilterMode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	and	w21, w8, #0xffffffef
Lloh0:
	adrp	x8, _GX_LINEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_LINEAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	cset	w0, eq
	mov	w1, #4
	mov	w2, #1
	bl	__SHIFTL
	orr	w8, w0, w21
	str	w8, [x20]
	and	w21, w8, #0xffffff1f
Lloh3:
	adrp	x8, _GX_InitTexObjFilterMode.GX2HWFiltConv@PAGE
Lloh4:
	add	x8, x8, _GX_InitTexObjFilterMode.GX2HWFiltConv@PAGEOFF
	ldr	w0, [x8, w19, sxtw #2]
	mov	w1, #5
	mov	w2, #3
	bl	__SHIFTL
	orr	w8, w0, w21
	str	w8, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @GX_InitTexObjFilterMode.GX2HWFiltConv
_GX_InitTexObjFilterMode.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
