	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bad_prim_vertex_nr
_bad_prim_vertex_nr:                    ## @bad_prim_vertex_nr
	.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
	movq	_RADEON_PRIM_TYPE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	addl	$-128, %edi
	cmpl	$9, %edi
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	imull	$-1431655765, %esi, %eax        ## imm = 0xAAAAAAAB
	addl	$715827882, %eax                ## imm = 0x2AAAAAAA
	cmpl	$1431655765, %eax               ## imm = 0x55555555
	setae	%cl
	testl	%esi, %esi
	sete	%al
	orb	%cl, %al
	jmp	LBB0_9
LBB0_7:
	cmpl	$3, %esi
	jmp	LBB0_8
LBB0_3:
	testl	%esi, %esi
	setle	%al
	jmp	LBB0_9
LBB0_1:
	movb	$1, %al
	jmp	LBB0_9
LBB0_4:
	testl	%esi, %esi
	sete	%al
	orb	%sil, %al
	jmp	LBB0_9
LBB0_5:
	cmpl	$2, %esi
LBB0_8:
	setl	%al
LBB0_9:
	movzbl	%al, %eax
	andl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_RADEON_PRIM_TYPE_MASK,4,2      ## @RADEON_PRIM_TYPE_MASK
	.no_dead_strip	_bad_prim_vertex_nr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bad_prim_vertex_nr
_bad_prim_vertex_nr:                    ; @bad_prim_vertex_nr
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RADEON_PRIM_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_PRIM_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	mov	w9, #43690
	movk	w9, #10922, lsl #16
	madd	w8, w1, w8, w9
	cmp	w1, #0
	mov	w9, #21844
	movk	w9, #21845, lsl #16
	ccmp	w8, w9, #2, ne
	cset	w8, hi
	and	w0, w8, #0x1
	ret
LBB0_3:
	cmp	w1, #3
	b	LBB0_8
LBB0_4:
	cmp	w1, #1
	b	LBB0_8
LBB0_5:
	mov	w8, #1
	and	w0, w8, #0x1
	ret
LBB0_6:
	cmp	w1, #0
	cset	w8, eq
	orr	w8, w8, w1
	and	w0, w8, #0x1
	ret
LBB0_7:
	cmp	w1, #2
LBB0_8:
	cset	w8, lt
	and	w0, w8, #0x1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_RADEON_PRIM_TYPE_MASK,4,2      ; @RADEON_PRIM_TYPE_MASK
	.no_dead_strip	_bad_prim_vertex_nr
.subsections_via_symbols
