	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_set_image
_vulkan_set_image:                      ## @vulkan_set_image
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, 32(%rdi)
	movl	%edx, (%rdi)
	movq	%rcx, 24(%rdi)
	testq	%rdx, %rdx
	jle	LBB0_5
## %bb.1:
	movq	%r8, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	leal	(,%rdx,4), %esi
	callq	_realloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_retro_assert
	movq	%rbx, 16(%r15)
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	movq	_VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	movl	%edx, (%rbx,%rax,4)
	incq	%rax
	movl	(%r15), %edx
	cmpq	%rdx, %rax
	jb	LBB0_3
LBB0_4:
	movl	$1, 4(%r15)
	movq	%r14, 8(%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,4,2 ## @VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT
	.no_dead_strip	_vulkan_set_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vulkan_set_image
_vulkan_set_image:                      ; @vulkan_set_image
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	str	w2, [x0]
	stp	x3, x1, [x0, #24]
	cmp	x2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x20, x0
	ldr	x0, [x0, #16]
	lsl	w1, w2, #2
	bl	_realloc
	mov	x21, x0
	bl	_retro_assert
	str	x21, [x20, #16]
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x8, #0
Lloh0:
	adrp	x9, _VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	str	w10, [x21, x8, lsl #2]
	add	x8, x8, #1
	ldr	w10, [x20]
	cmp	x8, x10
	b.lo	LBB0_3
LBB0_4:
	mov	w8, #1
	str	w8, [x20, #4]
	str	x19, [x20, #8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,4,2 ; @VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT
	.no_dead_strip	_vulkan_set_image
.subsections_via_symbols
