	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function vulkan_draw_quad
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vulkan_draw_quad
	.p2align	4, 0x90
_vulkan_draw_quad:                      ## @vulkan_draw_quad
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movq	32(%r14), %rdx
	callq	_vulkan_transition_texture
	movq	(%r14), %rdx
	cmpq	24(%rbx), %rdx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_VK_PIPELINE_BIND_POINT_GRAPHICS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vkCmdBindPipeline
	movq	(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	_VULKAN_DIRTY_DYNAMIC_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 52(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_vulkan_check_dynamic_state
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdi
	addq	$8, %rsi
	leaq	-40(%rbp), %rcx
	movl	$4, %edx
	callq	_vulkan_buffer_chain_alloc
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	24(%r14), %rdi
	leaq	48(%rbx), %rsi
	movl	$4, %edx
	callq	_string_is_equal_fast
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	32(%r14), %rax
	movq	(%rax), %rax
	cmpq	32(%rbx), %rax
	jne	LBB0_6
## %bb.5:
	movq	8(%r14), %rax
	cmpq	40(%rbx), %rax
	je	LBB0_8
LBB0_6:
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdi
	addq	$8, %rsi
	leaq	-56(%rbp), %rcx
	movl	$4, %edx
	callq	_vulkan_buffer_chain_alloc
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	-48(%rbp), %rdi
	movq	24(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	addq	$4, %rsi
	callq	_vulkan_descriptor_manager_alloc
	movl	%eax, -20(%rbp)
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movl	-56(%rbp), %ecx
	movl	-52(%rbp), %edx
	movq	32(%r14), %r9
	subq	$8, %rsp
	movl	%eax, %esi
	movl	$4, %r8d
	pushq	8(%r14)
	callq	_vulkan_write_quad_descriptors
	addq	$16, %rsp
	movq	_VK_PIPELINE_BIND_POINT_GRAPHICS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edi
	movl	56(%rbx), %edx
	leaq	-20(%rbp), %r9
	xorl	%ecx, %ecx
	movl	$1, %r8d
	pushq	$0
	pushq	$0
	callq	_vkCmdBindDescriptorSets
	addq	$16, %rsp
	movq	32(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 40(%rbx)
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
LBB0_8:
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdi
	leaq	-40(%rbp), %rcx
	movl	$24, %edx
	callq	_vulkan_buffer_chain_alloc
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	-32(%rbp), %rdi
	addq	$16, %r14
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	xorps	%xmm4, %xmm4
	xorps	%xmm5, %xmm5
	movaps	%xmm2, %xmm3
	movaps	%xmm2, %xmm6
	movaps	%xmm2, %xmm7
	movq	%r14, %rsi
	callq	_vulkan_write_quad_vbo
	movl	(%rbx), %edi
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %r8
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_vkCmdBindVertexBuffers
	movl	(%rbx), %edi
	movl	$6, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_vkCmdDraw
LBB0_10:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_PIPELINE_BIND_POINT_GRAPHICS,4,2 ## @VK_PIPELINE_BIND_POINT_GRAPHICS
	.comm	_VULKAN_DIRTY_DYNAMIC_BIT,4,2   ## @VULKAN_DIRTY_DYNAMIC_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_draw_quad               ; -- Begin function vulkan_draw_quad
	.p2align	2
_vulkan_draw_quad:                      ; @vulkan_draw_quad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x0]
	ldr	x2, [x20, #32]
	bl	_vulkan_transition_texture
	ldr	x2, [x20]
	ldr	x8, [x19, #24]
	cmp	x2, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _VK_PIPELINE_BIND_POINT_GRAPHICS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VK_PIPELINE_BIND_POINT_GRAPHICS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_vkCmdBindPipeline
	ldr	x8, [x20]
	str	x8, [x19, #24]
Lloh3:
	adrp	x8, _VULKAN_DIRTY_DYNAMIC_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VULKAN_DIRTY_DYNAMIC_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #52]
	orr	w8, w9, w8
	str	w8, [x19, #52]
LBB0_2:
	mov	x0, x19
	bl	_vulkan_check_dynamic_state
	ldp	x8, x0, [x19, #8]
	add	x1, x8, #8
	add	x3, sp, #24
	mov	w2, #4
	bl	_vulkan_buffer_chain_alloc
	cbz	w0, LBB0_10
; %bb.3:
	ldr	x0, [x20, #24]
	add	x1, x19, #48
	mov	w2, #4
	bl	_string_is_equal_fast
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_6:
	ldp	x8, x0, [x19, #8]
	add	x1, x8, #8
	add	x3, sp, #8
	mov	w2, #4
	bl	_vulkan_buffer_chain_alloc
	cbz	w0, LBB0_10
; %bb.7:
	ldr	x0, [sp, #16]
	ldr	x1, [x20, #24]
	mov	w2, #4
	bl	_memcpy
	ldp	x9, x8, [x19, #8]
	ldr	w0, [x8]
	add	x1, x9, #4
	bl	_vulkan_descriptor_manager_alloc
	mov	x1, x0
	stur	w0, [x29, #-36]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldp	w3, w2, [sp, #8]
	ldr	x5, [x20, #32]
	ldr	x6, [x20, #8]
	mov	w4, #4
	bl	_vulkan_write_quad_descriptors
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _VK_PIPELINE_BIND_POINT_GRAPHICS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VK_PIPELINE_BIND_POINT_GRAPHICS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #56]
	sub	x5, x29, #36
	mov	w3, #0
	mov	w4, #1
	mov	w6, #0
	mov	x7, #0
	bl	_vkCmdBindDescriptorSets
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	str	x8, [x19, #32]
	ldr	x8, [x20, #8]
	str	x8, [x19, #40]
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	str	w8, [x19, #48]
LBB0_8:
	ldp	x1, x0, [x19, #8]
	add	x21, sp, #24
	add	x3, sp, #24
	mov	w2, #24
	bl	_vulkan_buffer_chain_alloc
	cbz	w0, LBB0_10
; %bb.9:
	ldr	x0, [sp, #32]
	add	x1, x20, #16
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	fmov	s3, #1.00000000
	movi	d4, #0000000000000000
	movi	d5, #0000000000000000
	fmov	s6, #1.00000000
	fmov	s7, #1.00000000
	bl	_vulkan_write_quad_vbo
	ldr	w0, [x19]
	orr	x3, x21, #0x4
	add	x4, sp, #24
	mov	w1, #0
	mov	w2, #1
	bl	_vkCmdBindVertexBuffers
	ldr	w0, [x19]
	mov	w1, #6
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_vkCmdDraw
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_PIPELINE_BIND_POINT_GRAPHICS,4,2 ; @VK_PIPELINE_BIND_POINT_GRAPHICS
	.comm	_VULKAN_DIRTY_DYNAMIC_BIT,4,2   ; @VULKAN_DIRTY_DYNAMIC_BIT
.subsections_via_symbols
