	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mip4_interrupt
_mip4_interrupt:                        ## @mip4_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rsi), %r14
	movq	_MIP4_R0_EVENT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	_MIP4_R1_EVENT_PACKET_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%rsi), %rcx
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$8, %edx
	movl	$1, %r8d
	callq	_mip4_i2c_xfer
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r13), %rax
	movl	(%rax), %r15d
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %r12d
	andl	%r15d, %r12d
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	andl	$127, %edx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	andl	$127, %r15d
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	_MIP4_R1_EVENT_PACKET_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%r13), %rcx
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$8, %edx
	movl	%r15d, %r8d
	callq	_mip4_i2c_xfer
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.14:
	movq	(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_12
LBB0_8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_mip4_handle_packet
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	16(%r13), %ebx
	cmpl	%r15d, %ebx
	jb	LBB0_9
LBB0_11:
	movl	8(%r13), %edi
	callq	_input_sync
	jmp	LBB0_12
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MIP4_R0_EVENT,4,2              ## @MIP4_R0_EVENT
	.comm	_MIP4_R1_EVENT_PACKET_INFO,4,2  ## @MIP4_R1_EVENT_PACKET_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read packet info: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"packet size: %d, alert: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Empty packet\n"

	.comm	_MIP4_R1_EVENT_PACKET_DATA,4,2  ## @MIP4_R1_EVENT_PACKET_DATA
L_.str.3:                               ## @.str.3
	.asciz	"Failed to read packet data: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Alert: %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mip4_interrupt
_mip4_interrupt:                        ; @mip4_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x1, #24]
Lloh3:
	adrp	x22, _MIP4_R0_EVENT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MIP4_R0_EVENT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _MIP4_R1_EVENT_PACKET_INFO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MIP4_R1_EVENT_PACKET_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	ldr	x3, [x1]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	mov	w4, #1
	bl	_mip4_i2c_xfer
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.1:
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x20
	bl	_dev_err
LBB0_3:
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	ldr	x8, [x19]
	ldr	w23, [x8]
	and	w21, w23, #0x7f
	mov	w0, #7
	bl	_BIT
	and	w23, w0, w23
	str	x23, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_dbg
	cbz	w21, LBB0_8
; %bb.6:
	ldr	w8, [x22]
Lloh18:
	adrp	x9, _MIP4_R1_EVENT_PACKET_DATA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MIP4_R1_EVENT_PACKET_DATA@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	ldr	x3, [x19]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	mov	x4, x21
	bl	_mip4_i2c_xfer
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.7:
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_8:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_9:
	cbz	w23, LBB0_11
; %bb.10:
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	b	LBB0_3
LBB0_11:
	mov	w20, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x1, x8, w20, uxtw #2
	mov	x0, x19
	bl	_mip4_handle_packet
	cbnz	w0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x19, #16]
	add	w20, w20, w8
	cmp	w20, w21
	b.lo	LBB0_12
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_input_sync
	b	LBB0_3
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MIP4_R0_EVENT,4,2              ; @MIP4_R0_EVENT
	.comm	_MIP4_R1_EVENT_PACKET_INFO,4,2  ; @MIP4_R1_EVENT_PACKET_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read packet info: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"packet size: %d, alert: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Empty packet\n"

	.comm	_MIP4_R1_EVENT_PACKET_DATA,4,2  ; @MIP4_R1_EVENT_PACKET_DATA
l_.str.3:                               ; @.str.3
	.asciz	"Failed to read packet data: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Alert: %d\n"

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