	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_i2c_read
_img_i2c_read:                          ## @img_i2c_read
	.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	%rdi, %rbx
	movq	_MODE_AUTOMATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_img_i2c_switch_mode
	cmpl	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edx
	jmp	LBB0_3
LBB0_2:
	movq	_INT_SLAVE_EVENT@GOTPCREL(%rip), %rax
	movl	12(%rbx), %edx
	orl	(%rax), %edx
	movl	%edx, 12(%rbx)
LBB0_3:
	movq	_SCB_INT_MASK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_img_i2c_writel
	movq	_SCB_READ_ADDR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_img_i2c_writel
	movq	_SCB_READ_COUNT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_img_i2c_writel
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$1, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_AUTOMATIC,4,2             ## @MODE_AUTOMATIC
	.comm	_INT_SLAVE_EVENT,4,2            ## @INT_SLAVE_EVENT
	.comm	_SCB_INT_MASK_REG,4,2           ## @SCB_INT_MASK_REG
	.comm	_SCB_READ_ADDR_REG,4,2          ## @SCB_READ_ADDR_REG
	.comm	_SCB_READ_COUNT_REG,4,2         ## @SCB_READ_COUNT_REG
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_img_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_i2c_read
_img_i2c_read:                          ; @img_i2c_read
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MODE_AUTOMATIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_AUTOMATIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_img_i2c_switch_mode
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w2, [x19, #12]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _INT_SLAVE_EVENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_SLAVE_EVENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w2, w9, w8
	str	w2, [x19, #12]
LBB0_3:
Lloh6:
	adrp	x8, _SCB_INT_MASK_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCB_INT_MASK_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_img_i2c_writel
Lloh9:
	adrp	x8, _SCB_READ_ADDR_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCB_READ_ADDR_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_img_i2c_writel
Lloh12:
	adrp	x8, _SCB_READ_COUNT_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCB_READ_COUNT_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_img_i2c_writel
Lloh15:
	adrp	x8, _jiffies@GOTPAGE
Lloh16:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
	mov	w0, #1
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_AUTOMATIC,4,2             ; @MODE_AUTOMATIC
	.comm	_INT_SLAVE_EVENT,4,2            ; @INT_SLAVE_EVENT
	.comm	_SCB_INT_MASK_REG,4,2           ; @SCB_INT_MASK_REG
	.comm	_SCB_READ_ADDR_REG,4,2          ; @SCB_READ_ADDR_REG
	.comm	_SCB_READ_COUNT_REG,4,2         ; @SCB_READ_COUNT_REG
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_img_i2c_read
.subsections_via_symbols
