	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_transition_texture      ## -- Begin function vulkan_transition_texture
	.p2align	4, 0x90
_vulkan_transition_texture:             ## @vulkan_transition_texture
	.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	%rdx, %rbx
	movl	12(%rdx), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rcx
	movq	_VK_IMAGE_LAYOUT_PREINITIALIZED@GOTPCREL(%rip), %rax
	movq	_VK_IMAGE_LAYOUT_GENERAL@GOTPCREL(%rip), %r14
	movq	(%r14), %r8
	cmpq	(%rax), %rcx
	je	LBB0_3
## %bb.2:
	cmpq	%r8, %rcx
	jne	LBB0_7
LBB0_3:
	cmpl	$128, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_VK_ACCESS_HOST_WRITE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_VK_ACCESS_SHADER_READ_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_VK_PIPELINE_STAGE_HOST_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_vulkan_image_layout_transition
	addq	$32, %rsp
	jmp	LBB0_6
LBB0_5:
	xorl	%edi, %edi
	callq	_retro_assert
LBB0_6:
	movq	(%r14), %rax
	movq	%rax, (%rbx)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_IMAGE_LAYOUT_PREINITIALIZED,8,3 ## @VK_IMAGE_LAYOUT_PREINITIALIZED
	.comm	_VK_IMAGE_LAYOUT_GENERAL,8,3    ## @VK_IMAGE_LAYOUT_GENERAL
	.comm	_VK_ACCESS_HOST_WRITE_BIT,4,2   ## @VK_ACCESS_HOST_WRITE_BIT
	.comm	_VK_ACCESS_SHADER_READ_BIT,4,2  ## @VK_ACCESS_SHADER_READ_BIT
	.comm	_VK_PIPELINE_STAGE_HOST_BIT,4,2 ## @VK_PIPELINE_STAGE_HOST_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_transition_texture      ; -- Begin function vulkan_transition_texture
	.p2align	2
_vulkan_transition_texture:             ; @vulkan_transition_texture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	w2, [x2, #12]
	cbz	w2, LBB0_6
; %bb.1:
	ldr	x3, [x19]
Lloh0:
	adrp	x8, _VK_IMAGE_LAYOUT_PREINITIALIZED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VK_IMAGE_LAYOUT_PREINITIALIZED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _VK_IMAGE_LAYOUT_GENERAL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _VK_IMAGE_LAYOUT_GENERAL@GOTPAGEOFF]
	ldr	x4, [x20]
	cmp	x3, x8
	ccmp	x3, x4, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _VK_ACCESS_HOST_WRITE_BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VK_ACCESS_HOST_WRITE_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
Lloh8:
	adrp	x8, _VK_ACCESS_SHADER_READ_BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VK_ACCESS_SHADER_READ_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
Lloh11:
	adrp	x8, _VK_PIPELINE_STAGE_HOST_BIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VK_PIPELINE_STAGE_HOST_BIT@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
Lloh14:
	adrp	x8, _VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp]
	bl	_vulkan_image_layout_transition
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	bl	_retro_assert
LBB0_5:
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_IMAGE_LAYOUT_PREINITIALIZED,8,3 ; @VK_IMAGE_LAYOUT_PREINITIALIZED
	.comm	_VK_IMAGE_LAYOUT_GENERAL,8,3    ; @VK_IMAGE_LAYOUT_GENERAL
	.comm	_VK_ACCESS_HOST_WRITE_BIT,4,2   ; @VK_ACCESS_HOST_WRITE_BIT
	.comm	_VK_ACCESS_SHADER_READ_BIT,4,2  ; @VK_ACCESS_SHADER_READ_BIT
	.comm	_VK_PIPELINE_STAGE_HOST_BIT,4,2 ; @VK_PIPELINE_STAGE_HOST_BIT
	.comm	_VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,4,2 ; @VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT
.subsections_via_symbols
