	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sgp_init
_sgp_init:                              ## @sgp_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_SGP_CMD_IAQ_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rdi)
	movq	$0, 40(%rdi)
	movq	_IAQ_BUFFER_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	callq	_SGP_VERS_PRODUCT
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.2:
	movq	_SGP30_MEASURE_INTERVAL_HZ@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	(%rax), %edx
	movl	%edx, (%rbx)
	movq	_SGP_CMD_IAQ_MEASURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_SGP30_CMD_MEASURE_SIGNAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$129, 4(%rbx)
	movl	(%rcx), %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,2), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_SGPC3_MEASURE_INTERVAL_HZ@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_SGPC3_CMD_MEASURE_RAW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movl	$128, 4(%rbx)
	imull	$43, %ecx, %eax
LBB0_4:
	movl	%eax, 8(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGP_CMD_IAQ_INIT,4,2           ## @SGP_CMD_IAQ_INIT
	.comm	_IAQ_BUFFER_EMPTY,4,2           ## @IAQ_BUFFER_EMPTY
	.comm	_SGP30_MEASURE_INTERVAL_HZ,4,2  ## @SGP30_MEASURE_INTERVAL_HZ
	.comm	_HZ,4,2                         ## @HZ
	.comm	_SGP_CMD_IAQ_MEASURE,8,3        ## @SGP_CMD_IAQ_MEASURE
	.comm	_SGP30_CMD_MEASURE_SIGNAL,8,3   ## @SGP30_CMD_MEASURE_SIGNAL
	.comm	_SGPC3_MEASURE_INTERVAL_HZ,4,2  ## @SGPC3_MEASURE_INTERVAL_HZ
	.comm	_SGPC3_CMD_MEASURE_RAW,8,3      ## @SGPC3_CMD_MEASURE_RAW
	.no_dead_strip	_sgp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sgp_init
_sgp_init:                              ; @sgp_init
	.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, _SGP_CMD_IAQ_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SGP_CMD_IAQ_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	str	xzr, [x0, #40]
Lloh3:
	adrp	x8, _IAQ_BUFFER_EMPTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IAQ_BUFFER_EMPTY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	bl	_SGP_VERS_PRODUCT
	cmp	w0, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #129
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _SGP30_MEASURE_INTERVAL_HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SGP30_MEASURE_INTERVAL_HZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _HZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
	ldr	w10, [x9]
	mul	w8, w10, w8
Lloh11:
	adrp	x10, _SGP_CMD_IAQ_MEASURE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SGP_CMD_IAQ_MEASURE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _SGP30_CMD_MEASURE_SIGNAL@GOTPAGE
Lloh15:
	ldr	x11, [x11, _SGP30_CMD_MEASURE_SIGNAL@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	stp	x11, x10, [x19, #16]
	mov	w10, #129
	stp	w8, w10, [x19]
	ldr	w8, [x9]
	lsl	w9, w8, #4
	sub	w8, w9, w8
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _SGPC3_MEASURE_INTERVAL_HZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SGPC3_MEASURE_INTERVAL_HZ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _HZ@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	mul	w8, w9, w8
Lloh23:
	adrp	x9, _SGPC3_CMD_MEASURE_RAW@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SGPC3_CMD_MEASURE_RAW@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	stp	x9, x9, [x19, #16]
	mov	w9, #128
	stp	w8, w9, [x19]
	mov	w9, #43
	mul	w8, w8, w9
LBB0_4:
	str	w8, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SGP_CMD_IAQ_INIT,4,2           ; @SGP_CMD_IAQ_INIT
	.comm	_IAQ_BUFFER_EMPTY,4,2           ; @IAQ_BUFFER_EMPTY
	.comm	_SGP30_MEASURE_INTERVAL_HZ,4,2  ; @SGP30_MEASURE_INTERVAL_HZ
	.comm	_HZ,4,2                         ; @HZ
	.comm	_SGP_CMD_IAQ_MEASURE,8,3        ; @SGP_CMD_IAQ_MEASURE
	.comm	_SGP30_CMD_MEASURE_SIGNAL,8,3   ; @SGP30_CMD_MEASURE_SIGNAL
	.comm	_SGPC3_MEASURE_INTERVAL_HZ,4,2  ; @SGPC3_MEASURE_INTERVAL_HZ
	.comm	_SGPC3_CMD_MEASURE_RAW,8,3      ; @SGPC3_CMD_MEASURE_RAW
	.no_dead_strip	_sgp_init
.subsections_via_symbols
