	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_InitTextureMapping           ## -- Begin function R_InitTextureMapping
	.p2align	4, 0x90
_R_InitTextureMapping:                  ## @R_InitTextureMapping
	.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
	movq	_centerxfrac@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_finetangent@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FINEANGLES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movq	_FIELDOFVIEW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	addl	%edx, %esi
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_FixedDiv
	movl	%eax, %r13d
	movl	(%rbx), %r15d
	cmpl	$2, %r15d
	jl	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_FRACUNIT@GOTPCREL(%rip), %r12
	movq	_viewangletox@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_viewwidth@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	incl	%r15d
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movl	%r15d, (%rax,%rbx,4)
	incq	%rbx
	movq	_FINEANGLES@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %eax
	shrl	$31, %eax
	addl	%r15d, %eax
	sarl	%eax
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_finetangent@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r12), %eax
	addl	%eax, %eax
	movl	$-1, %r15d
	cmpl	%eax, %edi
	jg	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	negl	%eax
	cmpl	%eax, %edi
	jl	LBB0_4
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %esi
	callq	_FixedMul
	notl	%eax
	movq	_centerxfrac@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	addl	(%r12), %eax
	movq	_FRACBITS@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	cmpl	$-1, %eax
	jl	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_viewwidth@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	incl	%r15d
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	jmp	LBB0_21
LBB0_5:
	movq	_viewwidth@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%edx, %edx
	js	LBB0_12
## %bb.6:
	movq	_viewangletox@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_ANGLETOFINESHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_xtoviewangle@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r11
	leaq	1(%rdx), %r8
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.22:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	xorl	%ebx, %ebx
	movq	_ANG90@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	movl	$-1, %edi
	movq	%r14, %rdx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rdx), %rsi
	incl	%edi
	addq	$4, %rdx
	cmpq	%rsi, %rbx
	jl	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	shll	%cl, %edi
	movslq	%edi, %rdx
	subq	(%r9), %rdx
	movq	%rdx, (%r11,%rbx,8)
	movq	%rbx, %rdi
	orq	$1, %rdi
	movl	$-1, %edx
	movq	%r14, %rsi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rsi), %rax
	incl	%edx
	addq	$4, %rsi
	cmpq	%rax, %rdi
	jl	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	shll	%cl, %edx
	movslq	%edx, %rax
	subq	(%r9), %rax
	movq	%rax, (%r11,%rdi,8)
	addq	$2, %rbx
	cmpq	%r10, %rbx
	jne	LBB0_23
## %bb.8:
	testb	$1, %r8b
	jne	LBB0_9
LBB0_12:
	cmpl	$2, %r15d
	jge	LBB0_13
	jmp	LBB0_18
LBB0_7:
	xorl	%ebx, %ebx
	testb	$1, %r8b
	je	LBB0_12
LBB0_9:
	movl	$-1, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rdx
	incl	%edi
	addq	$4, %r14
	cmpq	%rdx, %rbx
	jl	LBB0_10
## %bb.11:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movslq	%edi, %rax
	movq	_ANG90@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, (%r11,%rbx,8)
	cmpl	$2, %r15d
	jl	LBB0_18
LBB0_13:
	xorl	%ebx, %ebx
	movq	_viewangletox@GOTPCREL(%rip), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%ecx, (%rax,%rbx,4)
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movq	_FINEANGLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	_finetangent@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	movl	%r13d, %esi
	callq	_FixedMul
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movl	$0, %ecx
	cmpl	$-1, %edx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %ecx
	leal	1(%rcx), %esi
	cmpl	%esi, %edx
	je	LBB0_16
	jmp	LBB0_17
LBB0_18:
	movq	_xtoviewangle@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_clipangle@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_centerxfrac,4,2                ## @centerxfrac
	.comm	_finetangent,8,3                ## @finetangent
	.comm	_FINEANGLES,4,2                 ## @FINEANGLES
	.comm	_FIELDOFVIEW,4,2                ## @FIELDOFVIEW
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_viewwidth,4,2                  ## @viewwidth
	.comm	_FRACBITS,4,2                   ## @FRACBITS
	.comm	_viewangletox,8,3               ## @viewangletox
	.comm	_ANGLETOFINESHIFT,4,2           ## @ANGLETOFINESHIFT
	.comm	_ANG90,8,3                      ## @ANG90
	.comm	_xtoviewangle,8,3               ## @xtoviewangle
	.comm	_centerx,4,2                    ## @centerx
	.comm	_clipangle,8,3                  ## @clipangle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_InitTextureMapping           ; -- Begin function R_InitTextureMapping
	.p2align	2
_R_InitTextureMapping:                  ; @R_InitTextureMapping
	.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
Lloh0:
	adrp	x24, _centerxfrac@GOTPAGE
