	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_iim_read
_imx_iim_read:                          ## @imx_iim_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	%r12d, %r15d
	addq	%r14, %r15
	movslq	%r12d, %r12
	cmpq	%r12, %r15
	movq	%rbx, %rax
	jbe	LBB0_4
## %bb.2:
	leaq	(,%r12,4), %r14
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	sarl	$5, %edi
	movl	%r14d, %ebx
	andl	$124, %ebx
	addq	8(%rax), %rbx
	callq	_IIM_BANK_BASE
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, (%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %r13
	incq	%r12
	addq	$4, %r14
	cmpq	%r12, %r15
	ja	LBB0_3
LBB0_4:
	movl	(%rax), %edi
	callq	_clk_disable_unprepare
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_imx_iim_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_iim_read
_imx_iim_read:                          ; @imx_iim_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_5
; %bb.1:
	add	x21, x21, w22, uxtw
	sxtw	x22, w22
	cmp	x21, x22
	b.ls	LBB0_4
; %bb.2:
	lsl	x23, x22, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	asr	w0, w22, #5
	ldr	x24, [x20, #8]
	bl	_IIM_BANK_BASE
	and	x8, x23, #0x7c
	add	x8, x24, x8
	add	x0, x8, x0
	bl	_readl
	str	w0, [x19], #4
	add	x22, x22, #1
	add	x23, x23, #4
	cmp	x21, x22
	b.hi	LBB0_3
LBB0_4:
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_imx_iim_read
.subsections_via_symbols
