	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_sync_texture_to_cpu     ## -- Begin function vulkan_sync_texture_to_cpu
	.p2align	4, 0x90
_vulkan_sync_texture_to_cpu:            ## @vulkan_sync_texture_to_cpu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, -24(%rbp)
	movq	$0, -8(%rbp)
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	cmpl	$0, 8(%rsi)
	je	LBB0_4
## %bb.2:
	movq	(%rsi), %rax
	movq	_VK_NULL_HANDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, -32(%rbp)
	movq	_VK_WHOLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	(%rdi), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rdx
	movl	$1, %esi
	callq	_vkInvalidateMappedMemoryRanges
LBB0_4:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE,4,2 ## @VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE
	.comm	_VK_NULL_HANDLE,8,3             ## @VK_NULL_HANDLE
	.comm	_VK_WHOLE_SIZE,4,2              ## @VK_WHOLE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_sync_texture_to_cpu     ; -- Begin function vulkan_sync_texture_to_cpu
	.p2align	2
_vulkan_sync_texture_to_cpu:            ; @vulkan_sync_texture_to_cpu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	cbz	x1, LBB0_4
; %bb.1:
	ldr	w8, [x1, #8]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _VK_NULL_HANDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VK_NULL_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh3:
	adrp	x8, _VK_WHOLE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VK_WHOLE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x0]
	ldr	w0, [x8]
	mov	x2, sp
	mov	w1, #1
	bl	_vkInvalidateMappedMemoryRanges
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE,4,2 ; @VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE
	.comm	_VK_NULL_HANDLE,8,3             ; @VK_NULL_HANDLE
	.comm	_VK_WHOLE_SIZE,4,2              ; @VK_WHOLE_SIZE
.subsections_via_symbols
