	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sgp_measure_iaq
_sgp_measure_iaq:                       ## @sgp_measure_iaq
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	addq	24(%rbx), %rsi
	callq	_time_after
	movl	%eax, %r14d
	movl	8(%rbx), %esi
	leaq	4(%rbx), %rdx
	movq	_SGP_MEASUREMENT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SGP_MEASUREMENT_DURATION_US@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_sgp_read_cmd
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_IAQ_BUFFER_DEFAULT_VALS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	movq	_IAQ_BUFFER_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_SGP_MEASUREMENT_LEN,4,2        ## @SGP_MEASUREMENT_LEN
	.comm	_SGP_MEASUREMENT_DURATION_US,4,2 ## @SGP_MEASUREMENT_DURATION_US
	.comm	_IAQ_BUFFER_DEFAULT_VALS,4,2    ## @IAQ_BUFFER_DEFAULT_VALS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IAQ_BUFFER_VALID,4,2           ## @IAQ_BUFFER_VALID
	.no_dead_strip	_sgp_measure_iaq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sgp_measure_iaq
_sgp_measure_iaq:                       ; @sgp_measure_iaq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x9, x8, [x19, #16]
	add	x1, x9, x8
	bl	_time_after
	mov	x20, x0
	ldr	w1, [x19, #8]
	add	x2, x19, #4
Lloh3:
	adrp	x8, _SGP_MEASUREMENT_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SGP_MEASUREMENT_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _SGP_MEASUREMENT_DURATION_US@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SGP_MEASUREMENT_DURATION_US@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_sgp_read_cmd
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _IAQ_BUFFER_DEFAULT_VALS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IAQ_BUFFER_DEFAULT_VALS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	cbz	w20, LBB0_3
; %bb.2:
	mov	w0, #0
Lloh12:
	adrp	x8, _IAQ_BUFFER_VALID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IAQ_BUFFER_VALID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_SGP_MEASUREMENT_LEN,4,2        ; @SGP_MEASUREMENT_LEN
	.comm	_SGP_MEASUREMENT_DURATION_US,4,2 ; @SGP_MEASUREMENT_DURATION_US
	.comm	_IAQ_BUFFER_DEFAULT_VALS,4,2    ; @IAQ_BUFFER_DEFAULT_VALS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IAQ_BUFFER_VALID,4,2           ; @IAQ_BUFFER_VALID
	.no_dead_strip	_sgp_measure_iaq
.subsections_via_symbols
