	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function display_cell
_display_cell:                          ## @display_cell
	.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	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	%ecx, %esi
	movl	%r8d, %edx
	callq	_XY2LINEAR
	movl	%eax, %r12d
	movq	24(%rbx), %rcx
	movl	$-1, %eax
	cmpl	(%rcx), %r12d
	jge	LBB0_15
## %bb.1:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movslq	%r12d, %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rdx,4), %esi
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movslq	%r15d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rax,%rcx,4), %eax
	cmpl	%r13d, %eax
	jge	LBB0_4
## %bb.3:
	addl	%r13d, %esi
	addl	48(%rbx), %eax
	subl	%eax, %esi
LBB0_4:
	movl	%esi, %r13d
	movl	56(%rbx), %edi
	callq	_COL_LAYOUT
	movq	_COL_COLUMN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	addl	16(%rbx), %r12d
	movq	24(%rbx), %rax
	cmpl	(%rax), %r12d
	setge	%al
	jmp	LBB0_8
LBB0_6:
	movl	20(%rbx), %ecx
	decl	%ecx
	movb	$1, %al
	cmpl	%r15d, %ecx
	je	LBB0_8
## %bb.7:
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %r12d
	sete	%al
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_10:
	movq	32(%rbx), %rsi
LBB0_11:
	movq	24(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rdx
	testb	%al, %al
	je	LBB0_13
## %bb.12:
	movq	40(%rbx), %r14
	jmp	LBB0_14
LBB0_13:
	movslq	%r13d, %rax
	addq	%rax, %r14
LBB0_14:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rcx
	callq	_printf
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COL_COLUMN,8,3                 ## @COL_COLUMN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s%s"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_display_cell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function display_cell
_display_cell:                          ; @display_cell
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	mov	x1, x3
	mov	x2, x4
	bl	_XY2LINEAR
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.1:
	mov	x22, x0
	ldp	x8, x9, [x20]
	ldr	w24, [x8, w0, sxtw #2]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x9, [x9, w21, sxtw #3]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w23
	b.ge	LBB0_4
; %bb.3:
	ldr	w9, [x20, #48]
	add	w10, w24, w23
	add	w8, w8, w9
	sub	w24, w10, w8
LBB0_4:
	ldr	w0, [x20, #56]
	bl	_COL_LAYOUT
Lloh0:
	adrp	x8, _COL_COLUMN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COL_COLUMN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x20, #16]
	ldr	x9, [x20, #24]
	ldr	w9, [x9]
	add	w8, w8, w22
	cmp	w8, w9
	cset	w8, ge
	sxtw	x9, w22
	cbnz	w21, LBB0_9
	b	LBB0_11
LBB0_6:
	mov	w0, #-1
	b	LBB0_16
LBB0_7:
	ldr	w8, [x20, #20]
	sub	w8, w8, #1
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.8:
	mov	w8, #1
	sxtw	x9, w22
	cbz	w21, LBB0_11
LBB0_9:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w22, w8
	cset	w8, eq
	sxtw	x9, w22
	cbnz	w21, LBB0_9
LBB0_11:
	ldr	x1, [x20, #32]
LBB0_12:
	ldr	x10, [x20, #24]
	ldr	x10, [x10, #8]
	ldr	x2, [x10, x9, lsl #3]
	cbz	w8, LBB0_14
; %bb.13:
	ldr	x3, [x20, #40]
	b	LBB0_15
LBB0_14:
	add	x3, x19, w24, sxtw
LBB0_15:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w0, #0
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_COL_COLUMN,8,3                 ; @COL_COLUMN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s%s"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_display_cell
.subsections_via_symbols
