	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccs811_get_measurement
_ccs811_get_measurement:                ## @ccs811_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movq	_CCS811_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	$-10, %ebx
	movq	_CCS811_STATUS_DATA_READY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	andl	(%r12), %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$100, %edi
	callq	_msleep
	movl	4(%r15), %edi
	movl	(%r14), %esi
	callq	_i2c_smbus_read_byte_data
	incl	%ebx
	testl	%eax, %eax
	jns	LBB0_2
	jmp	LBB0_7
LBB0_5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	4(%r15), %edi
	movq	_CCS811_ALG_RESULT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	movq	%r15, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_read_i2c_block_data  ## TAILCALL
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCS811_STATUS,4,2              ## @CCS811_STATUS
	.comm	_CCS811_STATUS_DATA_READY,4,2   ## @CCS811_STATUS_DATA_READY
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CCS811_ALG_RESULT_DATA,4,2     ## @CCS811_ALG_RESULT_DATA
	.no_dead_strip	_ccs811_get_measurement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccs811_get_measurement
_ccs811_get_measurement:                ; @ccs811_get_measurement
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x20, _CCS811_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CCS811_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	w21, #-10
Lloh2:
	adrp	x22, _CCS811_STATUS_DATA_READY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CCS811_STATUS_DATA_READY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w21, #0, #4, eq
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	bl	_i2c_smbus_read_byte_data
	add	w21, w21, #1
	tbz	w0, #31, LBB0_2
	b	LBB0_7
LBB0_4:
	cbz	w8, LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _CCS811_ALG_RESULT_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CCS811_ALG_RESULT_DATA@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh6:
	ldr	w1, [x8]
	mov	w2, #8
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i2c_smbus_read_i2c_block_data
LBB0_6:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CCS811_STATUS,4,2              ; @CCS811_STATUS
	.comm	_CCS811_STATUS_DATA_READY,4,2   ; @CCS811_STATUS_DATA_READY
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CCS811_ALG_RESULT_DATA,4,2     ; @CCS811_ALG_RESULT_DATA
	.no_dead_strip	_ccs811_get_measurement
.subsections_via_symbols
