	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_cs_parse_packet0          ## -- Begin function r100_cs_parse_packet0
	.p2align	4, 0x90
_r100_cs_parse_packet0:                 ## @r100_cs_parse_packet0
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %r8d
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%r8d, %edi
	jmp	LBB0_2
LBB0_4:
	movl	8(%r14), %edi
	leal	(%r8,%rdi,4), %edi
LBB0_2:
	shrl	$7, %edi
	cmpl	%ecx, %edi
	jbe	LBB0_5
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	$4, %r8d
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
	cmpl	8(%r14), %r12d
	ja	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %ebx
	movl	%r8d, %ecx
	shrb	$2, %cl
	movl	$1, %r15d
	shll	%cl, %r15d
	shrl	$7, %ebx
	movl	(%rdx,%rbx,4), %edi
	movzbl	%cl, %ecx
	btl	%ecx, %edi
	jae	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r8, %r13
	movl	%r8d, %ecx
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r14), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %r8
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%r15d, (%rdx,%rbx,4)
	jne	LBB0_12
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_cs_parse_packet0          ; -- Begin function r100_cs_parse_packet0
	.p2align	2
_r100_cs_parse_packet0:                 ; @r100_cs_parse_packet0
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldp	w9, w23, [x1]
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_3
; %bb.1:
	cmp	w3, w23, lsr #7
	b.hs	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_3:
	ldr	w10, [x21, #8]
	add	w10, w23, w10, lsl #2
	cmp	w3, w10, lsr #7
	b.lo	LBB0_2
LBB0_4:
	mov	w24, #0
	add	w25, w9, #1
	mov	w26, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w23, #4
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w24, #1
	ldr	w9, [x21, #8]
	cmp	w24, w9
	b.hi	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w27, w23, #7
	lsr	w9, w23, #2
	lsl	w28, w26, w9
	ldr	w9, [x20, w27, uxtw #2]
	tst	w9, w28
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w2, w25, w24
	mov	x0, x22
	mov	x1, x21
	mov	x3, x23
	blr	x19
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #16]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x8, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20, x27, lsl #2]
	tst	w9, w28
	b.ne	LBB0_6
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
