	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_init_default_filter_chain
_vulkan_init_default_filter_chain:      ## @vulkan_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	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-72(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	28(%rax), %ecx
	movl	%ecx, -20(%rbp)
	movl	24(%rax), %ecx
	movl	%ecx, -24(%rbp)
	leaq	20(%rax), %rcx
	movq	%rcx, -32(%rbp)
	movl	56(%rbx), %ecx
	movl	%ecx, -36(%rbp)
	movl	16(%rax), %ecx
	movl	%ecx, -40(%rbp)
	movq	48(%rbx), %rcx
	movq	(%rax), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, -44(%rbp)
	movl	44(%rbx), %ecx
	movl	%ecx, -48(%rbp)
	movl	40(%rbx), %ecx
	movl	%ecx, -52(%rbp)
	movl	36(%rbx), %ecx
	movl	%ecx, -56(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movl	32(%rbx), %ecx
	movl	%ecx, -64(%rbp)
	movl	8(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -72(%rbp)
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_VULKAN_FILTER_CHAIN_NEAREST@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_VULKAN_FILTER_CHAIN_LINEAR@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdi
	callq	_vulkan_filter_chain_create_default
	movl	%eax, (%rbx)
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VULKAN_FILTER_CHAIN_LINEAR,4,2 ## @VULKAN_FILTER_CHAIN_LINEAR
	.comm	_VULKAN_FILTER_CHAIN_NEAREST,4,2 ## @VULKAN_FILTER_CHAIN_NEAREST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create filter chain.\n"

	.no_dead_strip	_vulkan_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 vulkan_init_default_filter_chain
_vulkan_init_default_filter_chain:      ; @vulkan_init_default_filter_chain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	d0, [x8, #24]
	str	d0, [sp, #56]
	add	x9, x8, #20
	str	x9, [sp, #48]
	ldr	w9, [x19, #56]
	str	w9, [sp, #44]
	ldr	w9, [x8, #16]
	str	w9, [sp, #40]
	ldr	x9, [x19, #48]
	ldr	x10, [x8]
	ldr	w9, [x9, x10, lsl #2]
	ldr	w10, [x19, #44]
	stp	w10, w9, [sp, #32]
	ldur	d0, [x19, #36]
	str	d0, [sp, #24]
	ldr	w9, [x8, #12]
	ldr	w10, [x19, #32]
	stp	w10, w9, [sp, #16]
	ldr	w8, [x8, #8]
	ldr	w9, [x19, #16]
	stp	w9, w8, [sp, #8]
Lloh0:
	adrp	x8, _VULKAN_FILTER_CHAIN_LINEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VULKAN_FILTER_CHAIN_LINEAR@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh2:
	adrp	x10, _VULKAN_FILTER_CHAIN_NEAREST@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VULKAN_FILTER_CHAIN_NEAREST@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_vulkan_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, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VULKAN_FILTER_CHAIN_LINEAR,4,2 ; @VULKAN_FILTER_CHAIN_LINEAR
	.comm	_VULKAN_FILTER_CHAIN_NEAREST,4,2 ; @VULKAN_FILTER_CHAIN_NEAREST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create filter chain.\n"

	.no_dead_strip	_vulkan_init_default_filter_chain
.subsections_via_symbols
