	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_DrawField
_CG_DrawField:                          ## @CG_DrawField
	.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
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%edx, %edx
	jle	LBB0_16
## %bb.1:
	movl	%edi, %r14d
	cmpl	$5, %edx
	movl	$5, %ebx
	cmovll	%edx, %ebx
	leal	-1(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_3:
	cmpl	$9, %ecx
	movl	$9, %eax
	cmovll	%ecx, %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	jmp	LBB0_8
LBB0_4:
	cmpl	$99, %ecx
	movl	$99, %eax
	cmovll	%ecx, %eax
	cmpl	$-8, %eax
	movl	$-9, %ecx
	jmp	LBB0_7
LBB0_5:
	cmpl	$999, %ecx                      ## imm = 0x3E7
	movl	$999, %eax                      ## imm = 0x3E7
	cmovll	%ecx, %eax
	cmpl	$-98, %eax
	movl	$-99, %ecx
	jmp	LBB0_7
LBB0_6:
	cmpl	$9999, %ecx                     ## imm = 0x270F
	movl	$9999, %eax                     ## imm = 0x270F
	cmovll	%ecx, %eax
	cmpl	$-998, %eax                     ## imm = 0xFC1A
	movl	$-999, %ecx                     ## imm = 0xFC19
LBB0_7:
	cmovgel	%eax, %ecx
LBB0_8:
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_Com_sprintf
	movq	%r12, %rdi
	callq	_strlen
	cmpl	%ebx, %eax
	cmovgel	%ebx, %eax
	movb	-64(%rbp), %cl
	testb	%cl, %cl
	je	LBB0_16
## %bb.9:
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	subl	%eax, %ebx
	movq	_CHAR_WIDTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	%edx, %ebx
	addl	%r14d, %ebx
	addl	$2, %ebx
	movl	%eax, %r14d
	movl	$1, %r13d
	movq	_CHAR_HEIGHT@GOTPCREL(%rip), %r12
	movq	_cgs@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$45, %cl
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_STAT_MINUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movsbl	%cl, %eax
	addl	$-48, %eax
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r12), %ecx
	movq	(%r15), %rsi
	cltq
	movl	(%rsi,%rax,4), %r8d
	movl	%ebx, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_CG_DrawPic
	movzbl	-64(%rbp,%r13), %ecx
	testb	%cl, %cl
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_CHAR_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %ebx
	leaq	1(%r13), %rax
	cmpl	%r13d, %r14d
	movq	%rax, %r13
	jne	LBB0_11
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i"

	.comm	_CHAR_WIDTH,4,2                 ## @CHAR_WIDTH
	.comm	_STAT_MINUS,4,2                 ## @STAT_MINUS
	.comm	_CHAR_HEIGHT,4,2                ## @CHAR_HEIGHT
	.comm	_cgs,8,3                        ## @cgs
	.no_dead_strip	_CG_DrawField
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawField
_CG_DrawField:                          ; @CG_DrawField
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w2, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w8, #5
	cmp	w2, #5
	csel	w21, w2, w8, lt
	sub	w8, w21, #1
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	w8, #9
	cmp	w3, #9
	csel	w8, w3, w8, lt
	cmp	w8, #0
	csel	w3, w8, wzr, gt
	b	LBB0_8
LBB0_4:
	mov	w8, #99
	cmp	w3, #99
	csel	w8, w3, w8, lt
	cmn	w8, #9
	mov	w9, #-9
	b	LBB0_7
LBB0_5:
	mov	w8, #999
	cmp	w3, #999
	csel	w8, w3, w8, lt
	cmn	w8, #99
	mov	w9, #-99
	b	LBB0_7
LBB0_6:
	mov	w8, #9999
	cmp	w3, w8
	csel	w8, w3, w8, lt
	cmn	w8, #999
	mov	w9, #-999
LBB0_7:
	csel	w3, w8, w9, gt
LBB0_8:
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_Com_sprintf
	add	x0, sp, #8
	bl	_strlen
	cmp	w0, w21
	csel	w9, w0, w21, lt
	ldrb	w8, [sp, #8]
	cbz	w8, LBB0_13
; %bb.9:
	cbz	w9, LBB0_13
; %bb.10:
	sub	w10, w21, w9
Lloh7:
	adrp	x21, _CHAR_WIDTH@GOTPAGE
Lloh8:
	ldr	x21, [x21, _CHAR_WIDTH@GOTPAGEOFF]
	ldr	w2, [x21]
	madd	w10, w10, w2, w20
	add	w20, w10, #2
	sub	w22, w9, #1
	add	x9, sp, #8
	add	x23, x9, #1
Lloh9:
	adrp	x24, _STAT_MINUS@GOTPAGE
Lloh10:
	ldr	x24, [x24, _STAT_MINUS@GOTPAGEOFF]
Lloh11:
	adrp	x25, _CHAR_HEIGHT@GOTPAGE
Lloh12:
	ldr	x25, [x25, _CHAR_HEIGHT@GOTPAGEOFF]
Lloh13:
	adrp	x26, _cgs@GOTPAGE
Lloh14:
	ldr	x26, [x26, _cgs@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	and	w9, w8, #0xff
	sxtb	w8, w8
	ldr	w10, [x24]
	sub	w8, w8, #48
	cmp	w9, #45
	csel	w8, w10, w8, eq
	ldr	w3, [x25]
	ldr	x9, [x26]
	ldr	w4, [x9, w8, sxtw #2]
	mov	x0, x20
	mov	x1, x19
	bl	_CG_DrawPic
	ldrb	w8, [x23], #1
	subs	w22, w22, #1
	cset	w9, hs
	cbz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x21]
	add	w20, w2, w20
	tbnz	w9, #0, LBB0_11
LBB0_13:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i"

	.comm	_CHAR_WIDTH,4,2                 ; @CHAR_WIDTH
	.comm	_STAT_MINUS,4,2                 ; @STAT_MINUS
	.comm	_CHAR_HEIGHT,4,2                ; @CHAR_HEIGHT
	.comm	_cgs,8,3                        ; @cgs
	.no_dead_strip	_CG_DrawField
.subsections_via_symbols
