	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_RenderMode                  ## -- Begin function gl_RenderMode
	.p2align	4, 0x90
_gl_RenderMode:                         ## @gl_RenderMode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_INSIDE_BEGIN_END
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GL_INVALID_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gl_error
LBB0_2:
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_11
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.6:
	cmpl	$0, 32(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_write_hit_record
LBB0_8:
	movl	28(%rbx), %eax
	movl	$-1, %r15d
	cmpl	20(%rbx), %eax
	jg	LBB0_10
## %bb.9:
	movl	16(%rbx), %r15d
LBB0_10:
	movl	$0, 28(%rbx)
	movl	$0, 16(%rbx)
	leaq	24(%rbx), %rax
	jmp	LBB0_12
LBB0_11:
	movl	8(%rbx), %ecx
	cmpl	12(%rbx), %ecx
	leaq	8(%rbx), %rax
	movl	$-1, %r15d
	cmovlel	%ecx, %r15d
LBB0_12:
	movl	$0, (%rax)
	cmpl	$130, %r14d
	je	LBB0_18
LBB0_14:
	cmpl	$129, %r14d
	je	LBB0_20
## %bb.15:
	cmpl	$128, %r14d
	jne	LBB0_17
## %bb.16:
	cmpl	$0, 20(%rbx)
	jne	LBB0_20
	jmp	LBB0_19
LBB0_17:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gl_error
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_4:
	xorl	%r15d, %r15d
	cmpl	$130, %r14d
	jne	LBB0_14
LBB0_18:
	cmpl	$0, 12(%rbx)
	jne	LBB0_20
LBB0_19:
	movq	_GL_INVALID_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gl_error
LBB0_20:
	movl	%r14d, (%rbx)
	movq	_NEW_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_21:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ## @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glRenderMode"

	.comm	_GL_INVALID_ENUM,4,2            ## @GL_INVALID_ENUM
	.comm	_NEW_ALL,4,2                    ## @NEW_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_RenderMode                  ; -- Begin function gl_RenderMode
	.p2align	2
_gl_RenderMode:                         ; @gl_RenderMode
	.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	x20, x1
	mov	x19, x0
	bl	_INSIDE_BEGIN_END
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GL_INVALID_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_INVALID_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gl_error
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_20
; %bb.5:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_write_hit_record
LBB0_7:
	ldr	w8, [x19, #28]
	ldr	w9, [x19, #20]
	cmp	w8, w9
	b.le	LBB0_12
; %bb.8:
	mov	w21, #-1
	b	LBB0_13
LBB0_9:
	mov	x8, x19
	ldp	w9, w10, [x8, #8]!
	cmp	w9, w10
	csinv	w21, w9, wzr, le
	b	LBB0_14
LBB0_10:
	mov	w21, #0
	cmp	w20, #130
	b.ne	LBB0_15
LBB0_11:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_19
	b	LBB0_18
LBB0_12:
	ldr	w21, [x19, #16]
LBB0_13:
	str	wzr, [x19, #28]
	str	wzr, [x19, #16]
	add	x8, x19, #24
LBB0_14:
	str	wzr, [x8]
	cmp	w20, #130
	b.eq	LBB0_11
LBB0_15:
	cmp	w20, #129
	b.eq	LBB0_19
; %bb.16:
	cmp	w20, #128
	b.ne	LBB0_20
; %bb.17:
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_19
LBB0_18:
Lloh5:
	adrp	x8, _GL_INVALID_OPERATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_INVALID_OPERATION@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gl_error
LBB0_19:
	str	w20, [x19]
Lloh10:
	adrp	x8, _NEW_ALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NEW_ALL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_21
LBB0_20:
Lloh13:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gl_error
	mov	w21, #0
LBB0_21:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ; @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glRenderMode"

	.comm	_GL_INVALID_ENUM,4,2            ; @GL_INVALID_ENUM
	.comm	_NEW_ALL,4,2                    ; @NEW_ALL
.subsections_via_symbols
