	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_set_triangle_function       ## -- Begin function gl_set_triangle_function
	.p2align	4, 0x90
_gl_set_triangle_function:              ## @gl_set_triangle_function
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_GL_RENDER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_43
## %bb.1:
	cmpq	$0, 120(%rdi)
	je	LBB0_3
## %bb.2:
	movq	_null_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_43:
	movq	_GL_FEEDBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_45
## %bb.44:
	movq	_feedback_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_45:
	movq	_select_triangle@GOTPCREL(%rip), %rax
LBB0_46:
	movq	(%rax), %rax
	movq	%rax, 24(%rdi)
LBB0_47:
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 24(%rdi)
	jne	LBB0_47
## %bb.4:
	movq	80(%rdi), %rcx
	movq	8(%rcx), %rdx
	movl	40(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_36
## %bb.5:
	movq	72(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.6:
	cmpq	$0, (%rsi)
	je	LBB0_36
## %bb.7:
	movq	_TEXTURE_2D@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	cmpl	%r9d, %eax
	jne	LBB0_27
## %bb.8:
	movq	64(%rdi), %r8
	movq	(%r8), %rdx
	movq	_GL_NEAREST@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_27
## %bb.9:
	cmpq	%rdx, 8(%r8)
	jne	LBB0_27
## %bb.10:
	movq	16(%r8), %rdx
	movq	_GL_REPEAT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_27
## %bb.11:
	cmpq	%rdx, 24(%r8)
	jne	LBB0_27
## %bb.12:
	movq	32(%r8), %rdx
	movq	(%rdx), %rsi
	movq	(%rsi), %r8
	movq	_GL_RGB@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r8
	jne	LBB0_27
## %bb.13:
	cmpq	$0, 8(%rsi)
	jne	LBB0_27
## %bb.14:
	movq	48(%rdi), %rsi
	movq	_GL_DECAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	je	LBB0_16
## %bb.15:
	movq	_GL_REPLACE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	jne	LBB0_27
LBB0_16:
	movq	112(%rdi), %rdx
	movq	_GL_FASTEST@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_27
## %bb.17:
	movq	8(%rdi), %rdx
	movq	_MATRIX_IDENTITY@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_27
## %bb.18:
	movq	16(%rdi), %rsi
	movq	_DEPTH_BIT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	cmpq	%r8, %rsi
	jne	LBB0_21
## %bb.19:
	movq	96(%rdi), %r10
	movq	_GL_LESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r10
	jne	LBB0_21
## %bb.20:
	movq	104(%rdi), %r10
	movq	_GL_TRUE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r10
	je	LBB0_22
LBB0_21:
	testq	%rsi, %rsi
	jne	LBB0_27
LBB0_22:
	movq	88(%rdi), %r10
	movq	_GL_FALSE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r10
	jne	LBB0_27
## %bb.23:
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.24:
	cmpq	%r8, %rsi
	jne	LBB0_26
## %bb.25:
	movq	_simple_z_textured_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_36:
	movq	32(%rdi), %rax
	movq	_GL_SMOOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.37:
	testq	%rdx, %rdx
	je	LBB0_39
## %bb.38:
	movq	_smooth_rgba_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_40:
	testq	%rdx, %rdx
	je	LBB0_42
## %bb.41:
	movq	_flat_rgba_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_27:
	movq	_GL_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%eax, %r9d
	je	LBB0_29
## %bb.28:
	movq	64(%rdi), %rax
	jmp	LBB0_31
LBB0_39:
	movq	_smooth_ci_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_42:
	movq	_flat_ci_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_29:
	movq	_TEXTURE_1D@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_33
## %bb.30:
	movq	56(%rdi), %rax
LBB0_31:
	leaq	8(%rax), %rdx
	movq	(%rax), %rax
	cmpq	(%rdx), %rax
	jne	LBB0_33
## %bb.32:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_33:
	testq	%rcx, %rcx
	jne	LBB0_34
## %bb.35:
	movq	_general_textured_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_34:
	movq	_lambda_textured_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_26:
	movq	_simple_textured_triangle@GOTPCREL(%rip), %rax
	jmp	LBB0_46
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_RENDER,8,3                  ## @GL_RENDER
	.comm	_null_triangle,8,3              ## @null_triangle
	.comm	_TEXTURE_2D,4,2                 ## @TEXTURE_2D
	.comm	_GL_NEAREST,8,3                 ## @GL_NEAREST
	.comm	_GL_REPEAT,8,3                  ## @GL_REPEAT
	.comm	_GL_RGB,8,3                     ## @GL_RGB
	.comm	_GL_DECAL,8,3                   ## @GL_DECAL
	.comm	_GL_REPLACE,8,3                 ## @GL_REPLACE
	.comm	_GL_FASTEST,8,3                 ## @GL_FASTEST
	.comm	_MATRIX_IDENTITY,8,3            ## @MATRIX_IDENTITY
	.comm	_DEPTH_BIT,8,3                  ## @DEPTH_BIT
	.comm	_GL_LESS,8,3                    ## @GL_LESS
	.comm	_GL_TRUE,8,3                    ## @GL_TRUE
	.comm	_GL_FALSE,8,3                   ## @GL_FALSE
	.comm	_simple_z_textured_triangle,8,3 ## @simple_z_textured_triangle
	.comm	_simple_textured_triangle,8,3   ## @simple_textured_triangle
	.comm	_TEXTURE_1D,4,2                 ## @TEXTURE_1D
	.comm	_lambda_textured_triangle,8,3   ## @lambda_textured_triangle
	.comm	_general_textured_triangle,8,3  ## @general_textured_triangle
	.comm	_GL_SMOOTH,8,3                  ## @GL_SMOOTH
	.comm	_smooth_rgba_triangle,8,3       ## @smooth_rgba_triangle
	.comm	_smooth_ci_triangle,8,3         ## @smooth_ci_triangle
	.comm	_flat_rgba_triangle,8,3         ## @flat_rgba_triangle
	.comm	_flat_ci_triangle,8,3           ## @flat_ci_triangle
	.comm	_GL_FEEDBACK,8,3                ## @GL_FEEDBACK
	.comm	_feedback_triangle,8,3          ## @feedback_triangle
	.comm	_select_triangle,8,3            ## @select_triangle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_set_triangle_function       ; -- Begin function gl_set_triangle_function
	.p2align	2
_gl_set_triangle_function:              ; @gl_set_triangle_function
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GL_RENDER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GL_RENDER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #120]
	cbz	x8, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _null_triangle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _null_triangle@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x9, _GL_FEEDBACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GL_FEEDBACK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _feedback_triangle@GOTPAGE
Lloh9:
	ldr	x8, [x8, _feedback_triangle@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _select_triangle@GOTPAGE
Lloh11:
	ldr	x8, [x8, _select_triangle@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x0, #24]
LBB0_7:
	ret
LBB0_8:
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_7
; %bb.9:
	ldr	x9, [x0, #80]
	ldr	x10, [x9, #8]
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_31
; %bb.10:
	ldr	x11, [x0, #72]
	cbz	x11, LBB0_31
; %bb.11:
	ldr	x11, [x11]
	cbz	x11, LBB0_31
; %bb.12:
Lloh12:
	adrp	x10, _TEXTURE_2D@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TEXTURE_2D@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _GL_TRUE@GOTPAGE
Lloh16:
	ldr	x11, [x11, _GL_TRUE@GOTPAGEOFF]
	cmp	w8, w10
	b.ne	LBB0_36
; %bb.13:
	ldr	x12, [x0, #64]
	ldr	x13, [x12]
Lloh17:
	adrp	x14, _GL_NEAREST@GOTPAGE
Lloh18:
	ldr	x14, [x14, _GL_NEAREST@GOTPAGEOFF]
Lloh19:
	ldr	x14, [x14]
	cmp	x13, x14
	b.ne	LBB0_36
; %bb.14:
	ldr	x14, [x12, #8]
	cmp	x14, x13
	b.ne	LBB0_36
; %bb.15:
	ldr	x13, [x12, #16]
Lloh20:
	adrp	x14, _GL_REPEAT@GOTPAGE
Lloh21:
	ldr	x14, [x14, _GL_REPEAT@GOTPAGEOFF]
Lloh22:
	ldr	x14, [x14]
	cmp	x13, x14
	b.ne	LBB0_36
; %bb.16:
	ldr	x14, [x12, #24]
	cmp	x14, x13
	b.ne	LBB0_36
; %bb.17:
	ldr	x12, [x12, #32]
	ldr	x12, [x12]
	ldr	x13, [x12]
Lloh23:
	adrp	x14, _GL_RGB@GOTPAGE
Lloh24:
	ldr	x14, [x14, _GL_RGB@GOTPAGEOFF]
Lloh25:
	ldr	x14, [x14]
	cmp	x13, x14
	b.ne	LBB0_36
; %bb.18:
	ldr	x12, [x12, #8]
	cbnz	x12, LBB0_36
; %bb.19:
	ldr	x12, [x0, #48]
Lloh26:
	adrp	x13, _GL_DECAL@GOTPAGE
Lloh27:
	ldr	x13, [x13, _GL_DECAL@GOTPAGEOFF]
Lloh28:
	ldr	x13, [x13]
	cmp	x12, x13
	b.eq	LBB0_21
; %bb.20:
Lloh29:
	adrp	x13, _GL_REPLACE@GOTPAGE
Lloh30:
	ldr	x13, [x13, _GL_REPLACE@GOTPAGEOFF]
Lloh31:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_36
LBB0_21:
	ldr	x12, [x0, #112]
Lloh32:
	adrp	x13, _GL_FASTEST@GOTPAGE
Lloh33:
	ldr	x13, [x13, _GL_FASTEST@GOTPAGEOFF]
Lloh34:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_36
; %bb.22:
	ldr	x12, [x0, #8]
Lloh35:
	adrp	x13, _MATRIX_IDENTITY@GOTPAGE
Lloh36:
	ldr	x13, [x13, _MATRIX_IDENTITY@GOTPAGEOFF]
Lloh37:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_36
; %bb.23:
	ldr	x12, [x0, #16]
Lloh38:
	adrp	x13, _DEPTH_BIT@GOTPAGE
Lloh39:
	ldr	x13, [x13, _DEPTH_BIT@GOTPAGEOFF]
Lloh40:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_26
; %bb.24:
	ldr	x14, [x0, #96]
Lloh41:
	adrp	x15, _GL_LESS@GOTPAGE
Lloh42:
	ldr	x15, [x15, _GL_LESS@GOTPAGEOFF]
Lloh43:
	ldr	x15, [x15]
	cmp	x14, x15
	b.ne	LBB0_26
; %bb.25:
	ldr	x14, [x0, #104]
	ldr	x15, [x11]
	cmp	x14, x15
	b.eq	LBB0_27
LBB0_26:
	cbnz	x12, LBB0_36
LBB0_27:
	ldr	x14, [x0, #88]
Lloh44:
	adrp	x15, _GL_FALSE@GOTPAGE
Lloh45:
	ldr	x15, [x15, _GL_FALSE@GOTPAGEOFF]
Lloh46:
	ldr	x15, [x15]
	cmp	x14, x15
	b.ne	LBB0_36
; %bb.28:
	ldr	x9, [x9]
	cbz	x9, LBB0_36
; %bb.29:
	cmp	x12, x13
	b.ne	LBB0_44
; %bb.30:
Lloh47:
	adrp	x8, _simple_z_textured_triangle@GOTPAGE
Lloh48:
	ldr	x8, [x8, _simple_z_textured_triangle@GOTPAGEOFF]
	b	LBB0_6
LBB0_31:
	ldr	x8, [x0, #32]
Lloh49:
	adrp	x9, _GL_SMOOTH@GOTPAGE
Lloh50:
	ldr	x9, [x9, _GL_SMOOTH@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.32:
	cbz	x10, LBB0_38
; %bb.33:
Lloh52:
	adrp	x8, _smooth_rgba_triangle@GOTPAGE
Lloh53:
	ldr	x8, [x8, _smooth_rgba_triangle@GOTPAGEOFF]
	b	LBB0_6
LBB0_34:
	cbz	x10, LBB0_39
; %bb.35:
Lloh54:
	adrp	x8, _flat_rgba_triangle@GOTPAGE
Lloh55:
	ldr	x8, [x8, _flat_rgba_triangle@GOTPAGEOFF]
	b	LBB0_6
LBB0_36:
	ldr	x9, [x11]
	tst	w10, w8
	b.eq	LBB0_40
; %bb.37:
	ldr	x8, [x0, #64]
	b	LBB0_42
LBB0_38:
Lloh56:
	adrp	x8, _smooth_ci_triangle@GOTPAGE
Lloh57:
	ldr	x8, [x8, _smooth_ci_triangle@GOTPAGEOFF]
	b	LBB0_6
LBB0_39:
Lloh58:
	adrp	x8, _flat_ci_triangle@GOTPAGE
Lloh59:
	ldr	x8, [x8, _flat_ci_triangle@GOTPAGEOFF]
	b	LBB0_6
LBB0_40:
Lloh60:
	adrp	x10, _TEXTURE_1D@GOTPAGE
Lloh61:
	ldr	x10, [x10, _TEXTURE_1D@GOTPAGEOFF]
Lloh62:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_43
; %bb.41:
	ldr	x8, [x0, #56]
LBB0_42:
	add	x10, x8, #8
	ldr	x8, [x8]
	ldr	x10, [x10]
Lloh63:
	adrp	x11, _GL_FALSE@GOTPAGE
Lloh64:
	ldr	x11, [x11, _GL_FALSE@GOTPAGEOFF]
Lloh65:
	ldr	x11, [x11]
	cmp	x8, x10
	csel	x9, x11, x9, eq
LBB0_43:
Lloh66:
	adrp	x8, _general_textured_triangle@GOTPAGE
Lloh67:
	ldr	x8, [x8, _general_textured_triangle@GOTPAGEOFF]
Lloh68:
	adrp	x10, _lambda_textured_triangle@GOTPAGE
Lloh69:
	ldr	x10, [x10, _lambda_textured_triangle@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	b	LBB0_6
LBB0_44:
Lloh70:
	adrp	x8, _simple_textured_triangle@GOTPAGE
Lloh71:
	ldr	x8, [x8, _simple_textured_triangle@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_RENDER,8,3                  ; @GL_RENDER
	.comm	_null_triangle,8,3              ; @null_triangle
	.comm	_TEXTURE_2D,4,2                 ; @TEXTURE_2D
	.comm	_GL_NEAREST,8,3                 ; @GL_NEAREST
	.comm	_GL_REPEAT,8,3                  ; @GL_REPEAT
	.comm	_GL_RGB,8,3                     ; @GL_RGB
	.comm	_GL_DECAL,8,3                   ; @GL_DECAL
	.comm	_GL_REPLACE,8,3                 ; @GL_REPLACE
	.comm	_GL_FASTEST,8,3                 ; @GL_FASTEST
	.comm	_MATRIX_IDENTITY,8,3            ; @MATRIX_IDENTITY
	.comm	_DEPTH_BIT,8,3                  ; @DEPTH_BIT
	.comm	_GL_LESS,8,3                    ; @GL_LESS
	.comm	_GL_TRUE,8,3                    ; @GL_TRUE
	.comm	_GL_FALSE,8,3                   ; @GL_FALSE
	.comm	_simple_z_textured_triangle,8,3 ; @simple_z_textured_triangle
	.comm	_simple_textured_triangle,8,3   ; @simple_textured_triangle
	.comm	_TEXTURE_1D,4,2                 ; @TEXTURE_1D
	.comm	_lambda_textured_triangle,8,3   ; @lambda_textured_triangle
	.comm	_general_textured_triangle,8,3  ; @general_textured_triangle
	.comm	_GL_SMOOTH,8,3                  ; @GL_SMOOTH
	.comm	_smooth_rgba_triangle,8,3       ; @smooth_rgba_triangle
	.comm	_smooth_ci_triangle,8,3         ; @smooth_ci_triangle
	.comm	_flat_rgba_triangle,8,3         ; @flat_rgba_triangle
	.comm	_flat_ci_triangle,8,3           ; @flat_ci_triangle
	.comm	_GL_FEEDBACK,8,3                ; @GL_FEEDBACK
	.comm	_feedback_triangle,8,3          ; @feedback_triangle
	.comm	_select_triangle,8,3            ; @select_triangle
.subsections_via_symbols
