	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_i2c_check_timer
_img_i2c_check_timer:                   ## @img_i2c_check_timer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_check_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SCB_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_img_i2c_readl
	movq	_LINESTAT_ABORT_DET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_SCB_INT_MASK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INT_SLAVE_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_img_i2c_writel
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_check_timer,4,2                ## @check_timer
	.comm	_SCB_STATUS_REG,4,2             ## @SCB_STATUS_REG
	.comm	_LINESTAT_ABORT_DET,4,2         ## @LINESTAT_ABORT_DET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"abort condition detected by check timer\n"

	.comm	_SCB_INT_MASK_REG,4,2           ## @SCB_INT_MASK_REG
	.comm	_INT_SLAVE_EVENT,4,2            ## @INT_SLAVE_EVENT
	.comm	_i2c,8,3                        ## @i2c
	.no_dead_strip	_img_i2c_check_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_i2c_check_timer
_img_i2c_check_timer:                   ; @img_i2c_check_timer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _check_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _check_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _SCB_STATUS_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCB_STATUS_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_img_i2c_readl
Lloh6:
	adrp	x8, _LINESTAT_ABORT_DET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LINESTAT_ABORT_DET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh11:
	adrp	x8, _SCB_INT_MASK_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCB_INT_MASK_REG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _INT_SLAVE_EVENT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _INT_SLAVE_EVENT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_img_i2c_writel
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_check_timer,4,2                ; @check_timer
	.comm	_SCB_STATUS_REG,4,2             ; @SCB_STATUS_REG
	.comm	_LINESTAT_ABORT_DET,4,2         ; @LINESTAT_ABORT_DET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"abort condition detected by check timer\n"

	.comm	_SCB_INT_MASK_REG,4,2           ; @SCB_INT_MASK_REG
	.comm	_INT_SLAVE_EVENT,4,2            ; @INT_SLAVE_EVENT
	.comm	_i2c,8,3                        ; @i2c
	.no_dead_strip	_img_i2c_check_timer
.subsections_via_symbols
