	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d_primitive_type_from_gl
_d3d_primitive_type_from_gl:            ## @d3d_primitive_type_from_gl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	leal	-128(%rdi), %ecx
	cmpl	$10, %ecx
	ja	LBB0_1
## %bb.4:
	movq	_WINED3D_PT_POINTLIST@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_13:
	movq	_WINED3D_PT_TRIANGLESTRIP_ADJ@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_1:
	cmpl	$-1, %edi
	je	LBB0_3
## %bb.2:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dprimitivetype
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_3:
	movq	_WINED3D_PT_UNDEFINED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	_WINED3D_PT_TRIANGLESTRIP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_WINED3D_PT_TRIANGLEFAN@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_WINED3D_PT_TRIANGLELIST_ADJ@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	movq	_WINED3D_PT_TRIANGLELIST@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_WINED3D_PT_PATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_WINED3D_PT_LINESTRIP_ADJ@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	movq	_WINED3D_PT_LINESTRIP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_WINED3D_PT_LINELIST_ADJ@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	movq	_WINED3D_PT_LINELIST@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.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
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_15
	.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
	.end_data_region
                                        ## -- End function
	.comm	_WINED3D_PT_POINTLIST,4,2       ## @WINED3D_PT_POINTLIST
	.comm	_WINED3D_PT_LINELIST,4,2        ## @WINED3D_PT_LINELIST
	.comm	_WINED3D_PT_LINESTRIP,4,2       ## @WINED3D_PT_LINESTRIP
	.comm	_WINED3D_PT_TRIANGLELIST,4,2    ## @WINED3D_PT_TRIANGLELIST
	.comm	_WINED3D_PT_TRIANGLESTRIP,4,2   ## @WINED3D_PT_TRIANGLESTRIP
	.comm	_WINED3D_PT_TRIANGLEFAN,4,2     ## @WINED3D_PT_TRIANGLEFAN
	.comm	_WINED3D_PT_LINELIST_ADJ,4,2    ## @WINED3D_PT_LINELIST_ADJ
	.comm	_WINED3D_PT_LINESTRIP_ADJ,4,2   ## @WINED3D_PT_LINESTRIP_ADJ
	.comm	_WINED3D_PT_TRIANGLELIST_ADJ,4,2 ## @WINED3D_PT_TRIANGLELIST_ADJ
	.comm	_WINED3D_PT_TRIANGLESTRIP_ADJ,4,2 ## @WINED3D_PT_TRIANGLESTRIP_ADJ
	.comm	_WINED3D_PT_PATCH,4,2           ## @WINED3D_PT_PATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled primitive type %s.\n"

	.comm	_WINED3D_PT_UNDEFINED,4,2       ## @WINED3D_PT_UNDEFINED
	.no_dead_strip	_d3d_primitive_type_from_gl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d_primitive_type_from_gl
_d3d_primitive_type_from_gl:            ; @d3d_primitive_type_from_gl
	.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	w9, w0, #128
	cmp	w9, #10
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _WINED3D_PT_POINTLIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_PT_POINTLIST@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _WINED3D_PT_TRIANGLESTRIP_ADJ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WINED3D_PT_TRIANGLESTRIP_ADJ@GOTPAGEOFF]
	b	LBB0_15
LBB0_3:
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	bl	_debug_d3dprimitivetype
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_5:
Lloh8:
	adrp	x8, _WINED3D_PT_UNDEFINED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WINED3D_PT_UNDEFINED@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh10:
	adrp	x8, _WINED3D_PT_TRIANGLESTRIP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WINED3D_PT_TRIANGLESTRIP@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
Lloh12:
	adrp	x8, _WINED3D_PT_TRIANGLEFAN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WINED3D_PT_TRIANGLEFAN@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
Lloh14:
	adrp	x8, _WINED3D_PT_TRIANGLELIST_ADJ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WINED3D_PT_TRIANGLELIST_ADJ@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh16:
	adrp	x8, _WINED3D_PT_TRIANGLELIST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WINED3D_PT_TRIANGLELIST@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh18:
	adrp	x8, _WINED3D_PT_PATCH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WINED3D_PT_PATCH@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh20:
	adrp	x8, _WINED3D_PT_LINESTRIP_ADJ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WINED3D_PT_LINESTRIP_ADJ@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh22:
	adrp	x8, _WINED3D_PT_LINESTRIP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WINED3D_PT_LINESTRIP@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh24:
	adrp	x8, _WINED3D_PT_LINELIST_ADJ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WINED3D_PT_LINELIST_ADJ@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh26:
	adrp	x8, _WINED3D_PT_LINELIST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WINED3D_PT_LINELIST@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	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 AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-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_15-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_WINED3D_PT_POINTLIST,4,2       ; @WINED3D_PT_POINTLIST
	.comm	_WINED3D_PT_LINELIST,4,2        ; @WINED3D_PT_LINELIST
	.comm	_WINED3D_PT_LINESTRIP,4,2       ; @WINED3D_PT_LINESTRIP
	.comm	_WINED3D_PT_TRIANGLELIST,4,2    ; @WINED3D_PT_TRIANGLELIST
	.comm	_WINED3D_PT_TRIANGLESTRIP,4,2   ; @WINED3D_PT_TRIANGLESTRIP
	.comm	_WINED3D_PT_TRIANGLEFAN,4,2     ; @WINED3D_PT_TRIANGLEFAN
	.comm	_WINED3D_PT_LINELIST_ADJ,4,2    ; @WINED3D_PT_LINELIST_ADJ
	.comm	_WINED3D_PT_LINESTRIP_ADJ,4,2   ; @WINED3D_PT_LINESTRIP_ADJ
	.comm	_WINED3D_PT_TRIANGLELIST_ADJ,4,2 ; @WINED3D_PT_TRIANGLELIST_ADJ
	.comm	_WINED3D_PT_TRIANGLESTRIP_ADJ,4,2 ; @WINED3D_PT_TRIANGLESTRIP_ADJ
	.comm	_WINED3D_PT_PATCH,4,2           ; @WINED3D_PT_PATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled primitive type %s.\n"

	.comm	_WINED3D_PT_UNDEFINED,4,2       ; @WINED3D_PT_UNDEFINED
	.no_dead_strip	_d3d_primitive_type_from_gl
.subsections_via_symbols
