	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_acquire_wait_fences
_vulkan_acquire_wait_fences:            ## @vulkan_acquire_wait_fences
	.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	%rdi, %rbx
	movq	_VK_STRUCTURE_TYPE_FENCE_CREATE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	(%rdi), %r15d
	movq	8(%rdi), %rax
	leaq	(%rax,%r15,8), %r14
	movq	(%rax,%r15,8), %rax
	movq	_VK_NULL_HANDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movl	24(%rbx), %edi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_vkCreateFence
	jmp	LBB0_5
LBB0_1:
	movq	16(%rbx), %rax
	cmpl	$0, (%rax,%r15,4)
	je	LBB0_3
## %bb.2:
	movl	24(%rbx), %edi
	movq	_UINT64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_vkWaitForFences
LBB0_3:
	movl	24(%rbx), %edi
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_vkResetFences
LBB0_5:
	movq	16(%rbx), %rax
	movl	$0, (%rax,%r15,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,4,2 ## @VK_STRUCTURE_TYPE_FENCE_CREATE_INFO
	.comm	_VK_NULL_HANDLE,8,3             ## @VK_NULL_HANDLE
	.comm	_UINT64_MAX,4,2                 ## @UINT64_MAX
	.no_dead_strip	_vulkan_acquire_wait_fences
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vulkan_acquire_wait_fences
_vulkan_acquire_wait_fences:            ; @vulkan_acquire_wait_fences
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _VK_STRUCTURE_TYPE_FENCE_CREATE_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VK_STRUCTURE_TYPE_FENCE_CREATE_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w21, [x0]
	ldr	x8, [x0, #8]
	add	x20, x8, x21, lsl #3
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _VK_NULL_HANDLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VK_NULL_HANDLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	add	x1, sp, #8
	mov	x2, #0
	mov	x3, x20
	bl	_vkCreateFence
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x21, lsl #2]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #24]
Lloh6:
	adrp	x8, _UINT64_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UINT64_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w1, #1
	mov	x2, x20
	mov	w3, #1
	bl	_vkWaitForFences
LBB0_4:
	ldr	w0, [x19, #24]
	mov	w1, #1
	mov	x2, x20
	bl	_vkResetFences
LBB0_5:
	ldr	x8, [x19, #16]
	str	wzr, [x8, x21, lsl #2]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,4,2 ; @VK_STRUCTURE_TYPE_FENCE_CREATE_INFO
	.comm	_VK_NULL_HANDLE,8,3             ; @VK_NULL_HANDLE
	.comm	_UINT64_MAX,4,2                 ; @UINT64_MAX
	.no_dead_strip	_vulkan_acquire_wait_fences
.subsections_via_symbols
