	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_core_init_default_filter_chain
_gl_core_init_default_filter_chain:     ## @gl_core_init_default_filter_chain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	cmpl	$0, 16(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.3:
	movq	_GL_CORE_FILTER_CHAIN_NEAREST@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_GL_CORE_FILTER_CHAIN_LINEAR@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_gl_core_filter_chain_create_default
	movl	%eax, %ecx
	movl	%eax, (%rbx)
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_CORE_FILTER_CHAIN_LINEAR,4,2 ## @GL_CORE_FILTER_CHAIN_LINEAR
	.comm	_GL_CORE_FILTER_CHAIN_NEAREST,4,2 ## @GL_CORE_FILTER_CHAIN_NEAREST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create filter chain.\n"

	.no_dead_strip	_gl_core_init_default_filter_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_core_init_default_filter_chain
_gl_core_init_default_filter_chain:     ; @gl_core_init_default_filter_chain
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _GL_CORE_FILTER_CHAIN_LINEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_CORE_FILTER_CHAIN_LINEAR@GOTPAGEOFF]
	ldr	x9, [x0, #8]
Lloh2:
	adrp	x10, _GL_CORE_FILTER_CHAIN_NEAREST@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GL_CORE_FILTER_CHAIN_NEAREST@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w0, [x8]
	bl	_gl_core_filter_chain_create_default
	str	w0, [x19]
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_CORE_FILTER_CHAIN_LINEAR,4,2 ; @GL_CORE_FILTER_CHAIN_LINEAR
	.comm	_GL_CORE_FILTER_CHAIN_NEAREST,4,2 ; @GL_CORE_FILTER_CHAIN_NEAREST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create filter chain.\n"

	.no_dead_strip	_gl_core_init_default_filter_chain
.subsections_via_symbols
