	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw4field                     ## -- Begin function draw4field
	.p2align	4, 0x90
_draw4field:                            ## @draw4field
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movl	$1, -48(%rbp)
	movl	(%rdx), %eax
	movl	4(%rdx), %r15d
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	sarl	%eax
	movl	%eax, -72(%rbp)
	movl	%r15d, %eax
	sarl	%eax
	movl	%eax, -68(%rbp)
	movq	$0, -64(%rbp)
	movq	(%rsi), %rax
	movq	_CLUT4@GOTPCREL(%rip), %rbx
	movq	_CLUT8@GOTPCREL(%rip), %r12
	movq	_colourtable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$4, %rcx
	cmpq	(%r12), %rax
	leaq	-48(%rbp), %rdx
	cmoveq	%rdx, %rcx
	cmpq	(%rbx), %rax
	cmoveq	%rdx, %rcx
	movq	%rcx, -56(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_drawrect
	movq	%r12, %rcx
	movl	%r15d, %r12d
	shrl	$31, %r12d
	addl	%r15d, %r12d
	sarl	%r12d
	movl	%r12d, -64(%rbp)
	movl	$0, -60(%rbp)
	movq	(%r13), %rax
	cmpq	(%rbx), %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_colourtable@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	addq	$8, %rax
	movq	%rax, -56(%rbp)
	jmp	LBB0_4
LBB0_2:
	movl	$2, -48(%rbp)
	movq	_colourtable@GOTPCREL(%rip), %r15
LBB0_4:
	leaq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_drawrect
	movl	$0, -64(%rbp)
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movl	%ebx, -60(%rbp)
	movq	(%r13), %rax
	movq	_CLUT4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_CLUT8@GOTPCREL(%rip), %rcx
	je	LBB0_6
## %bb.5:
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rax
	addq	$12, %rax
	movq	%rax, -56(%rbp)
	jmp	LBB0_8
LBB0_6:
	movl	$3, -48(%rbp)
LBB0_8:
	leaq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_drawrect
	movl	%r12d, -64(%rbp)
	movl	%ebx, -60(%rbp)
	movq	(%r13), %rax
	movq	_CLUT4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_CLUT8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.11:
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)
	jmp	LBB0_12
LBB0_10:
	movl	$0, -48(%rbp)
LBB0_12:
	leaq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_drawrect
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLUT4,8,3                      ## @CLUT4
	.comm	_CLUT8,8,3                      ## @CLUT8
	.comm	_colourtable,8,3                ## @colourtable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw4field                     ; -- Begin function draw4field
	.p2align	2
_draw4field:                            ; @draw4field
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w8, #1
	str	w8, [sp]
	ldp	w26, w25, [x2]
	asr	w8, w26, #1
	asr	w9, w25, #1
	stp	w8, w9, [sp, #8]
	ldr	x8, [x1]
Lloh0:
	adrp	x24, _CLUT4@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CLUT4@GOTPAGEOFF]
Lloh2:
	adrp	x23, _CLUT8@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CLUT8@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x10, [x23]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh4:
	adrp	x22, _colourtable@GOTPAGE
Lloh5:
	ldr	x22, [x22, _colourtable@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, #4
	mov	x9, sp
	csel	x8, x9, x8, eq
	stp	xzr, x8, [sp, #16]
	add	x1, sp, #8
	mov	x2, x20
	mov	x3, x19
	bl	_drawrect
	cmp	w25, #0
	cinc	w8, w25, lt
	asr	w25, w8, #1
	stp	w25, wzr, [sp, #16]
	ldr	x8, [x20]
	ldr	x9, [x24]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #2
	str	w8, [sp]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x22]
	add	x8, x8, #8
	str	x8, [sp, #24]
LBB0_3:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_drawrect
	cmp	w26, #0
	cinc	w8, w26, lt
	asr	w26, w8, #1
	stp	wzr, w26, [sp, #16]
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x22]
	add	x8, x8, #12
	str	x8, [sp, #24]
	b	LBB0_7
LBB0_6:
	mov	w8, #3
	str	w8, [sp]
LBB0_7:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_drawrect
	stp	w25, w26, [sp, #16]
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x22]
	str	x8, [sp, #24]
	b	LBB0_11
LBB0_10:
	str	wzr, [sp]
LBB0_11:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_drawrect
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CLUT4,8,3                      ; @CLUT4
	.comm	_CLUT8,8,3                      ; @CLUT8
	.comm	_colourtable,8,3                ; @colourtable
.subsections_via_symbols
