	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpi2c_imx_read
_lpi2c_imx_read:                        ## @lpi2c_imx_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	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %eax
	movl	%eax, 16(%rdi)
	movq	_I2C_M_RECV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	movl	%eax, (%rdi)
	callq	_lpi2c_imx_set_rx_watermark
	movl	4(%rbx), %eax
	movq	_CHUNK_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	decl	%ecx
	movq	_RECV_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	%ecx, %edi
	movq	_LPI2C_MTDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_MIER_RDIE@GOTPCREL(%rip), %rax
	movq	_MIER_NDIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lpi2c_imx_intctrl              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RECV_LEN,4,2             ## @I2C_M_RECV_LEN
	.comm	_CHUNK_DATA,4,2                 ## @CHUNK_DATA
	.comm	_RECV_DATA,4,2                  ## @RECV_DATA
	.comm	_LPI2C_MTDR,8,3                 ## @LPI2C_MTDR
	.comm	_MIER_RDIE,4,2                  ## @MIER_RDIE
	.comm	_MIER_NDIE,4,2                  ## @MIER_NDIE
	.no_dead_strip	_lpi2c_imx_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpi2c_imx_read
_lpi2c_imx_read:                        ; @lpi2c_imx_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, x1
	mov	x20, x0
	ldr	w8, [x1, #8]
	str	w8, [x0, #16]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _I2C_M_RECV_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_M_RECV_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x0]
	bl	_lpi2c_imx_set_rx_watermark
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _CHUNK_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHUNK_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	sub	w8, w8, #1
Lloh6:
	adrp	x9, _RECV_DATA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RECV_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w8, w9, lsl #8
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _LPI2C_MTDR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LPI2C_MTDR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh12:
	adrp	x8, _MIER_RDIE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIER_RDIE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MIER_NDIE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MIER_NDIE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lpi2c_imx_intctrl
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RECV_LEN,4,2             ; @I2C_M_RECV_LEN
	.comm	_CHUNK_DATA,4,2                 ; @CHUNK_DATA
	.comm	_RECV_DATA,4,2                  ; @RECV_DATA
	.comm	_LPI2C_MTDR,8,3                 ; @LPI2C_MTDR
	.comm	_MIER_RDIE,4,2                  ; @MIER_RDIE
	.comm	_MIER_NDIE,4,2                  ; @MIER_NDIE
	.no_dead_strip	_lpi2c_imx_read
.subsections_via_symbols
