	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_cg_filter_type
_gl_cg_filter_type:                     ## @gl_cg_filter_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	testl	%esi, %esi
	je	LBB0_4
## %bb.2:
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	decl	%esi
	movq	(%rcx,%rsi,8), %rcx
	movq	_RARCH_FILTER_UNSPEC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_4
## %bb.3:
	movq	_RARCH_FILTER_LINEAR@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	(%rax), %rcx
	sete	%sil
	movl	%esi, (%rdx)
	movl	$1, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_FILTER_UNSPEC,8,3        ## @RARCH_FILTER_UNSPEC
	.comm	_RARCH_FILTER_LINEAR,8,3        ## @RARCH_FILTER_LINEAR
	.no_dead_strip	_gl_cg_filter_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_cg_filter_type
_gl_cg_filter_type:                     ; @gl_cg_filter_type
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_5
; %bb.1:
	cbz	w1, LBB0_5
; %bb.2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	sub	w9, w1, #1
	ldr	x8, [x8, w9, uxtw #3]
Lloh0:
	adrp	x9, _RARCH_FILTER_UNSPEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RARCH_FILTER_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
Lloh3:
	adrp	x9, _RARCH_FILTER_LINEAR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RARCH_FILTER_LINEAR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x2]
	mov	w0, #1
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_FILTER_UNSPEC,8,3        ; @RARCH_FILTER_UNSPEC
	.comm	_RARCH_FILTER_LINEAR,8,3        ; @RARCH_FILTER_LINEAR
	.no_dead_strip	_gl_cg_filter_type
.subsections_via_symbols