Lloh1:
	ldr	x24, [x24, _centerxfrac@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x20, _finetangent@GOTPAGE
Lloh3:
	ldr	x20, [x20, _finetangent@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh4:
	adrp	x21, _FINEANGLES@GOTPAGE
Lloh5:
	ldr	x21, [x21, _FINEANGLES@GOTPAGEOFF]
	ldr	w9, [x21]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
Lloh6:
	adrp	x10, _FIELDOFVIEW@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FIELDOFVIEW@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	add	w9, w10, w9, asr #2
	ldr	w1, [x8, w9, sxtw #2]
	bl	_FixedDiv
	mov	x19, x0
	ldr	w8, [x21]
Lloh9:
	adrp	x22, _viewangletox@GOTPAGE
Lloh10:
	ldr	x22, [x22, _viewangletox@GOTPAGEOFF]
Lloh11:
	adrp	x23, _viewwidth@GOTPAGE
Lloh12:
	ldr	x23, [x23, _viewwidth@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.1:
	mov	x25, #0
Lloh13:
	adrp	x26, _FRACUNIT@GOTPAGE
Lloh14:
	ldr	x26, [x26, _FRACUNIT@GOTPAGEOFF]
Lloh15:
	adrp	x27, _FRACBITS@GOTPAGE
Lloh16:
	ldr	x27, [x27, _FRACBITS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #-1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x22]
	str	w8, [x9, x25, lsl #2]
	add	x25, x25, #1
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	cmp	x25, w9, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x25, lsl #2]
	ldr	w8, [x26]
	cmp	w0, w8, lsl #1
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	neg	w8, w8, lsl #1
	cmp	w0, w8
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	add	w8, w8, #1
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x19
	bl	_FixedMul
	ldr	w8, [x24]
	ldr	w9, [x26]
	mvn	w10, w0
	add	w8, w8, w10
	add	w8, w8, w9
	ldr	w9, [x27]
	asr	w8, w8, w9
	cmn	w8, #1
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x23]
	add	w10, w9, #1
	cmp	w8, w10
	csinc	w8, w8, w9, lt
	b	LBB0_3
LBB0_9:
	ldr	w13, [x23]
Lloh17:
	adrp	x24, _xtoviewangle@GOTPAGE
Lloh18:
	ldr	x24, [x24, _xtoviewangle@GOTPAGEOFF]
	tbnz	w13, #31, LBB0_14
; %bb.10:
	mov	x9, #0
Lloh19:
	adrp	x11, _ANGLETOFINESHIFT@GOTPAGE
Lloh20:
	ldr	x11, [x11, _ANGLETOFINESHIFT@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh21:
	ldr	w11, [x11]
	ldr	x12, [x24]
	add	x13, x13, #1
Lloh22:
	adrp	x14, _ANG90@GOTPAGE
Lloh23:
	ldr	x14, [x14, _ANG90@GOTPAGEOFF]
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	w15, #-1
	mov	x16, x10
LBB0_12:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x17, [x16], #4
	add	w15, w15, #1
	cmp	x9, x17
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	lsl	w15, w15, w11
	sxtw	x15, w15
	ldr	x16, [x14]
	sub	x15, x15, x16
	str	x15, [x12, x9, lsl #3]
	add	x9, x9, #1
	cmp	x9, x13
	b.ne	LBB0_11
LBB0_14:
	cmp	w8, #2
	b.lt	LBB0_21
; %bb.15:
	mov	x25, #0
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w9, #0
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	str	w9, [x8, x25, lsl #2]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x25, x25, #1
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	lsl	x26, x25, #2
	ldr	w0, [x8, x26]
	mov	x1, x19
	bl	_FixedMul
	ldr	x8, [x22]
	ldr	w10, [x8, x26]
	cmn	w10, #1
	b.eq	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w9, [x23]
	add	w11, w9, #1
	cmp	w10, w11
	b.eq	LBB0_17
	b	LBB0_18
LBB0_21:
	ldr	x8, [x24]
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _clipangle@GOTPAGE
Lloh25:
	ldr	x9, [x9, _clipangle@GOTPAGEOFF]
Lloh26:
	str	x8, [x9]
	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	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_centerxfrac,4,2                ; @centerxfrac
	.comm	_finetangent,8,3                ; @finetangent
	.comm	_FINEANGLES,4,2                 ; @FINEANGLES
	.comm	_FIELDOFVIEW,4,2                ; @FIELDOFVIEW
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_viewwidth,4,2                  ; @viewwidth
	.comm	_FRACBITS,4,2                   ; @FRACBITS
	.comm	_viewangletox,8,3               ; @viewangletox
	.comm	_ANGLETOFINESHIFT,4,2           ; @ANGLETOFINESHIFT
	.comm	_ANG90,8,3                      ; @ANG90
	.comm	_xtoviewangle,8,3               ; @xtoviewangle
	.comm	_centerx,4,2                    ; @centerx
	.comm	_clipangle,8,3                  ; @clipangle
.subsections_via_symbols
