	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkAllTheSame
_checkAllTheSame:                       ## @checkAllTheSame
	.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
	movl	$1, (%rcx)
	movslq	(%rdi), %r9
	xorl	%r14d, %r14d
	cmpq	$2, %r9
	jl	LBB0_16
## %bb.1:
	movq	%rsi, %r15
	leal	-1(%r9), %eax
	testl	%edx, %edx
	cmovel	%r9d, %eax
	movq	(%rsi), %rsi
	movslq	(%rsi), %r8
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.2:
	movl	%eax, %ebx
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r8d, (%rsi,%rax,4)
	jne	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_4
LBB0_5:
	testl	%edx, %edx
	je	LBB0_8
## %bb.6:
	cmpl	%r8d, -4(%rsi,%r9,4)
	je	LBB0_8
## %bb.7:
	movl	$0, (%rcx)
	movl	(%rdi), %r9d
LBB0_8:
	movl	$8, 8(%r15)
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.9:
	movl	$0, (%rsi)
	cmpl	$2, (%rdi)
	jl	LBB0_12
## %bb.10:
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	8(%r15)
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
	movslq	(%rdi), %rax
	cmpq	%rax, %rcx
	jl	LBB0_11
LBB0_12:
	movq	16(%r15), %rax
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movl	(%rax,%r8,4), %ebx
	movl	8(%r15), %edi
	shll	$2, %edi
	callq	_palloc
	movq	%rax, 16(%r15)
	cmpl	$0, 8(%r15)
	jle	LBB0_16
## %bb.14:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%rax,%rcx,4)
	incq	%rcx
	movslq	8(%r15), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_15
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_checkAllTheSame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkAllTheSame
_checkAllTheSame:                       ; @checkAllTheSame
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w8, #1
	str	w8, [x3]
	ldr	w10, [x0]
	cmp	w10, #2
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_18
LBB0_2:
	mov	x19, x1
	sub	w11, w10, #1
	cmp	w2, #0
	csel	w13, w10, w11, eq
	ldr	x9, [x1]
	ldrsw	x8, [x9]
	cmp	w13, #2
	b.lo	LBB0_6
; %bb.3:
	add	x12, x9, #4
	sub	x13, x13, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12]
	cmp	w14, w8
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x12, #4
	subs	x13, x13, #1
	b.ne	LBB0_4
LBB0_6:
	cbz	w2, LBB0_9
; %bb.7:
	ldr	w11, [x9, w11, sxtw #2]
	cmp	w11, w8
	b.eq	LBB0_9
; %bb.8:
	str	wzr, [x3]
	ldr	w10, [x0]
LBB0_9:
	mov	w11, #8
	str	w11, [x19, #8]
	cmp	w10, #1
	b.lt	LBB0_13
; %bb.10:
	str	wzr, [x9]
	ldr	w10, [x0]
	cmp	w10, #2
	b.lt	LBB0_13
; %bb.11:
	mov	w10, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x19, #8]
	sdiv	w12, w10, w11
	msub	w11, w12, w11, w10
	str	w11, [x9, x10, lsl #2]
	add	x10, x10, #1
	ldrsw	x11, [x0]
	cmp	x10, x11
	b.lt	LBB0_12
LBB0_13:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_17
; %bb.14:
	ldr	w20, [x9, x8, lsl #2]
	ldr	w8, [x19, #8]
	lsl	w0, w8, #2
	bl	_palloc
	str	x0, [x19, #16]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x8, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	w20, [x0, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x9, [x19, #8]
	cmp	x8, x9
	b.lt	LBB0_16
LBB0_17:
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_checkAllTheSame
.subsections_via_symbols
