	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hva_hw_err_irq_thread
_hva_hw_err_irq_thread:                 ## @hva_hw_err_irq_thread
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_hva_to_dev
	movq	%rax, %r14
	movq	_HVA_PREFIX@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movzbl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	andl	$15, %r8d
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_dev_dbg
	movzbl	1(%rbx), %ecx
	movq	_HVA_MAX_INSTANCES@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jbe	LBB0_1
## %bb.2:
	movq	24(%rbx), %rax
	movq	(%rax,%rcx,8), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.3:
	movslq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movl	4(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	$1, (%r15)
LBB0_5:
	movslq	12(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movl	4(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	$1, (%r15)
LBB0_7:
	movslq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movl	4(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	$1, (%r15)
	jmp	LBB0_9
LBB0_1:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_9:
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_complete
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s     status: 0x%02x fifo level: 0x%02x\n"

	.comm	_HVA_PREFIX,4,2                 ## @HVA_PREFIX
	.comm	_HVA_MAX_INSTANCES,8,3          ## @HVA_MAX_INSTANCES
L_.str.1:                               ## @.str.1
	.asciz	"%s     bad context identifier: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s     local memory interface error: 0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s     external memory interface error: 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s     hec memory interface error: 0x%08x\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_hva_hw_err_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hva_hw_err_irq_thread
_hva_hw_err_irq_thread:                 ; @hva_hw_err_irq_thread
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x0, x1
	bl	_hva_to_dev
	mov	x20, x0
Lloh0:
	adrp	x21, _HVA_PREFIX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HVA_PREFIX@GOTPAGEOFF]
	ldr	w2, [x21]
	ldrb	w3, [x19]
	ldr	w8, [x19, #4]
	and	w4, w8, #0xf
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldrb	w3, [x19, #1]
Lloh4:
	adrp	x8, _HVA_MAX_INSTANCES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HVA_MAX_INSTANCES@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, x3
	b.ls	LBB0_8
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x21, [x8, x3, lsl #3]
	cbz	x21, LBB0_9
; %bb.2:
	ldrsw	x3, [x19, #8]
	cbz	w3, LBB0_4
; %bb.3:
	ldr	w2, [x21, #4]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w8, #1
	str	w8, [x21]
LBB0_4:
	ldrsw	x3, [x19, #12]
	cbz	w3, LBB0_6
; %bb.5:
	ldr	w2, [x21, #4]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w8, #1
	str	w8, [x21]
LBB0_6:
	ldrsw	x3, [x19, #16]
	cbz	w3, LBB0_9
; %bb.7:
	ldr	w2, [x21, #4]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_9
LBB0_8:
	ldr	w2, [x21]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_9:
	add	x0, x19, #20
	bl	_complete
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s     status: 0x%02x fifo level: 0x%02x\n"

	.comm	_HVA_PREFIX,4,2                 ; @HVA_PREFIX
	.comm	_HVA_MAX_INSTANCES,8,3          ; @HVA_MAX_INSTANCES
l_.str.1:                               ; @.str.1
	.asciz	"%s     bad context identifier: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s     local memory interface error: 0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s     external memory interface error: 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s     hec memory interface error: 0x%08x\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_hva_hw_err_irq_thread
.subsections_via_symbols
