	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_Cull                        ## -- Begin function GL_Cull
	.p2align	4, 0x90
_GL_Cull:                               ## @GL_Cull
	.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	%edi, %r14d
	movq	_CT_TWO_SIDED@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_glState@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_7
## %bb.2:
	movq	_GL_CULL_FACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglDisable
	jmp	LBB0_7
LBB0_3:
	movq	_backEnd@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_CT_FRONT_SIDED@GOTPCREL(%rip), %rax
	movq	_GL_FRONT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_GL_BACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rdx
	cmoveq	%rbx, %rdx
	cmoveq	%rcx, %rbx
	cmpl	%r14d, (%rax)
	cmoveq	%rdx, %rbx
	movq	_glState@GOTPCREL(%rip), %r15
	cmpl	%r14d, (%r15)
	je	LBB0_5
## %bb.4:
	movq	_GL_CULL_FACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnable
LBB0_5:
	cmpq	%rbx, 8(%r15)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_qglCullFace
	movq	%rbx, 8(%r15)
LBB0_7:
	movq	_glState@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CT_TWO_SIDED,4,2               ## @CT_TWO_SIDED
	.comm	_glState,16,3                   ## @glState
	.comm	_GL_CULL_FACE,4,2               ## @GL_CULL_FACE
	.comm	_backEnd,8,3                    ## @backEnd
	.comm	_CT_FRONT_SIDED,4,2             ## @CT_FRONT_SIDED
	.comm	_GL_BACK,8,3                    ## @GL_BACK
	.comm	_GL_FRONT,8,3                   ## @GL_FRONT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_Cull                        ; -- Begin function GL_Cull
	.p2align	2
_GL_Cull:                               ; @GL_Cull
	.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, x0
Lloh0:
	adrp	x8, _CT_TWO_SIDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CT_TWO_SIDED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _glState@GOTPAGE
Lloh4:
	ldr	x21, [x21, _glState@GOTPAGEOFF]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w19
	b.eq	LBB0_7
; %bb.2:
Lloh5:
	adrp	x8, _GL_CULL_FACE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_CULL_FACE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_qglDisable
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _backEnd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _backEnd@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _CT_FRONT_SIDED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CT_FRONT_SIDED@GOTPAGEOFF]
Lloh13:
	adrp	x10, _GL_FRONT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _GL_FRONT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	ldr	x10, [x10]
Lloh17:
	adrp	x11, _GL_BACK@GOTPAGE
Lloh18:
	ldr	x11, [x11, _GL_BACK@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	cmp	x8, #0
	csel	x8, x10, x11, eq
	csel	x10, x11, x10, eq
	cmp	w9, w19
	csel	x20, x8, x10, eq
	ldr	w8, [x21]
	cmp	w8, w19
	b.eq	LBB0_5
; %bb.4:
Lloh20:
	adrp	x8, _GL_CULL_FACE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_CULL_FACE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_qglEnable
LBB0_5:
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_qglCullFace
	str	x20, [x21, #8]
LBB0_7:
	str	w19, [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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CT_TWO_SIDED,4,2               ; @CT_TWO_SIDED
	.comm	_glState,16,3                   ; @glState
	.comm	_GL_CULL_FACE,4,2               ; @GL_CULL_FACE
	.comm	_backEnd,8,3                    ; @backEnd
	.comm	_CT_FRONT_SIDED,4,2             ; @CT_FRONT_SIDED
	.comm	_GL_BACK,8,3                    ; @GL_BACK
	.comm	_GL_FRONT,8,3                   ; @GL_FRONT
.subsections_via_symbols
