	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltr501_read_intr_prst
_ltr501_read_intr_prst:                 ## @ltr501_read_intr_prst
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	cmpl	$128, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_8
## %bb.2:
	movl	4(%rbx), %edi
	leaq	-20(%rbp), %rsi
	callq	_regmap_field_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ltr501_als_read_samp_period
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_9
LBB0_6:
	movl	(%rbx), %edi
	leaq	-20(%rbp), %rsi
	callq	_regmap_field_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ltr501_ps_read_samp_period
	testl	%eax, %eax
	js	LBB0_9
LBB0_5:
	movl	-20(%rbp), %eax
	imull	-24(%rbp), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ltr501_read_intr_prst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltr501_read_intr_prst
_ltr501_read_intr_prst:                 ; @ltr501_read_intr_prst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x20, #4]
	add	x1, sp, #8
	bl	_regmap_field_read
	tbnz	w0, #31, LBB0_8
; %bb.3:
	add	x1, sp, #12
	mov	x0, x20
	bl	_ltr501_als_read_samp_period
	tbz	w0, #31, LBB0_6
	b	LBB0_8
LBB0_4:
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_regmap_field_read
	tbnz	w0, #31, LBB0_8
; %bb.5:
	add	x1, sp, #12
	mov	x0, x20
	bl	_ltr501_ps_read_samp_period
	tbnz	w0, #31, LBB0_8
LBB0_6:
	ldp	w9, w8, [sp, #8]
	mul	w8, w9, w8
	str	w8, [x19]
Lloh0:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ltr501_read_intr_prst
.subsections_via_symbols
