	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_GenerateComposite            ## -- Begin function R_GenerateComposite
	.p2align	4, 0x90
_R_GenerateComposite:                   ## @R_GenerateComposite
	.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
	movq	_textures@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rbx
	movq	(%rax,%rbx,8), %r14
	movq	_texturecompositesize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%rbx,4), %rdx
	movl	(%rax,%rbx,4), %edi
	movq	_PU_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_texturecomposite@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	callq	_Z_Malloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.1:
	movq	_texturecolumnlump@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %r12
	movq	_texturecolumnofs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rbx
	xorl	%eax, %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	$12, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	(%r14), %eax
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %edi
	movq	_PU_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_W_CacheLumpNum
	movq	%rax, %r15
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rbx
	movl	8(%rax), %edi
	callq	_SHORT
	addl	%ebx, %eax
	testl	%ebx, %ebx
	movl	$0, %ecx
	cmovgl	%ebx, %ecx
	movl	4(%r14), %edx
	cmpl	%edx, %eax
	cmovgel	%edx, %eax
	cmpl	%eax, %ecx
	jge	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r13d
	movl	%eax, %r14d
	shlq	$2, %rbx
	negq	%rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	cmpq	%r13, %r14
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpw	$0, (%r12,%r13,2)
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r15), %rax
	addq	%rbx, %rax
	movl	(%rax,%r13,4), %edi
	callq	_LONG
	cltq
	leaq	(%r15,%rax,4), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movzwl	(%rax,%r13,2), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	callq	_R_DrawColumnInCache
	jmp	LBB0_6
LBB0_8:
	movq	_PU_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Z_ChangeTag                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_textures,8,3                   ## @textures
	.comm	_texturecompositesize,8,3       ## @texturecompositesize
	.comm	_PU_STATIC,4,2                  ## @PU_STATIC
	.comm	_texturecomposite,8,3           ## @texturecomposite
	.comm	_texturecolumnlump,8,3          ## @texturecolumnlump
	.comm	_texturecolumnofs,8,3           ## @texturecolumnofs
	.comm	_PU_CACHE,4,2                   ## @PU_CACHE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_GenerateComposite            ; -- Begin function R_GenerateComposite
	.p2align	2
_R_GenerateComposite:                   ; @R_GenerateComposite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _textures@GOTPAGE
Lloh1:
	ldr	x8, [x8, _textures@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sbfiz	x20, x0, #3, #32
	ldr	x21, [x8, x20]
Lloh3:
	adrp	x8, _texturecompositesize@GOTPAGE
Lloh4:
	ldr	x8, [x8, _texturecompositesize@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sbfiz	x9, x0, #2, #32
	ldr	w0, [x8, x9]
Lloh6:
	adrp	x8, _PU_STATIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PU_STATIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _texturecomposite@GOTPAGE
Lloh10:
	ldr	x8, [x8, _texturecomposite@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x2, x8, x9
	bl	_Z_Malloc
	mov	x19, x0
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w23, #0
Lloh12:
	adrp	x8, _texturecolumnlump@GOTPAGE
Lloh13:
	ldr	x8, [x8, _texturecolumnlump@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8, x20]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh15:
	adrp	x8, _texturecolumnofs@GOTPAGE
Lloh16:
	ldr	x8, [x8, _texturecolumnofs@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x25, [x8, x20]
	ldr	x26, [x21, #16]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	add	x26, x26, #12
	ldr	w8, [x21]
	cmp	w23, w8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w0, [x26, #8]
Lloh18:
	adrp	x8, _PU_CACHE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PU_CACHE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_W_CacheLumpNum
	mov	x20, x0
	ldrsw	x22, [x26]
	ldr	w0, [x0, #8]
	bl	_SHORT
	cmp	w22, #0
	csel	w8, w22, wzr, gt
	ldr	w9, [x21, #4]
	add	w10, w0, w22
	cmp	w10, w9
	csel	w9, w10, w9, lt
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x10, x8, #2
	sub	x27, x10, x22, lsl #2
	lsl	x10, x8, #1
	add	x28, x25, x10
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	add	x22, x11, x10
	sub	x24, x9, x8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x27, x27, #4
	add	x28, x28, #2
	add	x22, x22, #2
	subs	x24, x24, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsh	w8, [x22]
	tbz	w8, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x20]
	ldr	w0, [x8, x27]
	bl	_LONG
	add	x0, x20, w0, sxtw #2
	ldrh	w8, [x28]
	add	x1, x19, x8, lsl #2
	ldr	w2, [x26, #4]
	ldr	w3, [x21, #8]
	bl	_R_DrawColumnInCache
	b	LBB0_5
LBB0_8:
Lloh21:
	adrp	x8, _PU_CACHE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PU_CACHE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_Z_ChangeTag
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_textures,8,3                   ; @textures
	.comm	_texturecompositesize,8,3       ; @texturecompositesize
	.comm	_PU_STATIC,4,2                  ; @PU_STATIC
	.comm	_texturecomposite,8,3           ; @texturecomposite
	.comm	_texturecolumnlump,8,3          ; @texturecolumnlump
	.comm	_texturecolumnofs,8,3           ; @texturecolumnofs
	.comm	_PU_CACHE,4,2                   ; @PU_CACHE
.subsections_via_symbols
