	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Sudoku_Update
_Sudoku_Update:                         ## @Sudoku_Update
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %eax
	shll	$7, %eax
	movq	(%rdi), %r9
	movslq	%ecx, %rcx
	movq	(%r9,%rcx,8), %r11
	movq	(%r11), %rcx
	addl	%eax, (%rdx,%rcx,4)
	movq	8(%r11), %rbx
	addl	%eax, (%rdx,%rbx,4)
	movq	16(%r11), %rbx
	addl	%eax, (%rdx,%rbx,4)
	movq	24(%r11), %rbx
	addl	%eax, (%rdx,%rbx,4)
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$10, %eax
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	movslq	%ecx, %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi,%rcx,8), %r12
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r10d, %r10d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	%ebx, %r15d
	movl	%ecx, %eax
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r10
	cmpq	$9, %r10
	je	LBB0_16
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r12,%r10,4), %rcx
	movq	(%rsi,%rcx,8), %rbx
	leaq	1(%rbx), %rdi
	movq	%rdi, (%rsi,%rcx,8)
	testq	%rbx, %rbx
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r9,%rcx,8), %r13
	movq	(%r13), %rcx
	movslq	%ecx, %rbx
	movl	(%rdx,%rbx,4), %edi
	leal	-1(%rdi), %ecx
	movl	%ecx, (%rdx,%rbx,4)
	cmpl	%eax, %edi
	cmovgl	%r15d, %ebx
	cmovgl	%eax, %ecx
	movq	8(%r13), %r15
	movslq	%r15d, %rdi
	movl	(%rdx,%rdi,4), %r8d
	leal	-1(%r8), %eax
	movl	%eax, (%rdx,%rdi,4)
	cmpl	%ecx, %r8d
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	%r15d, %ebx
	movl	%eax, %ecx
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	16(%r13), %r15
	movslq	%r15d, %rdi
	movl	(%rdx,%rdi,4), %eax
	leal	-1(%rax), %r8d
	movl	%r8d, (%rdx,%rdi,4)
	cmpl	%ecx, %eax
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%r15d, %ebx
	movl	%r8d, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	24(%r13), %r15
	movslq	%r15d, %rdi
	movl	(%rdx,%rdi,4), %eax
	leal	-1(%rax), %r8d
	movl	%r8d, (%rdx,%rdi,4)
	cmpl	%ecx, %eax
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%r15d, %ebx
	movl	%r8d, %ecx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	incq	%rcx
	cmpq	$9, %rcx
	je	LBB0_16
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r12,%rcx,4), %rdi
	decq	(%rsi,%rdi,8)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r9,%rdi,8), %rdi
	movq	(%rdi), %rbx
	incl	(%rdx,%rbx,4)
	movq	8(%rdi), %rbx
	incl	(%rdx,%rbx,4)
	movq	16(%rdi), %rbx
	incl	(%rdx,%rbx,4)
	movq	24(%rdi), %rdi
	incl	(%rdx,%rdi,4)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r14
	cmpq	$4, %r14
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r11,%r14,8), %rcx
	jmp	LBB0_1
LBB0_18:
	shll	$16, %eax
	orl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_Sudoku_Update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Sudoku_Update
_Sudoku_Update:                         ; @Sudoku_Update
	.cfi_startproc
; %bb.0:
	mov	x8, #0
	mov	w10, #0
	ldp	x9, x11, [x0]
	ldr	x12, [x9, w3, sxtw #3]
	lsl	w13, w4, #7
	ldp	x14, x15, [x12]
	lsl	x16, x14, #2
	ldr	w17, [x2, x16]
	add	w17, w17, w13
	str	w17, [x2, x16]
	lsl	x15, x15, #2
	ldr	w16, [x2, x15]
	add	w16, w16, w13
	str	w16, [x2, x15]
	ldp	x15, x16, [x12, #16]
	lsl	x15, x15, #2
	ldr	w17, [x2, x15]
	add	w17, w17, w13
	str	w17, [x2, x15]
	lsl	x15, x16, #2
	ldr	w16, [x2, x15]
	add	w13, w16, w13
	str	w13, [x2, x15]
	mov	w13, #10
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_4 Depth 2
	sbfiz	x14, x14, #3, #32
	ldr	x14, [x11, x14]
	cmp	w4, #0
	b.le	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x15, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x15, x15, #4
	cmp	x15, #36
	b.eq	LBB0_10
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x16, [x14, x15]
	lsl	x17, x16, #3
	ldr	x0, [x1, x17]
	add	x3, x0, #1
	str	x3, [x1, x17]
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x16, [x9, x16, lsl #3]
	ldp	x17, x0, [x16]
	sbfiz	x3, x17, #2, #32
	ldr	w5, [x2, x3]
	sub	w6, w5, #1
	str	w6, [x2, x3]
	cmp	w5, w13
	csel	w10, w10, w17, gt
	sbfiz	x17, x0, #2, #32
	ldr	w3, [x2, x17]
	sub	w5, w3, #1
	str	w5, [x2, x17]
	csel	w13, w13, w6, gt
	cmp	w3, w13
	csel	w10, w10, w0, gt
	csel	w13, w13, w5, gt
	ldp	x17, x16, [x16, #16]
	sbfiz	x0, x17, #2, #32
	ldr	w3, [x2, x0]
	sub	w5, w3, #1
	str	w5, [x2, x0]
	cmp	w3, w13
	csel	w10, w10, w17, gt
	csel	w13, w13, w5, gt
	sbfiz	x17, x16, #2, #32
	ldr	w0, [x2, x17]
	sub	w3, w0, #1
	str	w3, [x2, x17]
	cmp	w0, w13
	csel	w10, w10, w16, gt
	csel	w13, w13, w3, gt
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x15, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x15, x15, #4
	cmp	x15, #36
	b.eq	LBB0_10
LBB0_8:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x16, [x14, x15]
	lsl	x17, x16, #3
	ldr	x0, [x1, x17]
	subs	x0, x0, #1
	str	x0, [x1, x17]
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x16, [x9, x16, lsl #3]
	ldp	x17, x0, [x16]
	lsl	x17, x17, #2
	ldr	w3, [x2, x17]
	add	w3, w3, #1
	str	w3, [x2, x17]
	lsl	x17, x0, #2
	ldr	w0, [x2, x17]
	add	w0, w0, #1
	str	w0, [x2, x17]
	ldp	x17, x16, [x16, #16]
	lsl	x17, x17, #2
	ldr	w0, [x2, x17]
	add	w0, w0, #1
	str	w0, [x2, x17]
	lsl	x16, x16, #2
	ldr	w17, [x2, x16]
	add	w17, w17, #1
	str	w17, [x2, x16]
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, #1
	cmp	x8, #4
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x14, [x12, x8, lsl #3]
	b	LBB0_1
LBB0_12:
	orr	w0, w10, w13, lsl #16
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_Sudoku_Update
.subsections_via_symbols
