	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr_interrupt
_sr_interrupt:                          ## @sr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rsi), %edx
	cmpl	$129, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.3:
	movq	_IRQSTATUS@GOTPCREL(%rip), %r15
	jmp	LBB0_4
LBB0_1:
	movq	_ERRCONFIG_V1@GOTPCREL(%rip), %r15
LBB0_4:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sr_read_reg
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_sr_write_reg
	movq	_sr_class@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%rcx
	jmp	LBB0_6
LBB0_7:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERRCONFIG_V1,4,2               ## @ERRCONFIG_V1
	.comm	_IRQSTATUS,4,2                  ## @IRQSTATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UNKNOWN IP type %d\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_sr_class,8,3                   ## @sr_class
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_sr_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr_interrupt
_sr_interrupt:                          ; @sr_interrupt
	.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
	ldr	w2, [x1]
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x21, _IRQSTATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IRQSTATUS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x21, _ERRCONFIG_V1@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ERRCONFIG_V1@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_sr_read_reg
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_sr_write_reg
Lloh4:
	adrp	x8, _sr_class@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sr_class@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_6:
Lloh7:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERRCONFIG_V1,4,2               ; @ERRCONFIG_V1
	.comm	_IRQSTATUS,4,2                  ; @IRQSTATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UNKNOWN IP type %d\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_sr_class,8,3                   ; @sr_class
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_sr_interrupt
.subsections_via_symbols
