	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lmp91000_read
_lmp91000_read:                         ## @lmp91000_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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	24(%rdi), %edi
	movq	_LMP91000_REG_MODECN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	movl	24(%r13), %edi
	movl	(%rbx), %esi
	movl	%r15d, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	%r15d, -44(%rbp)
	je	LBB0_7
## %bb.5:
	movq	_LMP91000_REG_MODECN_TEMP@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.6:
	movl	$3000, %edi                     ## imm = 0xBB8
	movl	$4000, %esi                     ## imm = 0xFA0
	callq	_usleep_range
LBB0_7:
	movq	_LMP91000_REG_MODECN_3LEAD@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r15d, (%rax)
	setne	%cl
	movl	%ecx, (%r13)
	movl	20(%r13), %edi
	callq	_iio_trigger_poll_chained
	leaq	16(%r13), %r15
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wait_for_completion_timeout
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_reinit_completion
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.9:
	movq	8(%r13), %rax
	movslq	(%r13), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_LMP91000_REG_MODECN,4,2        ## @LMP91000_REG_MODECN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LMP91000_REG_MODECN_TEMP,4,2   ## @LMP91000_REG_MODECN_TEMP
	.comm	_LMP91000_REG_MODECN_3LEAD,4,2  ## @LMP91000_REG_MODECN_3LEAD
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_lmp91000_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmp91000_read
_lmp91000_read:                         ; @lmp91000_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x22, _LMP91000_REG_MODECN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LMP91000_REG_MODECN@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #24]
	ldr	w1, [x22]
	mov	x2, x21
	bl	_regmap_write
	cbz	w0, LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _LMP91000_REG_MODECN_TEMP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LMP91000_REG_MODECN_TEMP@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #0, ne
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #3000
	mov	w1, #4000
	bl	_usleep_range
LBB0_7:
Lloh7:
	adrp	x8, _LMP91000_REG_MODECN_3LEAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LMP91000_REG_MODECN_3LEAD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w8, ne
	str	w8, [x20]
	ldr	w0, [x20, #20]
	bl	_iio_trigger_poll_chained
	add	x21, x20, #16
Lloh10:
	adrp	x8, _HZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wait_for_completion_timeout
	mov	x22, x0
	mov	x0, x21
	bl	_reinit_completion
	cbz	w22, LBB0_9
; %bb.8:
	mov	w0, #0
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19]
	b	LBB0_4
LBB0_9:
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LMP91000_REG_MODECN,4,2        ; @LMP91000_REG_MODECN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LMP91000_REG_MODECN_TEMP,4,2   ; @LMP91000_REG_MODECN_TEMP
	.comm	_LMP91000_REG_MODECN_3LEAD,4,2  ; @LMP91000_REG_MODECN_3LEAD
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_lmp91000_read
.subsections_via_symbols
