	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_transform_vb_part2          ## -- Begin function gl_transform_vb_part2
	.p2align	4, 0x90
_gl_transform_vb_part2:                 ## @gl_transform_vb_part2
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	96(%rdi), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setg	%dil
	callq	_ASSERT
	cmpq	$0, 88(%r15)
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rcx
	subq	%rcx, %rsi
	movq	16(%rbx), %rdx
	addq	%rcx, %rdx
	shlq	$2, %rcx
	addq	64(%rbx), %rcx
	movq	%r15, %rdi
	callq	_userclip_vertices
	movq	_CLIP_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	_CLIP_ALL_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	jmp	LBB0_5
LBB0_2:
	movq	_CLIP_SOME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	_CLIP_USER_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	jmp	LBB0_7
LBB0_6:
	movq	$0, 80(%rbx)
LBB0_7:
	movq	(%rbx), %rsi
	movq	8(%rbx), %r8
	subq	%r8, %rsi
	movq	16(%rbx), %rdx
	addq	%r8, %rdx
	movq	24(%rbx), %rcx
	addq	%r8, %rcx
	shlq	$2, %r8
	addq	64(%rbx), %r8
	leaq	72(%rbx), %r12
	leaq	80(%rbx), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %r9
	callq	_project_and_cliptest
	cmpq	$0, 80(%rbx)
	je	LBB0_9
## %bb.8:
	movq	_CLIP_ALL_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_reset_vb                    ## TAILCALL
LBB0_9:
	cmpq	$0, 80(%r15)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_shade_vertices
LBB0_11:
	cmpq	$0, 72(%r15)
	je	LBB0_14
## %bb.12:
	movq	64(%r15), %rax
	movq	_GL_NICEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_fog_vertices
LBB0_14:
	cmpq	$0, 56(%r15)
	jne	LBB0_16
## %bb.15:
	movq	(%r15), %rax
	movq	_GL_FEEDBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_16:
	cmpq	$0, 48(%r15)
	je	LBB0_18
## %bb.17:
	movq	(%rbx), %rsi
	movq	8(%rbx), %r9
	subq	%r9, %rsi
	movq	32(%rbx), %rdx
	addq	%r9, %rdx
	movq	16(%rbx), %rcx
	addq	%r9, %rcx
	movq	40(%rbx), %r8
	addq	%r9, %r8
	addq	48(%rbx), %r9
	movq	%r15, %rdi
	callq	_gl_texgen
LBB0_18:
	cmpq	$0, 40(%r15)
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_gl_analyze_texture_matrix
LBB0_20:
	movq	8(%r15), %rax
	movq	_MATRIX_IDENTITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.21:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	subq	%rdx, %rsi
	addq	48(%rbx), %rdx
	movq	%r15, %rdi
	callq	_transform_texcoords
LBB0_22:
	movq	(%rbx), %rsi
	movq	8(%rbx), %r8
	subq	%r8, %rsi
	movq	24(%rbx), %rdx
	addq	%r8, %rdx
	cmpq	$0, 72(%rbx)
	je	LBB0_23
## %bb.24:
	leaq	(,%r8,4), %rcx
	addq	64(%rbx), %rcx
	jmp	LBB0_25
LBB0_23:
	xorl	%ecx, %ecx
LBB0_25:
	shlq	$2, %r8
	addq	56(%rbx), %r8
	movq	%r15, %rdi
	callq	_viewport_map_vertices
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_27:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_render_vb                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CLIP_ALL,8,3                   ## @CLIP_ALL
	.comm	_CLIP_ALL_BITS,8,3              ## @CLIP_ALL_BITS
	.comm	_CLIP_SOME,8,3                  ## @CLIP_SOME
	.comm	_CLIP_USER_BIT,8,3              ## @CLIP_USER_BIT
	.comm	_GL_NICEST,8,3                  ## @GL_NICEST
	.comm	_GL_FEEDBACK,8,3                ## @GL_FEEDBACK
	.comm	_MATRIX_IDENTITY,8,3            ## @MATRIX_IDENTITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_transform_vb_part2          ; -- Begin function gl_transform_vb_part2
	.p2align	2
