	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CompleteBox
_CompleteBox:                           ## @CompleteBox
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	16(%rdi), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rax
	movl	%edx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	_COMPLETE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_1
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.2:
	movq	%rdi, %r14
	movq	_FLAG@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_11
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.4:
	movl	(%r14), %esi
	incl	%esi
	cmpl	%ebx, %esi
	jbe	LBB0_11
## %bb.5:
	movl	4(%r14), %esi
	incl	%esi
	cmpl	%r15d, %esi
	jbe	LBB0_11
## %bb.6:
	leaq	(%rax,%rcx,8), %rsi
	movq	%rdx, (%rsi)
	cmpq	$0, 16(%rax,%rcx,8)
	je	LBB0_8
## %bb.7:
	movq	_DEAD_BMP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 28(%r14)
	movq	_GAMEOVER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%r14)
	jmp	LBB0_10
LBB0_8:
	movq	8(%r14), %rdx
	movq	_GAMEOVER@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_10
## %bb.9:
	decl	24(%r14)
LBB0_10:
	cmpq	$0, 8(%rax,%rcx,8)
	jne	LBB0_11
## %bb.12:
	leal	-1(%r15), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leal	-1(%rbx), %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_CompleteBox
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_CompleteBox
	leal	1(%r15), %r13d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_CompleteBox
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_CompleteBox
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_CompleteBox
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_CompleteBox
	incl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_CompleteBox
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_CompleteBox
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CompleteBox                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COMPLETE,8,3                   ## @COMPLETE
	.comm	_FLAG,8,3                       ## @FLAG
	.comm	_DEAD_BMP,4,2                   ## @DEAD_BMP
	.comm	_GAMEOVER,8,3                   ## @GAMEOVER
	.no_dead_strip	_CompleteBox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CompleteBox
_CompleteBox:                           ; @CompleteBox
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #16]
	ldr	x8, [x8, w1, uxtw #3]
	mov	w9, #24
	umaddl	x9, w2, w9, x8
	ldr	x10, [x9]
Lloh0:
	adrp	x11, _COMPLETE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x21, x1
	cbz	w1, LBB0_1
; %bb.3:
Lloh3:
	adrp	x12, _FLAG@GOTPAGE
Lloh4:
	ldr	x12, [x12, _FLAG@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	cmp	x10, x12
	b.eq	LBB0_1
; %bb.4:
	mov	x20, x2
	cbz	w2, LBB0_1
; %bb.5:
	mov	x19, x0
	ldr	w10, [x0]
	add	w10, w10, #1
	cmp	w10, w21
	b.ls	LBB0_1
; %bb.6:
	ldr	w10, [x19, #4]
	add	w10, w10, #1
	cmp	w10, w20
	b.ls	LBB0_1
; %bb.7:
	mov	w10, w20
	str	x11, [x9]
	mov	w9, #24
	madd	x9, x10, x9, x8
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_9
; %bb.8:
Lloh6:
	adrp	x9, _DEAD_BMP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DEAD_BMP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x19, #28]
Lloh9:
	adrp	x9, _GAMEOVER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GAMEOVER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	b	LBB0_11
LBB0_9:
	ldr	x9, [x19, #8]
Lloh12:
	adrp	x11, _GAMEOVER@GOTPAGE
Lloh13:
	ldr	x11, [x11, _GAMEOVER@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x9, x11
	b.eq	LBB0_11
; %bb.10:
	ldr	w9, [x19, #24]
	sub	w9, w9, #1
	str	w9, [x19, #24]
LBB0_11:
	mov	w9, #24
	madd	x8, x10, x9, x8
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_1
; %bb.12:
	sub	w22, w20, #1
	sub	w23, w21, #1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_CompleteBox
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	bl	_CompleteBox
	add	w24, w20, #1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_CompleteBox
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_CompleteBox
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_CompleteBox
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_CompleteBox
	add	w21, w21, #1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_CompleteBox
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_CompleteBox
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_CompleteBox
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_COMPLETE,8,3                   ; @COMPLETE
	.comm	_FLAG,8,3                       ; @FLAG
	.comm	_DEAD_BMP,4,2                   ; @DEAD_BMP
	.comm	_GAMEOVER,8,3                   ; @GAMEOVER
	.no_dead_strip	_CompleteBox
.subsections_via_symbols
