	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ams_iaqcore_read_measurement
_ams_iaqcore_read_measurement:          ## @ams_iaqcore_read_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -32(%rbp)
	movq	_AMS_IAQCORE_DATA_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	%ecx, -28(%rbp)
	movq	%rdi, -24(%rbp)
	movl	8(%rax), %ecx
	movl	%ecx, -16(%rbp)
	movl	4(%rax), %edi
	leaq	-32(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	xorl	%ecx, %ecx
	cmpl	(%rbx), %eax
	cmovel	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_AMS_IAQCORE_DATA_SIZE,4,2      ## @AMS_IAQCORE_DATA_SIZE
	.no_dead_strip	_ams_iaqcore_read_measurement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ams_iaqcore_read_measurement
_ams_iaqcore_read_measurement:          ; @ams_iaqcore_read_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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh2:
	ldr	w9, [x9]
	orr	w9, w9, w10
Lloh3:
	adrp	x19, _AMS_IAQCORE_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _AMS_IAQCORE_DATA_SIZE@GOTPAGEOFF]
	ldr	w10, [x19]
	stp	w9, w10, [sp, #8]
	str	x0, [sp, #16]
	ldr	w9, [x8, #8]
	str	w9, [sp, #24]
	ldr	w0, [x8, #4]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	ldr	w8, [x19]
	cmp	w0, w8
	csel	w0, wzr, w0, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_AMS_IAQCORE_DATA_SIZE,4,2      ; @AMS_IAQCORE_DATA_SIZE
	.no_dead_strip	_ams_iaqcore_read_measurement
.subsections_via_symbols
