	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_primitive_type_from_d3d     ## -- Begin function gl_primitive_type_from_d3d
	.p2align	4, 0x90
_gl_primitive_type_from_d3d:            ## @gl_primitive_type_from_d3d
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $edi killed $edi def $rdi
	movl	$-1, %ebx
	leal	-128(%rdi), %eax
	cmpl	$11, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_GL_TRIANGLE_STRIP_ADJACENCY_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	movq	_GL_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_10:
	movq	_GL_TRIANGLES_ADJACENCY_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_5:
	movq	_GL_TRIANGLES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_7:
	movq	_GL_TRIANGLE_FAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	movq	_GL_POINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_12:
	movq	_GL_PATCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_9:
	movq	_GL_LINE_STRIP_ADJACENCY_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_4:
	movq	_GL_LINE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	movq	_GL_LINES_ADJACENCY_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movq	_GL_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_13:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dprimitivetype
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_GL_POINTS,4,2                  ## @GL_POINTS
	.comm	_GL_LINES,4,2                   ## @GL_LINES
	.comm	_GL_LINE_STRIP,4,2              ## @GL_LINE_STRIP
	.comm	_GL_TRIANGLES,4,2               ## @GL_TRIANGLES
	.comm	_GL_TRIANGLE_STRIP,4,2          ## @GL_TRIANGLE_STRIP
	.comm	_GL_TRIANGLE_FAN,4,2            ## @GL_TRIANGLE_FAN
	.comm	_GL_LINES_ADJACENCY_ARB,4,2     ## @GL_LINES_ADJACENCY_ARB
	.comm	_GL_LINE_STRIP_ADJACENCY_ARB,4,2 ## @GL_LINE_STRIP_ADJACENCY_ARB
	.comm	_GL_TRIANGLES_ADJACENCY_ARB,4,2 ## @GL_TRIANGLES_ADJACENCY_ARB
	.comm	_GL_TRIANGLE_STRIP_ADJACENCY_ARB,4,2 ## @GL_TRIANGLE_STRIP_ADJACENCY_ARB
	.comm	_GL_PATCHES,4,2                 ## @GL_PATCHES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled primitive type %s.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_primitive_type_from_d3d     ; -- Begin function gl_primitive_type_from_d3d
	.p2align	2
_gl_primitive_type_from_d3d:            ; @gl_primitive_type_from_d3d
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w0, #128
	cmp	w8, #11
	b.hi	LBB0_14
; %bb.1:
	mov	w0, #-1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _GL_TRIANGLE_STRIP_ADJACENCY_ARB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_TRIANGLE_STRIP_ADJACENCY_ARB@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
Lloh4:
	adrp	x8, _GL_TRIANGLE_STRIP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GL_TRIANGLE_STRIP@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
Lloh6:
	adrp	x8, _GL_TRIANGLES_ADJACENCY_ARB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_TRIANGLES_ADJACENCY_ARB@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
Lloh8:
	adrp	x8, _GL_TRIANGLES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_TRIANGLES@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
Lloh10:
	adrp	x8, _GL_TRIANGLE_FAN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_TRIANGLE_FAN@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
Lloh12:
	adrp	x8, _GL_POINTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_POINTS@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh14:
	adrp	x8, _GL_PATCHES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_PATCHES@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh16:
	adrp	x8, _GL_LINE_STRIP_ADJACENCY_ARB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_LINE_STRIP_ADJACENCY_ARB@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh18:
	adrp	x8, _GL_LINE_STRIP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GL_LINE_STRIP@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh20:
	adrp	x8, _GL_LINES_ADJACENCY_ARB@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_LINES_ADJACENCY_ARB@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh22:
	adrp	x8, _GL_LINES@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_LINES@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	_debug_d3dprimitivetype
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_GL_POINTS,4,2                  ; @GL_POINTS
	.comm	_GL_LINES,4,2                   ; @GL_LINES
	.comm	_GL_LINE_STRIP,4,2              ; @GL_LINE_STRIP
	.comm	_GL_TRIANGLES,4,2               ; @GL_TRIANGLES
	.comm	_GL_TRIANGLE_STRIP,4,2          ; @GL_TRIANGLE_STRIP
	.comm	_GL_TRIANGLE_FAN,4,2            ; @GL_TRIANGLE_FAN
	.comm	_GL_LINES_ADJACENCY_ARB,4,2     ; @GL_LINES_ADJACENCY_ARB
	.comm	_GL_LINE_STRIP_ADJACENCY_ARB,4,2 ; @GL_LINE_STRIP_ADJACENCY_ARB
	.comm	_GL_TRIANGLES_ADJACENCY_ARB,4,2 ; @GL_TRIANGLES_ADJACENCY_ARB
	.comm	_GL_TRIANGLE_STRIP_ADJACENCY_ARB,4,2 ; @GL_TRIANGLE_STRIP_ADJACENCY_ARB
	.comm	_GL_PATCHES,4,2                 ; @GL_PATCHES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled primitive type %s.\n"

.subsections_via_symbols
