	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_PolygonMode                 ## -- Begin function gl_PolygonMode
	.p2align	4, 0x90
_gl_PolygonMode:                        ## @gl_PolygonMode
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	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
	jmp	LBB0_10
LBB0_2:
	movq	_GL_FRONT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_GL_BACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_GL_FRONT_AND_BACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rsi
	je	LBB0_6
## %bb.3:
	cmpq	%rbx, %rcx
	je	LBB0_6
## %bb.4:
	cmpq	%rbx, %rax
	je	LBB0_6
## %bb.5:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_10
LBB0_6:
	movq	_GL_POINT@GOTPCREL(%rip), %rdi
	movq	_GL_FILL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%r14, (%rdi)
	je	LBB0_11
## %bb.7:
	movq	_GL_LINE@GOTPCREL(%rip), %rdi
	cmpq	%r14, (%rdi)
	je	LBB0_11
## %bb.8:
	cmpq	%r14, %rdx
	je	LBB0_11
## %bb.9:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_10:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
LBB0_11:
	cmpq	%rbx, %rsi
	je	LBB0_13
## %bb.12:
	cmpq	%rbx, %rax
	jne	LBB0_14
LBB0_13:
	movq	%r14, 8(%r15)
LBB0_14:
	cmpq	%rbx, %rcx
	je	LBB0_19
## %bb.15:
	cmpq	%rbx, %rax
	je	LBB0_19
## %bb.16:
	cmpq	%rdx, 8(%r15)
	jne	LBB0_21
	jmp	LBB0_17
LBB0_19:
	movq	%r14, 16(%r15)
	cmpq	%rdx, 8(%r15)
	jne	LBB0_21
LBB0_17:
	cmpq	%rdx, 16(%r15)
	jne	LBB0_21
## %bb.18:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_NEW_POLYGON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	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	"glPolygonMode"

	.comm	_GL_FRONT,8,3                   ## @GL_FRONT
	.comm	_GL_BACK,8,3                    ## @GL_BACK
	.comm	_GL_FRONT_AND_BACK,8,3          ## @GL_FRONT_AND_BACK
	.comm	_GL_INVALID_ENUM,4,2            ## @GL_INVALID_ENUM
L_.str.1:                               ## @.str.1
	.asciz	"glPolygonMode(face)"

	.comm	_GL_POINT,8,3                   ## @GL_POINT
	.comm	_GL_LINE,8,3                    ## @GL_LINE
	.comm	_GL_FILL,8,3                    ## @GL_FILL
L_.str.2:                               ## @.str.2
	.asciz	"glPolygonMode(mode)"

	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_NEW_POLYGON,4,2                ## @NEW_POLYGON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_PolygonMode                 ; -- Begin function gl_PolygonMode
	.p2align	2
_gl_PolygonMode:                        ; @gl_PolygonMode
	.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, x2
	mov	x21, 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
	b	LBB0_13
LBB0_2:
Lloh5:
	adrp	x8, _GL_FRONT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_FRONT@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x8]
Lloh8:
	adrp	x8, _GL_BACK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_BACK@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x8]
Lloh11:
	adrp	x8, _GL_FRONT_AND_BACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_FRONT_AND_BACK@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x8]
	cmp	x11, x21
	ccmp	x9, x21, #4, ne
	ccmp	x10, x21, #4, ne
	b.ne	LBB0_11
; %bb.3:
Lloh14:
	adrp	x8, _GL_POINT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_POINT@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x8]
Lloh17:
	adrp	x8, _GL_LINE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GL_LINE@GOTPAGEOFF]
Lloh19:
	ldr	x13, [x8]
Lloh20:
	adrp	x8, _GL_FILL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_FILL@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x12, x20
	ccmp	x13, x20, #4, ne
	ccmp	x8, x20, #4, ne
	b.ne	LBB0_12
; %bb.4:
	cmp	x11, x21
	ccmp	x10, x21, #4, ne
	b.ne	LBB0_6
; %bb.5:
	str	x20, [x19, #8]
LBB0_6:
	cmp	x9, x21
	ccmp	x10, x21, #4, ne
	b.ne	LBB0_8
; %bb.7:
	str	x20, [x19, #16]
LBB0_8:
	ldr	x10, [x19, #8]
Lloh23:
	adrp	x9, _GL_TRUE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GL_TRUE@GOTPAGEOFF]
	cmp	x10, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	x10, [x19, #16]
Lloh25:
	adrp	x11, _GL_FALSE@GOTPAGE
Lloh26:
	ldr	x11, [x11, _GL_FALSE@GOTPAGEOFF]
	cmp	x10, x8
	csel	x9, x11, x9, eq
LBB0_10:
	ldr	w8, [x9]
	str	w8, [x19, #24]
Lloh27:
	adrp	x8, _NEW_POLYGON@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NEW_POLYGON@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [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
	ret
LBB0_11:
Lloh30:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str.1@PAGE
Lloh34:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh35:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str.2@PAGE
Lloh39:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_13:
	mov	x0, 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_error
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ; @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glPolygonMode"

	.comm	_GL_FRONT,8,3                   ; @GL_FRONT
	.comm	_GL_BACK,8,3                    ; @GL_BACK
	.comm	_GL_FRONT_AND_BACK,8,3          ; @GL_FRONT_AND_BACK
	.comm	_GL_INVALID_ENUM,4,2            ; @GL_INVALID_ENUM
l_.str.1:                               ; @.str.1
	.asciz	"glPolygonMode(face)"

	.comm	_GL_POINT,8,3                   ; @GL_POINT
	.comm	_GL_LINE,8,3                    ; @GL_LINE
	.comm	_GL_FILL,8,3                    ; @GL_FILL
l_.str.2:                               ; @.str.2
	.asciz	"glPolygonMode(mode)"

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_NEW_POLYGON,4,2                ; @NEW_POLYGON
.subsections_via_symbols
