	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_drawThings                  ## -- Begin function AM_drawThings
	.p2align	4, 0x90
_AM_drawThings:                         ## @AM_drawThings
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_numsectors@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movslq	%edi, %r14
	xorl	%edx, %edx
	movq	_thintriangle_guy@GOTPCREL(%rip), %rsi
	movq	_NUMTHINTRIANGLEGUYLINES@GOTPCREL(%rip), %rbx
	movq	_FRACBITS@GOTPCREL(%rip), %r15
	movq	_lightlev@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_sectors@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdx,8), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi), %edi
	movl	(%rbx), %esi
	movzbl	(%r15), %ecx
	movl	$16, %edx
	shll	%cl, %edx
	movl	16(%r13), %ecx
	movq	(%r12), %r8
	addq	%r14, %r8
	movl	8(%r13), %eax
	movl	12(%r13), %r9d
	movl	%eax, (%rsp)
	callq	_AM_drawLineCharacter
	movq	_thintriangle_guy@GOTPCREL(%rip), %rsi
	movq	(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_numsectors@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numsectors,4,2                 ## @numsectors
	.comm	_sectors,8,3                    ## @sectors
	.comm	_thintriangle_guy,4,2           ## @thintriangle_guy
	.comm	_NUMTHINTRIANGLEGUYLINES,4,2    ## @NUMTHINTRIANGLEGUYLINES
	.comm	_FRACBITS,4,2                   ## @FRACBITS
	.comm	_lightlev,8,3                   ## @lightlev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_drawThings                  ; -- Begin function AM_drawThings
	.p2align	2
_AM_drawThings:                         ; @AM_drawThings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x19, _numsectors@GOTPAGE
Lloh1:
	ldr	x19, [x19, _numsectors@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, #0
Lloh2:
	adrp	x21, _sectors@GOTPAGE
Lloh3:
	ldr	x21, [x21, _sectors@GOTPAGEOFF]
Lloh4:
	adrp	x22, _thintriangle_guy@GOTPAGE
Lloh5:
	ldr	x22, [x22, _thintriangle_guy@GOTPAGEOFF]
Lloh6:
	adrp	x23, _NUMTHINTRIANGLEGUYLINES@GOTPAGE
Lloh7:
	ldr	x23, [x23, _NUMTHINTRIANGLEGUYLINES@GOTPAGEOFF]
	sxtw	x24, w0
Lloh8:
	adrp	x25, _FRACBITS@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FRACBITS@GOTPAGEOFF]
	mov	w26, #16
Lloh10:
	adrp	x27, _lightlev@GOTPAGE
Lloh11:
	ldr	x27, [x27, _lightlev@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x9, [x21]
	ldr	x28, [x9, x20, lsl #3]
	cbz	x28, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22]
	ldr	w1, [x23]
	ldr	w8, [x25]
	lsl	w2, w26, w8
	ldp	w5, w3, [x28, #12]
	ldr	x8, [x27]
	add	x4, x8, x24
	ldr	w6, [x28, #8]
	bl	_AM_drawLineCharacter
	ldr	x28, [x28]
	cbnz	x28, LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_numsectors,4,2                 ; @numsectors
	.comm	_sectors,8,3                    ; @sectors
	.comm	_thintriangle_guy,4,2           ; @thintriangle_guy
	.comm	_NUMTHINTRIANGLEGUYLINES,4,2    ; @NUMTHINTRIANGLEGUYLINES
	.comm	_FRACBITS,4,2                   ; @FRACBITS
	.comm	_lightlev,8,3                   ; @lightlev
.subsections_via_symbols
