	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stu300_event_occurred
_stu300_event_occurred:                 ## @stu300_event_occurred
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_I2C_SR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_stu300_r8
	movl	%eax, %r15d
	movq	_I2C_SR1_EVF_IND@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r15d, (%rcx)
	je	LBB0_19
## %bb.1:
	movq	_I2C_SR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_stu300_r8
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_stu300_irq_disable
	movq	_I2C_SR2_AF_IND@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_STU300_ERROR_ACKNOWLEDGE_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_I2C_SR2_BERR_IND@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_STU300_ERROR_BUS_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_I2C_SR2_ARLO_IND@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_STU300_ERROR_ARBITRATION_LOST@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leal	-128(%r14), %eax
	cmpl	$8, %eax
	ja	LBB0_18
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_I2C_SR1_BTF_IND@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_16:
	movq	_I2C_SR1_ADD10_IND@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_15:
	movq	_I2C_SR2_ENDAD_IND@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_14:
	movq	_I2C_SR1_SB_IND@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_12:
	movq	_I2C_SR2_STOPF_IND@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	$1, %eax
	testl	%r12d, (%rcx)
	jne	LBB0_19
	jmp	LBB0_18
LBB0_10:
	movq	_I2C_SR1_ADSL_IND@GOTPCREL(%rip), %rcx
LBB0_17:
	movl	$1, %eax
	testl	%r15d, (%rcx)
	jne	LBB0_19
LBB0_18:
	movq	_STU300_ERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_dev_err
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_I2C_SR1,8,3                    ## @I2C_SR1
	.comm	_I2C_SR1_EVF_IND,4,2            ## @I2C_SR1_EVF_IND
	.comm	_I2C_SR2,8,3                    ## @I2C_SR2
	.comm	_I2C_SR2_AF_IND,4,2             ## @I2C_SR2_AF_IND
	.comm	_STU300_ERROR_ACKNOWLEDGE_FAILURE,4,2 ## @STU300_ERROR_ACKNOWLEDGE_FAILURE
	.comm	_I2C_SR2_BERR_IND,4,2           ## @I2C_SR2_BERR_IND
	.comm	_STU300_ERROR_BUS_ERROR,4,2     ## @STU300_ERROR_BUS_ERROR
	.comm	_I2C_SR2_ARLO_IND,4,2           ## @I2C_SR2_ARLO_IND
	.comm	_STU300_ERROR_ARBITRATION_LOST,4,2 ## @STU300_ERROR_ARBITRATION_LOST
	.comm	_I2C_SR1_ADSL_IND,4,2           ## @I2C_SR1_ADSL_IND
	.comm	_I2C_SR1_BTF_IND,4,2            ## @I2C_SR1_BTF_IND
	.comm	_I2C_SR2_STOPF_IND,4,2          ## @I2C_SR2_STOPF_IND
	.comm	_I2C_SR1_SB_IND,4,2             ## @I2C_SR1_SB_IND
	.comm	_I2C_SR2_ENDAD_IND,4,2          ## @I2C_SR2_ENDAD_IND
	.comm	_I2C_SR1_ADD10_IND,4,2          ## @I2C_SR1_ADD10_IND
	.comm	_STU300_ERROR_UNKNOWN,4,2       ## @STU300_ERROR_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled interrupt! %d sr1: 0x%x sr2: 0x%x\n"

	.no_dead_strip	_stu300_event_occurred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stu300_event_occurred
_stu300_event_occurred:                 ; @stu300_event_occurred
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _I2C_SR1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_SR1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_stu300_r8
Lloh3:
	adrp	x8, _I2C_SR1_EVF_IND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_SR1_EVF_IND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_19
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _I2C_SR2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_SR2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_stu300_r8
	mov	x22, x0
	mov	x0, x19
	bl	_stu300_irq_disable
Lloh9:
	adrp	x8, _I2C_SR2_AF_IND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_SR2_AF_IND@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _STU300_ERROR_ACKNOWLEDGE_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STU300_ERROR_ACKNOWLEDGE_FAILURE@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh14:
	adrp	x8, _I2C_SR2_BERR_IND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I2C_SR2_BERR_IND@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _STU300_ERROR_BUS_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STU300_ERROR_BUS_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x8, _I2C_SR2_ARLO_IND@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2C_SR2_ARLO_IND@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.6:
