	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_buffer_chain_suballoc
_vulkan_buffer_chain_suballoc:          ## @vulkan_buffer_chain_suballoc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movq	16(%rdi), %rcx
	addl	%r8d, %esi
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	jl	LBB0_2
## %bb.1:
	leaq	(,%r8,4), %rax
	addq	8(%rcx), %rax
	movq	%rax, 8(%rdx)
	movl	4(%rcx), %eax
	movl	%eax, 4(%rdx)
	movl	%r8d, (%rdx)
	movl	8(%rdi), %eax
	leal	(%rsi,%rax), %ecx
	decl	%ecx
	negl	%eax
	andl	%ecx, %eax
	cltq
	movq	%rax, (%rdi)
	movl	$1, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vulkan_buffer_chain_suballoc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vulkan_buffer_chain_suballoc
_vulkan_buffer_chain_suballoc:          ; @vulkan_buffer_chain_suballoc
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x10, [x0, #16]
	ldr	w11, [x10]
	add	w9, w8, w1
	cmp	w11, w9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	ldr	x11, [x10, #8]
	add	x11, x11, x8, lsl #2
	str	x11, [x2, #8]
	ldr	w10, [x10, #4]
	stp	w8, w10, [x2]
	ldr	w8, [x0, #8]
	add	w9, w9, w8
	sub	w9, w9, #1
	neg	w8, w8
	and	w8, w9, w8
	sxtw	x8, w8
	str	x8, [x0]
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vulkan_buffer_chain_suballoc
.subsections_via_symbols
