	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sita_reserve_2d
_sita_reserve_2d:                       ## @sita_reserve_2d
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movl	16(%rbx), %r10d
	movl	12(%rbx), %eax
	subq	$8, %rsp
	leaq	-80(%rbp), %r8
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	pushq	(%rbx)
	pushq	%rax
	pushq	%r10
	callq	_l2r_t2b
	addq	$32, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %r8
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	movq	-80(%rbp), %rax
	movq	(%rbx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movq	%rdx, (%rcx)
	movq	%rax, 8(%rcx)
	addq	%rdi, %rdx
	decq	%rdx
	movq	%rdx, 24(%rcx)
	addq	%r12, %rax
	decq	%rax
	movq	%rax, 16(%rcx)
	movq	%r8, %r12
LBB0_5:
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sita_reserve_2d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sita_reserve_2d
_sita_reserve_2d:                       ; @sita_reserve_2d
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock
	ldp	w7, w6, [x23, #12]
	ldr	x8, [x23]
	str	x8, [sp]
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x26
	mov	x3, x25
	mov	x5, x24
	bl	_l2r_t2b
	mov	x24, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	stp	x8, x10, [x19]
	add	x8, x22, x8
	sub	x8, x8, #1
	add	x9, x21, x10
	sub	x9, x9, #1
	stp	x9, x8, [x19, #16]
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sita_reserve_2d
.subsections_via_symbols
