	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_ib_parse             ## -- Begin function evergreen_ib_parse
	.p2align	4, 0x90
_evergreen_ib_parse:                    ## @evergreen_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, %rbx
	movq	%rdi, %r14
	movq	_EINVAL@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r12
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%rbx), %r12
	jae	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, -72(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	callq	_RADEON_CP_PACKET_GET_TYPE
	movl	%eax, -64(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	callq	_RADEON_CP_PACKET_GET_COUNT
	movl	%eax, -60(%rbp)
	movq	$0, -48(%rbp)
	movl	-64(%rbp), %edx
	cmpl	$128, %edx
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %edx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$130, %edx
	jne	LBB0_7
## %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_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	callq	_RADEON_CP_PACKET3_GET_OPCODE
	movl	%eax, -56(%rbp)
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	leaq	-72(%rbp), %rdx
	callq	_evergreen_vm_packet3_check
	movslq	-60(%rbp), %rcx
	addq	%rcx, %r12
	addq	$2, %r12
	testl	%eax, %eax
	je	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	subl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_10
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	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	"Unknown packet type %d !\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_ib_parse             ; -- Begin function evergreen_ib_parse
	.p2align	2
_evergreen_ib_parse:                    ; @evergreen_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	x23, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x24, _EINVAL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cmp	x23, x8
	b.hs	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x23, [sp, #16]
	ldr	x8, [x19, #8]
	lsl	x25, x23, #2
	ldr	w0, [x8, x25]
	bl	_RADEON_CP_PACKET_GET_TYPE
	str	w0, [sp, #24]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x25]
	bl	_RADEON_CP_PACKET_GET_COUNT
	str	w0, [sp, #28]
	str	xzr, [sp, #40]
	ldr	w8, [sp, #24]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #129
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	mov	x1, x21
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x23, lsl #2]
	bl	_RADEON_CP_PACKET3_GET_OPCODE
	str	w0, [sp, #32]
	ldr	x1, [x19, #8]
	add	x2, sp, #16
	mov	x0, x20
	bl	_evergreen_vm_packet3_check
	ldrsw	x8, [sp, #28]
	add	x8, x8, x23
	add	x23, x8, #2
	cbz	w0, LBB0_2
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	str	x8, [sp]
	mov	x1, x22
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_dev_err
	ldr	w8, [x24]
	neg	w0, w8
	cbz	w0, LBB0_2
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.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	"Unknown packet type %d !\n"

.subsections_via_symbols
