	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venus_isr_thread
_venus_isr_thread:                      ## @venus_isr_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_hfi_priv
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	16(%rax), %rbx
	movq	24(%rax), %rax
	movq	(%rax), %r12
	movq	_WRAPPER_INTR_STATUS_A2HWD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_venus_sfr_print
	movq	%r14, %rdi
	callq	_hfi_process_watchdog_timeout
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_venus_iface_msgq_read
	testl	%eax, %eax
	je	LBB0_5
LBB0_14:
	movq	%r15, %rdi
	callq	_venus_flush_debug_queue
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	4(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_complete
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_venus_iface_msgq_read
	testl	%eax, %eax
	jne	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hfi_process_msg_packet
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r12), %esi
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	movq	%r14, %rdi
	movq	%r15, %r8
	callq	_venus_hfi_core_set_resource
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_venus_process_msg_sys_error
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_WRAPPER_INTR_STATUS_A2HWD_MASK,4,2 ## @WRAPPER_INTR_STATUS_A2HWD_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_venus_isr_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venus_isr_thread
_venus_isr_thread:                      ; @venus_isr_thread
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	bl	_to_hfi_priv
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldp	x21, x8, [x0, #16]
	ldr	x24, [x8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WRAPPER_INTR_STATUS_A2HWD_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WRAPPER_INTR_STATUS_A2HWD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_venus_sfr_print
	mov	x0, x19
	bl	_hfi_process_watchdog_timeout
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_venus_iface_msgq_read
	cbz	w0, LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_venus_flush_debug_queue
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	add	x22, x20, #4
	add	x23, x20, #8
Lloh7:
	adrp	x25, lJTI0_0@PAGE
Lloh8:
	add	x25, x25, lJTI0_0@PAGEOFF
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	bl	_complete
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_venus_iface_msgq_read
	cbnz	w0, LBB0_4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_hfi_process_msg_packet
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	adr	x9, LBB0_8
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldp	w2, w1, [x24, #4]
	ldr	w3, [x24]
	mov	x0, x19
	mov	x4, x20
	bl	_venus_hfi_core_set_resource
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_venus_process_msg_sys_error
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_WRAPPER_INTR_STATUS_A2HWD_MASK,4,2 ; @WRAPPER_INTR_STATUS_A2HWD_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_venus_isr_thread
.subsections_via_symbols
