	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_ib_parse                    ## -- Begin function si_ib_parse
	.p2align	4, 0x90
_si_ib_parse:                           ## @si_ib_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	%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	%rsi, %r12
	movq	%rdi, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r13
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r12), %r13
	jae	LBB0_21
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -72(%rbp)
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_RADEON_CP_PACKET_GET_TYPE
	movl	%eax, -64(%rbp)
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_RADEON_CP_PACKET_GET_COUNT
	movl	%eax, -60(%rbp)
	movq	$0, -48(%rbp)
	movl	-64(%rbp), %edx
	cmpl	$129, %edx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$130, %edx
	je	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$131, %edx
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_RADEON_CP_PACKET3_GET_OPCODE
	movl	%eax, -56(%rbp)
	cmpl	$0, 24(%r12)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rsi
	movq	%r14, %rdi
	leaq	-72(%rbp), %rdx
	callq	_si_vm_packet3_ce_check
	movl	%eax, %r15d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	subl	(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_20
	jmp	LBB0_16
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r12), %edx
	leal	-132(%rdx), %eax
	cmpl	$2, %eax
	jae	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rsi
	movq	%r14, %rdi
	leaq	-72(%rbp), %rdx
	callq	_si_vm_packet3_compute_check
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %edx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rsi
	movq	%r14, %rdi
	leaq	-72(%rbp), %rdx
	callq	_si_vm_packet3_gfx_check
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	xorl	%r15d, %r15d
	subl	(%rbx), %r15d
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	-60(%rbp), %rax
	addq	%rax, %r13
	addq	$2, %r13
	testl	%r15d, %r15d
	je	LBB0_20
LBB0_16:
	cmpq	$0, (%r12)
	je	LBB0_22
## %bb.17:
	xorl	%ebx, %ebx
	leaq	L_.str.4(%rip), %r14
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r13
	movq	16(%r12), %rax
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rcx, %rdi
	movl	(%rax,%rbx,4), %esi
	callq	_printk
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_18
	jmp	LBB0_22
LBB0_21:
	xorl	%r15d, %r15d
LBB0_22:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet0 not allowed!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Non-PM4 ring %d !\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown packet type %d !\n"

L_.str.3:                               ## @.str.3
	.asciz	"\t0x%08x <---\n"

L_.str.4:                               ## @.str.4
	.asciz	"\t0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_ib_parse                    ; -- Begin function si_ib_parse
	.p2align	2
_si_ib_parse:                           ; @si_ib_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x25, #0
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh2:
	adrp	x26, _EINVAL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x23, l_.str.2@PAGE
Lloh7:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cmp	x25, x8
	b.hs	LBB0_20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x25, [sp, #16]
	ldr	x8, [x19, #16]
	lsl	x24, x25, #2
	ldr	w0, [x8, x24]
	bl	_RADEON_CP_PACKET_GET_TYPE
	str	w0, [sp, #24]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x24]
	bl	_RADEON_CP_PACKET_GET_COUNT
	str	w0, [sp, #28]
	str	xzr, [sp, #40]
	ldr	w8, [sp, #24]
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #130
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #131
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	mov	x1, x22
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x25, lsl #2]
	bl	_RADEON_CP_PACKET3_GET_OPCODE
	str	w0, [sp, #32]
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x19, #16]
	add	x2, sp, #16
	mov	x0, x20
	bl	_si_vm_packet3_ce_check
	mov	x24, x0
	b	LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	str	x8, [sp]
	mov	x1, x23
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_dev_err
	ldr	w8, [x26]
	neg	w24, w8
	cbz	w24, LBB0_2
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	sub	w9, w8, #132
	cmp	w9, #2
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x19, #16]
	add	x2, sp, #16
	mov	x0, x20
	bl	_si_vm_packet3_compute_check
	mov	x24, x0
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x19, #16]
	add	x2, sp, #16
	mov	x0, x20
	bl	_si_vm_packet3_gfx_check
	mov	x24, x0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	str	x8, [sp]
	mov	x1, x21
	bl	_dev_err
	ldr	w8, [x26]
	neg	w24, w8
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [sp, #28]
	add	x8, x8, x25
	add	x25, x8, #2
	cbz	w24, LBB0_2
LBB0_17:
	ldr	x8, [x19]
	cbz	x8, LBB0_21
; %bb.18:
	mov	x20, #0
Lloh8:
	adrp	x21, l_.str.4@PAGE
Lloh9:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh10:
	adrp	x22, l_.str.3@PAGE
Lloh11:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	cmp	x25, x20
	csel	x0, x22, x21, eq
	ldr	w1, [x8, x20, lsl #2]
	bl	_printk
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lo	LBB0_19
	b	LBB0_21
LBB0_20:
	mov	w24, #0
LBB0_21:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet0 not allowed!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Non-PM4 ring %d !\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown packet type %d !\n"

l_.str.3:                               ; @.str.3
	.asciz	"\t0x%08x <---\n"

l_.str.4:                               ; @.str.4
	.asciz	"\t0x%08x\n"

.subsections_via_symbols
