	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfc4s8s_interrupt
_hfc4s8s_interrupt:                     ## @hfc4s8s_interrupt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	_M_GLOB_IRQ_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rsi)
	je	LBB0_14
## %bb.2:
	movq	%r15, %rdi
	callq	_GetRegAddr
	movl	%eax, %r14d
	movq	_R_SCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_Read_hfc8
	andl	16(%r15), %eax
	orl	%eax, 12(%r15)
	movq	_R_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_Read_hfc8
	movq	_M_MISC_IRQSTA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_M_FR_IRQSTA@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	jne	LBB0_5
## %bb.3:
	cmpl	$0, 12(%r15)
	je	LBB0_4
LBB0_5:
	movq	_R_IRQ_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_Read_hfc8
	movq	_M_TI_IRQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	$1, 20(%r15)
	decl	40(%r15)
LBB0_7:
	movq	_R_IRQ_OVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_Read_hfc8
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movl	%eax, %r12d
	orl	%eax, 24(%r15)
	movq	_R_IRQ_FIFO_BL0@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	32(%r15), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %rbx
	incl	%r13d
	movl	%r12d, %eax
	sarl	%eax
	cmpl	$1, %r12d
	movl	%eax, %r12d
	jbe	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r12b
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_Read_hfc8
	orl	%eax, (%rbx)
	jmp	LBB0_11
LBB0_12:
	movq	%r15, %rdi
	callq	_schedule_work
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
LBB0_13:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_SetRegAddr
LBB0_14:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_M_GLOB_IRQ_EN,4,2              ## @M_GLOB_IRQ_EN
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_R_SCI,4,2                      ## @R_SCI
	.comm	_R_STATUS,4,2                   ## @R_STATUS
	.comm	_M_MISC_IRQSTA,4,2              ## @M_MISC_IRQSTA
	.comm	_M_FR_IRQSTA,4,2                ## @M_FR_IRQSTA
	.comm	_R_IRQ_MISC,4,2                 ## @R_IRQ_MISC
	.comm	_M_TI_IRQ,4,2                   ## @M_TI_IRQ
	.comm	_R_IRQ_OVIEW,4,2                ## @R_IRQ_OVIEW
	.comm	_R_IRQ_FIFO_BL0,4,2             ## @R_IRQ_FIFO_BL0
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_hfc4s8s_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfc4s8s_interrupt
_hfc4s8s_interrupt:                     ; @hfc4s8s_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_11
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #8]
Lloh0:
	adrp	x9, _M_GLOB_IRQ_EN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _M_GLOB_IRQ_EN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_GetRegAddr
	mov	x20, x0
Lloh3:
	adrp	x8, _R_SCI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R_SCI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_Read_hfc8
	ldr	w8, [x19, #16]
	and	w8, w8, w0
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
Lloh6:
	adrp	x8, _R_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_Read_hfc8
Lloh9:
	adrp	x8, _M_MISC_IRQSTA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_MISC_IRQSTA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _M_FR_IRQSTA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _M_FR_IRQSTA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_15
LBB0_4:
Lloh15:
	adrp	x8, _R_IRQ_MISC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R_IRQ_MISC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_Read_hfc8
Lloh18:
	adrp	x8, _M_TI_IRQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_TI_IRQ@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #20]
	ldr	w8, [x19, #40]
	sub	w8, w8, #1
	str	w8, [x19, #40]
LBB0_6:
Lloh21:
	adrp	x8, _R_IRQ_OVIEW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _R_IRQ_OVIEW@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_Read_hfc8
	cbz	w0, LBB0_12
; %bb.7:
	mov	x21, x0
	ldr	w8, [x19, #24]
	orr	w8, w8, w0
	str	w8, [x19, #24]
Lloh24:
	adrp	x8, _R_IRQ_FIFO_BL0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _R_IRQ_FIFO_BL0@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
	ldr	x23, [x19, #32]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #4
	add	w22, w22, #1
	asr	w8, w21, #1
	cmp	w21, #1
	mov	x21, x8
	b.ls	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w21, #0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_Read_hfc8
	ldr	w8, [x23]
	orr	w8, w8, w0
	str	w8, [x23]
	b	LBB0_8
LBB0_11:
Lloh27:
	adrp	x21, _IRQ_NONE@GOTPAGE
Lloh28:
	ldr	x21, [x21, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_schedule_work
Lloh29:
	adrp	x21, _IRQ_HANDLED@GOTPAGE
Lloh30:
	ldr	x21, [x21, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_SetRegAddr
LBB0_14:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh31:
	adrp	x21, _IRQ_NONE@GOTPAGE
Lloh32:
	ldr	x21, [x21, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_M_GLOB_IRQ_EN,4,2              ; @M_GLOB_IRQ_EN
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_R_SCI,4,2                      ; @R_SCI
	.comm	_R_STATUS,4,2                   ; @R_STATUS
	.comm	_M_MISC_IRQSTA,4,2              ; @M_MISC_IRQSTA
	.comm	_M_FR_IRQSTA,4,2                ; @M_FR_IRQSTA
	.comm	_R_IRQ_MISC,4,2                 ; @R_IRQ_MISC
	.comm	_M_TI_IRQ,4,2                   ; @M_TI_IRQ
	.comm	_R_IRQ_OVIEW,4,2                ; @R_IRQ_OVIEW
	.comm	_R_IRQ_FIFO_BL0,4,2             ; @R_IRQ_FIFO_BL0
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_hfc4s8s_interrupt
.subsections_via_symbols