_gl_transform_vb_part2:                 ; @gl_transform_vb_part2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #96]
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, gt
	bl	_ASSERT
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_6
; %bb.1:
	ldp	x8, x9, [x22]
	sub	x1, x8, x9
	ldr	x8, [x22, #16]
	add	x2, x8, x9
	ldr	x8, [x22, #64]
	add	x3, x8, x9, lsl #2
	mov	x0, x20
	bl	_userclip_vertices
Lloh0:
	adrp	x8, _CLIP_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLIP_ALL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _CLIP_ALL_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLIP_ALL_BITS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x22, #72]
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _CLIP_SOME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLIP_SOME@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _CLIP_USER_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CLIP_USER_BIT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x22, #72]
	b	LBB0_6
LBB0_5:
	str	xzr, [x22, #80]
LBB0_6:
	ldp	x8, x9, [x22]
	sub	x1, x8, x9
	ldp	x8, x10, [x22, #16]
	add	x2, x8, x9
	add	x3, x10, x9
	ldr	x8, [x22, #64]
	add	x4, x8, x9, lsl #2
	add	x21, x22, #72
	add	x6, x22, #80
	mov	x0, x20
	mov	x5, x21
	bl	_project_and_cliptest
	ldr	x8, [x22, #80]
	cbz	x8, LBB0_9
; %bb.7:
Lloh12:
	adrp	x8, _CLIP_ALL_BITS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CLIP_ALL_BITS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gl_reset_vb
LBB0_9:
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_shade_vertices
LBB0_11:
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x8, [x20, #64]
Lloh15:
	adrp	x9, _GL_NICEST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GL_NICEST@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_fog_vertices
LBB0_14:
	ldr	x8, [x20, #56]
	cbnz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x20]
Lloh18:
	adrp	x9, _GL_FEEDBACK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GL_FEEDBACK@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_16:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_18
; %bb.17:
	ldp	x8, x9, [x22]
	sub	x1, x8, x9
	ldp	x8, x10, [x22, #32]
	add	x2, x8, x9
	ldr	x8, [x22, #16]
	add	x3, x8, x9
	add	x4, x10, x9
	ldr	x8, [x22, #48]
	add	x5, x8, x9
	mov	x0, x20
	bl	_gl_texgen
LBB0_18:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_gl_analyze_texture_matrix
LBB0_20:
	ldr	x8, [x20, #8]
Lloh21:
	adrp	x9, _MATRIX_IDENTITY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MATRIX_IDENTITY@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.21:
	ldp	x8, x9, [x22]
	sub	x1, x8, x9
	ldr	x8, [x22, #48]
	add	x2, x8, x9
	mov	x0, x20
	bl	_transform_texcoords
LBB0_22:
	ldp	x9, x8, [x22]
	sub	x1, x9, x8
	ldr	x9, [x22, #24]
	add	x2, x9, x8
	ldr	x9, [x22, #72]
	cbz	x9, LBB0_24
; %bb.23:
	ldr	x9, [x22, #64]
	add	x3, x9, x8, lsl #2
	b	LBB0_25
LBB0_24:
	mov	x3, #0
LBB0_25:
	ldr	x9, [x22, #56]
	add	x4, x9, x8, lsl #2
	mov	x0, x20
	bl	_viewport_map_vertices
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_27
; %bb.26:
	ldr	x2, [x22]
	mov	x0, x20
	mov	w1, #0
	blr	x8
LBB0_27:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_30
; %bb.28:
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cbz	w0, LBB0_30
; %bb.29:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_30:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gl_render_vb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CLIP_ALL,8,3                   ; @CLIP_ALL
	.comm	_CLIP_ALL_BITS,8,3              ; @CLIP_ALL_BITS
	.comm	_CLIP_SOME,8,3                  ; @CLIP_SOME
	.comm	_CLIP_USER_BIT,8,3              ; @CLIP_USER_BIT
	.comm	_GL_NICEST,8,3                  ; @GL_NICEST
	.comm	_GL_FEEDBACK,8,3                ; @GL_FEEDBACK
	.comm	_MATRIX_IDENTITY,8,3            ; @MATRIX_IDENTITY
.subsections_via_symbols
