	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r300_cs_parse                  ## -- Begin function r300_cs_parse
	.p2align	4, 0x90
_r300_cs_parse:                         ## @r300_cs_parse
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	movq	%rax, %rsi
	callq	_r100_cs_track_clear
	movq	%r14, 24(%rbx)
	movl	8(%rbx), %edx
	leaq	-40(%rbp), %r14
	movq	_r300_packet0_check@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_r300_packet3_check
	testl	%eax, %eax
	je	LBB0_12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_radeon_cs_packet_parse
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-32(%rbp), %eax
	movl	8(%rbx), %ecx
	leal	(%rax,%rcx), %edx
	addl	$2, %edx
	movl	%edx, 8(%rbx)
	movl	-40(%rbp), %esi
	cmpl	$128, %esi
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %esi
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$130, %esi
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %r8
	callq	_r100_cs_parse_packet0
	testl	%eax, %eax
	jne	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rbx), %edx
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rax
	cmpl	(%rax), %edx
	jl	LBB0_4
## %bb.14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_r300_packet0_check,4,2         ## @r300_packet0_check
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown packet type %d !\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r300_cs_parse                  ; -- Begin function r300_cs_parse
	.p2align	2
_r300_cs_parse:                         ; @r300_cs_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
	mov	x1, x20
	bl	_r100_cs_track_clear
	str	x20, [x19, #24]
	ldr	w2, [x19, #8]
Lloh3:
	adrp	x20, _r300_packet0_check@GOTPAGE
Lloh4:
	ldr	x20, [x20, _r300_packet0_check@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_r300_packet3_check
	cbz	w0, LBB0_8
	b	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_radeon_cs_packet_parse
	cbnz	w0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [sp, #8]
	ldr	w1, [sp]
	add	w8, w9, w8
	add	w2, w8, #2
	str	w2, [x19, #8]
	cmp	w1, #128
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w1, #129
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w1, #130
	b.ne	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldp	w3, w2, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	x4, x20
	bl	_r100_cs_parse_packet0
	cbnz	w0, LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x19, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w2, w8
	b.lt	LBB0_3
; %bb.10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_r300_packet0_check,4,2         ; @r300_packet0_check
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown packet type %d !\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
