	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_Subsector                    ## -- Begin function R_Subsector
	.p2align	4, 0x90
_R_Subsector:                           ## @R_Subsector
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_sscount@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_subsectors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %rdi
	movq	_frontsector@GOTPCREL(%rip), %r15
	movq	%rdi, (%r15)
	movl	(%rax,%rcx,8), %r14d
	movq	_segs@GOTPCREL(%rip), %rdx
	movq	8(%rax,%rcx,8), %rbx
	shlq	$2, %rbx
	addq	(%rdx), %rbx
	movq	(%rdi), %rax
	movq	_viewz@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_1
## %bb.2:
	movq	8(%rdi), %rsi
	movl	32(%rdi), %edx
	movq	%rax, %rdi
	callq	_R_FindPlane
	movq	(%r15), %rdi
	movq	(%r12), %rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_floorplane@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movq	16(%rdi), %rax
	movq	24(%rdi), %rsi
	cmpq	%rcx, %rax
	jg	LBB0_6
## %bb.4:
	movq	_skyflatnum@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movl	32(%rdi), %edx
	movq	%rax, %rdi
	callq	_R_FindPlane
	movq	(%r15), %rdi
LBB0_7:
	movq	_ceilingplane@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	callq	_R_AddSprites
	testl	%r14d, %r14d
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_R_AddLine
	addq	$4, %rbx
	decl	%r14d
	jne	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sscount,4,2                    ## @sscount
	.comm	_subsectors,8,3                 ## @subsectors
	.comm	_frontsector,8,3                ## @frontsector
	.comm	_segs,8,3                       ## @segs
	.comm	_viewz,8,3                      ## @viewz
	.comm	_floorplane,8,3                 ## @floorplane
	.comm	_skyflatnum,8,3                 ## @skyflatnum
	.comm	_ceilingplane,8,3               ## @ceilingplane
	.comm	_numsubsectors,4,2              ## @numsubsectors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_Subsector                    ; -- Begin function R_Subsector
	.p2align	2
_R_Subsector:                           ; @R_Subsector
	.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
Lloh0:
	adrp	x8, _sscount@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sscount@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
Lloh2:
	adrp	x10, _subsectors@GOTPAGE
Lloh3:
	ldr	x10, [x10, _subsectors@GOTPAGEOFF]
	str	w9, [x8]
Lloh4:
	ldr	x8, [x10]
	mov	w9, #24
	smaddl	x8, w0, w9, x8
Lloh5:
	adrp	x22, _frontsector@GOTPAGE
Lloh6:
	ldr	x22, [x22, _frontsector@GOTPAGEOFF]
	ldp	x19, x0, [x8, #8]
	str	x0, [x22]
	ldr	w20, [x8]
Lloh7:
	adrp	x8, _segs@GOTPAGE
Lloh8:
	ldr	x8, [x8, _segs@GOTPAGEOFF]
Lloh9:
	ldr	x21, [x8]
	ldr	x8, [x0]
Lloh10:
	adrp	x23, _viewz@GOTPAGE
Lloh11:
	ldr	x23, [x23, _viewz@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	x1, [x0, #8]
	ldr	w2, [x0, #32]
	mov	x0, x8
	bl	_R_FindPlane
	mov	x8, x0
	ldr	x0, [x22]
	ldr	x9, [x23]
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
Lloh12:
	adrp	x10, _floorplane@GOTPAGE
Lloh13:
	ldr	x10, [x10, _floorplane@GOTPAGEOFF]
Lloh14:
	str	x8, [x10]
	ldp	x8, x1, [x0, #16]
Lloh15:
	adrp	x10, _skyflatnum@GOTPAGE
Lloh16:
	ldr	x10, [x10, _skyflatnum@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x1, x10, #4, le
	b.ne	LBB0_5
; %bb.4:
	ldr	w2, [x0, #32]
	mov	x0, x8
	bl	_R_FindPlane
	mov	x8, x0
	ldr	x0, [x22]
	b	LBB0_6
LBB0_5:
	mov	x8, #0
LBB0_6:
Lloh18:
	adrp	x9, _ceilingplane@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ceilingplane@GOTPAGEOFF]
Lloh20:
	str	x8, [x9]
	bl	_R_AddSprites
	cbz	w20, LBB0_9
; %bb.7:
	add	x19, x21, x19, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	mov	x0, x19
	bl	_R_AddLine
	add	x19, x19, #4
	cbnz	w20, LBB0_8
LBB0_9:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_sscount,4,2                    ; @sscount
	.comm	_subsectors,8,3                 ; @subsectors
	.comm	_frontsector,8,3                ; @frontsector
	.comm	_segs,8,3                       ; @segs
	.comm	_viewz,8,3                      ; @viewz
	.comm	_floorplane,8,3                 ; @floorplane
	.comm	_skyflatnum,8,3                 ; @skyflatnum
	.comm	_ceilingplane,8,3               ; @ceilingplane
	.comm	_numsubsectors,4,2              ; @numsubsectors
.subsections_via_symbols
