	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_copy_staging_to_dynamic ## -- Begin function vulkan_copy_staging_to_dynamic
	.p2align	4, 0x90
_vulkan_copy_staging_to_dynamic:        ## @vulkan_copy_staging_to_dynamic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdx), %rax
	movq	_VULKAN_TEXTURE_DYNAMIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_retro_assert
	movq	(%r12), %rax
	movq	_VULKAN_TEXTURE_STAGING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_retro_assert
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_vulkan_sync_texture_to_gpu
	movl	12(%rbx), %edx
	movq	_VK_IMAGE_LAYOUT_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VK_ACCESS_TRANSFER_WRITE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r11d
	movq	_VK_PIPELINE_STAGE_TRANSFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_vulkan_image_layout_transition
	addq	$32, %rsp
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	24(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	$1, -56(%rbp)
	movq	_VK_IMAGE_ASPECT_COLOR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$1, -64(%rbp)
	movl	16(%r12), %esi
	movl	12(%rbx), %edx
	movq	_VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%r14d, %edi
	movl	$1, %r8d
	movq	%r13, %r9
	callq	_vkCmdCopyBufferToImage
	movl	12(%rbx), %edx
	movl	(%r12), %ecx
	movq	_VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	_VK_ACCESS_TRANSFER_WRITE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_VK_ACCESS_SHADER_READ_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_VK_PIPELINE_STAGE_TRANSFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r14d, %esi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_vulkan_image_layout_transition
	addq	$32, %rsp
	movl	(%r12), %eax
	movl	%eax, 8(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VULKAN_TEXTURE_DYNAMIC,8,3     ## @VULKAN_TEXTURE_DYNAMIC
	.comm	_VULKAN_TEXTURE_STAGING,8,3     ## @VULKAN_TEXTURE_STAGING
	.comm	_VK_IMAGE_LAYOUT_UNDEFINED,4,2  ## @VK_IMAGE_LAYOUT_UNDEFINED
	.comm	_VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,4,2 ## @VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL
	.comm	_VK_ACCESS_TRANSFER_WRITE_BIT,4,2 ## @VK_ACCESS_TRANSFER_WRITE_BIT
	.comm	_VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT,4,2 ## @VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT
	.comm	_VK_PIPELINE_STAGE_TRANSFER_BIT,4,2 ## @VK_PIPELINE_STAGE_TRANSFER_BIT
	.comm	_VK_IMAGE_ASPECT_COLOR_BIT,4,2  ## @VK_IMAGE_ASPECT_COLOR_BIT
	.comm	_VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,4,2 ## @VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
	.comm	_VK_ACCESS_SHADER_READ_BIT,4,2  ## @VK_ACCESS_SHADER_READ_BIT
	.comm	_VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,4,2 ## @VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_copy_staging_to_dynamic ; -- Begin function vulkan_copy_staging_to_dynamic
	.p2align	2
_vulkan_copy_staging_to_dynamic:        ; @vulkan_copy_staging_to_dynamic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _VULKAN_TEXTURE_DYNAMIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VULKAN_TEXTURE_DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_retro_assert
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _VULKAN_TEXTURE_STAGING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VULKAN_TEXTURE_STAGING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_retro_assert
	mov	x0, x21
	mov	x1, x22
	bl	_vulkan_sync_texture_to_gpu
	ldr	w2, [x19, #12]
Lloh6:
	adrp	x8, _VK_IMAGE_LAYOUT_UNDEFINED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VK_IMAGE_LAYOUT_UNDEFINED@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x23, _VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL@GOTPAGEOFF]
	ldr	w4, [x23]
Lloh11:
	adrp	x24, _VK_ACCESS_TRANSFER_WRITE_BIT@GOTPAGE
Lloh12:
	ldr	x24, [x24, _VK_ACCESS_TRANSFER_WRITE_BIT@GOTPAGEOFF]
	ldr	w6, [x24]
Lloh13:
	adrp	x8, _VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w7, [x8]
Lloh16:
	adrp	x25, _VK_PIPELINE_STAGE_TRANSFER_BIT@GOTPAGE
Lloh17:
	ldr	x25, [x25, _VK_PIPELINE_STAGE_TRANSFER_BIT@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	w5, #0
	bl	_vulkan_image_layout_transition
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldur	d0, [x19, #20]
	stur	d0, [sp, #20]
	mov	w8, #1
	str	w8, [sp, #16]
Lloh18:
	adrp	x9, _VK_IMAGE_ASPECT_COLOR_BIT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VK_IMAGE_ASPECT_COLOR_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	ldr	w1, [x22, #16]
	ldr	w2, [x19, #12]
	ldr	w3, [x23]
	add	x5, sp, #8
	mov	x0, x20
	mov	w4, #1
	bl	_vkCmdCopyBufferToImage
	ldr	w2, [x19, #12]
	ldr	w3, [x23]
Lloh21:
	adrp	x22, _VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL@GOTPAGE
Lloh22:
	ldr	x22, [x22, _VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL@GOTPAGEOFF]
	ldr	w4, [x22]
Lloh23:
	adrp	x8, _VK_ACCESS_SHADER_READ_BIT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VK_ACCESS_SHADER_READ_BIT@GOTPAGEOFF]
	ldr	w5, [x24]
Lloh25:
	ldr	w6, [x8]
	ldr	w7, [x25]
Lloh26:
	adrp	x8, _VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_vulkan_image_layout_transition
	ldr	w8, [x22]
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VULKAN_TEXTURE_DYNAMIC,8,3     ; @VULKAN_TEXTURE_DYNAMIC
	.comm	_VULKAN_TEXTURE_STAGING,8,3     ; @VULKAN_TEXTURE_STAGING
	.comm	_VK_IMAGE_LAYOUT_UNDEFINED,4,2  ; @VK_IMAGE_LAYOUT_UNDEFINED
	.comm	_VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,4,2 ; @VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL
	.comm	_VK_ACCESS_TRANSFER_WRITE_BIT,4,2 ; @VK_ACCESS_TRANSFER_WRITE_BIT
	.comm	_VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT,4,2 ; @VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT
	.comm	_VK_PIPELINE_STAGE_TRANSFER_BIT,4,2 ; @VK_PIPELINE_STAGE_TRANSFER_BIT
	.comm	_VK_IMAGE_ASPECT_COLOR_BIT,4,2  ; @VK_IMAGE_ASPECT_COLOR_BIT
	.comm	_VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,4,2 ; @VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
	.comm	_VK_ACCESS_SHADER_READ_BIT,4,2  ; @VK_ACCESS_SHADER_READ_BIT
	.comm	_VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,4,2 ; @VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT
.subsections_via_symbols