Lloh22:
	adrp	x8, _STU300_ERROR_ARBITRATION_LOST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _STU300_ERROR_ARBITRATION_LOST@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_8:
	mov	w0, #1
	b	LBB0_20
LBB0_9:
	sub	w8, w20, #128
	cmp	w8, #8
	b.hi	LBB0_18
; %bb.10:
Lloh24:
	adrp	x9, lJTI0_0@PAGE
Lloh25:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
Lloh26:
	adrp	x8, _I2C_SR1_BTF_IND@GOTPAGE
Lloh27:
	ldr	x8, [x8, _I2C_SR1_BTF_IND@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_8
	b	LBB0_18
LBB0_13:
Lloh28:
	adrp	x8, _I2C_SR1_ADD10_IND@GOTPAGE
Lloh29:
	ldr	x8, [x8, _I2C_SR1_ADD10_IND@GOTPAGEOFF]
	b	LBB0_12
LBB0_14:
Lloh30:
	adrp	x8, _I2C_SR2_ENDAD_IND@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I2C_SR2_ENDAD_IND@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh32:
	adrp	x8, _I2C_SR1_SB_IND@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I2C_SR1_SB_IND@GOTPAGEOFF]
	b	LBB0_12
LBB0_16:
Lloh34:
	adrp	x8, _I2C_SR2_STOPF_IND@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I2C_SR2_STOPF_IND@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_8
LBB0_18:
Lloh36:
	adrp	x8, _STU300_ERROR_UNKNOWN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _STU300_ERROR_UNKNOWN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x0, [x19]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_dev_err
LBB0_19:
	mov	w0, #0
LBB0_20:
	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
LBB0_21:
Lloh41:
	adrp	x8, _I2C_SR1_ADSL_IND@GOTPAGE
Lloh42:
	ldr	x8, [x8, _I2C_SR1_ADSL_IND@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_21-LBB0_11)>>2
                                        ; -- End function
	.comm	_I2C_SR1,8,3                    ; @I2C_SR1
	.comm	_I2C_SR1_EVF_IND,4,2            ; @I2C_SR1_EVF_IND
	.comm	_I2C_SR2,8,3                    ; @I2C_SR2
	.comm	_I2C_SR2_AF_IND,4,2             ; @I2C_SR2_AF_IND
	.comm	_STU300_ERROR_ACKNOWLEDGE_FAILURE,4,2 ; @STU300_ERROR_ACKNOWLEDGE_FAILURE
	.comm	_I2C_SR2_BERR_IND,4,2           ; @I2C_SR2_BERR_IND
	.comm	_STU300_ERROR_BUS_ERROR,4,2     ; @STU300_ERROR_BUS_ERROR
	.comm	_I2C_SR2_ARLO_IND,4,2           ; @I2C_SR2_ARLO_IND
	.comm	_STU300_ERROR_ARBITRATION_LOST,4,2 ; @STU300_ERROR_ARBITRATION_LOST
	.comm	_I2C_SR1_ADSL_IND,4,2           ; @I2C_SR1_ADSL_IND
	.comm	_I2C_SR1_BTF_IND,4,2            ; @I2C_SR1_BTF_IND
	.comm	_I2C_SR2_STOPF_IND,4,2          ; @I2C_SR2_STOPF_IND
	.comm	_I2C_SR1_SB_IND,4,2             ; @I2C_SR1_SB_IND
	.comm	_I2C_SR2_ENDAD_IND,4,2          ; @I2C_SR2_ENDAD_IND
	.comm	_I2C_SR1_ADD10_IND,4,2          ; @I2C_SR1_ADD10_IND
	.comm	_STU300_ERROR_UNKNOWN,4,2       ; @STU300_ERROR_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled interrupt! %d sr1: 0x%x sr2: 0x%x\n"

	.no_dead_strip	_stu300_event_occurred
.subsections_via_symbols
