	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_bb_end
_audit_bb_end:                          ## @audit_bb_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rsi), %r14d
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %edx
	movl	%r14d, %esi
	callq	_get_cmd_info
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movq	_OP_MI_BATCH_BUFFER_END@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_OP_MI_BATCH_BUFFER_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	callq	_BATCH_BUFFER_2ND_LEVEL_BIT
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	movl	12(%rbx), %esi
	movl	%r14d, %edi
	callq	_get_opcode
	movq	(%rbx), %rcx
	movq	_PPGTT_BUFFER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rdx, %rcx
	movl	12(%rbx), %r8d
	movl	8(%rbx), %r9d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_gvt_vgpu_err
LBB0_5:
	movq	_EBADRQC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown cmd 0x%x, opcode=0x%x, addr_type=%s, ring %d, workload=%p\n"

	.comm	_PPGTT_BUFFER,8,3               ## @PPGTT_BUFFER
L_.str.1:                               ## @.str.1
	.asciz	"ppgtt"

L_.str.2:                               ## @.str.2
	.asciz	"ggtt"

	.comm	_EBADRQC,4,2                    ## @EBADRQC
	.comm	_OP_MI_BATCH_BUFFER_END,8,3     ## @OP_MI_BATCH_BUFFER_END
	.comm	_OP_MI_BATCH_BUFFER_START,8,3   ## @OP_MI_BATCH_BUFFER_START
	.no_dead_strip	_audit_bb_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_bb_end
_audit_bb_end:                          ; @audit_bb_end
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w19, [x1]
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	ldr	w2, [x20, #12]
	mov	x1, x19
	bl	_get_cmd_info
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _OP_MI_BATCH_BUFFER_END@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OP_MI_BATCH_BUFFER_END@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	ldr	w1, [x20, #12]
	mov	x0, x19
	bl	_get_opcode
	mov	x2, x0
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _PPGTT_BUFFER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PPGTT_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh8:
	adrp	x11, l_.str.1@PAGE
Lloh9:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x3, x11, x10, eq
	ldp	w5, w4, [x20, #8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_gvt_vgpu_err
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x9, _OP_MI_BATCH_BUFFER_START@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OP_MI_BATCH_BUFFER_START@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_BATCH_BUFFER_2ND_LEVEL_BIT
	cbz	x0, LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _EBADRQC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBADRQC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown cmd 0x%x, opcode=0x%x, addr_type=%s, ring %d, workload=%p\n"

	.comm	_PPGTT_BUFFER,8,3               ; @PPGTT_BUFFER
l_.str.1:                               ; @.str.1
	.asciz	"ppgtt"

l_.str.2:                               ; @.str.2
	.asciz	"ggtt"

	.comm	_EBADRQC,4,2                    ; @EBADRQC
	.comm	_OP_MI_BATCH_BUFFER_END,8,3     ; @OP_MI_BATCH_BUFFER_END
	.comm	_OP_MI_BATCH_BUFFER_START,8,3   ; @OP_MI_BATCH_BUFFER_START
	.no_dead_strip	_audit_bb_end
.subsections_via_symbols
