	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abp060mg_get_measurement
_abp060mg_get_measurement:              ## @abp060mg_get_measurement
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	8(%rdi), %rbx
	movq	$0, -48(%rbp)
	movl	(%rdi), %edx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i2c_master_send
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_ABP060MG_RESP_TIME_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep_interruptible
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_i2c_master_recv
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rdi
	callq	_be16_to_cpu
	movq	_ABP060MG_ERROR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_ABP060MG_MIN_COUNTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_3
## %bb.5:
	movq	_ABP060MG_MAX_COUNTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_3
## %bb.6:
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ABP060MG_RESP_TIME_MS,4,2      ## @ABP060MG_RESP_TIME_MS
	.comm	_ABP060MG_ERROR_MASK,4,2        ## @ABP060MG_ERROR_MASK
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ABP060MG_MIN_COUNTS,4,2        ## @ABP060MG_MIN_COUNTS
	.comm	_ABP060MG_MAX_COUNTS,4,2        ## @ABP060MG_MAX_COUNTS
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_abp060mg_get_measurement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abp060mg_get_measurement
_abp060mg_get_measurement:              ; @abp060mg_get_measurement
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x0, #8]
	str	xzr, [sp, #8]
	ldr	w2, [x0]
	add	x1, sp, #8
	mov	x0, x20
	bl	_i2c_master_send
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _ABP060MG_RESP_TIME_MS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABP060MG_RESP_TIME_MS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msleep_interruptible
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #16
	bl	_i2c_master_recv
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_be16_to_cpu
Lloh6:
	adrp	x8, _ABP060MG_ERROR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABP060MG_ERROR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _ABP060MG_MIN_COUNTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABP060MG_MIN_COUNTS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ABP060MG_MAX_COUNTS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ABP060MG_MAX_COUNTS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
	b.le	LBB0_7
LBB0_4:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	str	w0, [x19]
Lloh21:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ABP060MG_RESP_TIME_MS,4,2      ; @ABP060MG_RESP_TIME_MS
	.comm	_ABP060MG_ERROR_MASK,4,2        ; @ABP060MG_ERROR_MASK
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ABP060MG_MIN_COUNTS,4,2        ; @ABP060MG_MIN_COUNTS
	.comm	_ABP060MG_MAX_COUNTS,4,2        ; @ABP060MG_MAX_COUNTS
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_abp060mg_get_measurement
.subsections_via_symbols
