	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_init_readback
_vulkan_init_readback:                  ## @vulkan_init_readback
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_recording_is_enabled
	cmpq	$0, (%r14)
	setne	%cl
	testl	%eax, %eax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %eax
	movl	%eax, (%rbx)
	cmpb	$1, %al
	jne	LBB0_4
## %bb.1:
	leaq	48(%rbx), %rdi
	movq	88(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	%xmm0, 68(%rbx)
	movq	_SCALER_FMT_ARGB8888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_SCALER_FMT_BGR24@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	_SCALER_TYPE_POINT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 48(%rbx)
	leaq	8(%rbx), %r14
	movdqu	%xmm0, 28(%rbx)
	movq	_SCALER_FMT_ABGR8888@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	%rcx, 8(%rbx)
	callq	_scaler_ctx_gen_filter
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	$0, (%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
LBB0_3:
	movq	%r14, %rdi
	callq	_scaler_ctx_gen_filter
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	$0, (%rbx)
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RARCH_ERR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_FMT_ARGB8888,4,2        ## @SCALER_FMT_ARGB8888
	.comm	_SCALER_FMT_BGR24,8,3           ## @SCALER_FMT_BGR24
	.comm	_SCALER_TYPE_POINT,8,3          ## @SCALER_TYPE_POINT
	.comm	_SCALER_FMT_ABGR8888,4,2        ## @SCALER_FMT_ABGR8888
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Vulkan]: Failed to initialize scaler context.\n"

	.no_dead_strip	_vulkan_init_readback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vulkan_init_readback
_vulkan_init_readback:                  ; @vulkan_init_readback
	.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
	mov	x19, x0
	bl	_config_get_ptr
	mov	x20, x0
	bl	_recording_is_enabled
	ldr	x8, [x20]
	cmp	x8, #0
	ccmp	w0, #0, #4, ne
	cset	w8, ne
	str	w8, [x19]
	b.eq	LBB0_4
; %bb.1:
	ldp	w9, w8, [x19, #88]
	stp	w9, w8, [x19, #76]
	str	w8, [x19, #72]
Lloh0:
	adrp	x10, _SCALER_FMT_ARGB8888@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SCALER_FMT_ARGB8888@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #64]
Lloh3:
	adrp	x10, _SCALER_FMT_BGR24@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SCALER_FMT_BGR24@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	str	x10, [x19, #56]
Lloh6:
	adrp	x11, _SCALER_TYPE_POINT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SCALER_TYPE_POINT@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	mov	x0, x19
	str	x11, [x0, #48]!
	stp	w9, w8, [x19, #36]
	str	w8, [x19, #32]
Lloh9:
	adrp	x8, _SCALER_FMT_ABGR8888@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCALER_FMT_ABGR8888@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #24]
	str	x10, [x19, #16]
	mov	x20, x19
	str	x11, [x20, #8]!
	bl	_scaler_ctx_gen_filter
	cbnz	w0, LBB0_3
; %bb.2:
	str	wzr, [x19]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
LBB0_3:
	mov	x0, x20
	bl	_scaler_ctx_gen_filter
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	str	wzr, [x19]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RARCH_ERR
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALER_FMT_ARGB8888,4,2        ; @SCALER_FMT_ARGB8888
	.comm	_SCALER_FMT_BGR24,8,3           ; @SCALER_FMT_BGR24
	.comm	_SCALER_TYPE_POINT,8,3          ; @SCALER_TYPE_POINT
	.comm	_SCALER_FMT_ABGR8888,4,2        ; @SCALER_FMT_ABGR8888
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Vulkan]: Failed to initialize scaler context.\n"

	.no_dead_strip	_vulkan_init_readback
.subsections_via_symbols
