	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si7005_read_measurement
_si7005_read_measurement:               ## @si7005_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%r15), %edi
	movq	_SI7005_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SI7005_CONFIG_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r15), %edx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_SI7005_CONFIG_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$-51, %ebx
	movq	_SI7005_STATUS@GOTPCREL(%rip), %r13
	movq	_SI7005_STATUS_NRDY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$20, %edi
	callq	_msleep
	movl	8(%r15), %edi
	movl	(%r13), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, (%r14)
	jne	LBB0_5
## %bb.8:
	movl	8(%r15), %edi
	movq	_SI7005_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %r12d
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI7005_CONFIG,4,2              ## @SI7005_CONFIG
	.comm	_SI7005_CONFIG_START,4,2        ## @SI7005_CONFIG_START
	.comm	_SI7005_CONFIG_TEMP,4,2         ## @SI7005_CONFIG_TEMP
	.comm	_SI7005_STATUS,4,2              ## @SI7005_STATUS
	.comm	_SI7005_STATUS_NRDY,4,2         ## @SI7005_STATUS_NRDY
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SI7005_DATA,4,2                ## @SI7005_DATA
	.no_dead_strip	_si7005_read_measurement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si7005_read_measurement
_si7005_read_measurement:               ; @si7005_read_measurement
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _SI7005_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI7005_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _SI7005_CONFIG_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SI7005_CONFIG_START@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _SI7005_CONFIG_TEMP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SI7005_CONFIG_TEMP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w9, wzr, w9, eq
	orr	w2, w8, w9
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	w22, #-51
Lloh9:
	adrp	x23, _SI7005_STATUS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _SI7005_STATUS@GOTPAGEOFF]
Lloh11:
	adrp	x24, _SI7005_STATUS_NRDY@GOTPAGE
Lloh12:
	ldr	x24, [x24, _SI7005_STATUS_NRDY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	adds	w22, w22, #1
	b.hs	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x20, #8]
	ldr	w1, [x23]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	tst	w8, w21
	b.ne	LBB0_2
; %bb.5:
	ldr	w0, [x20, #8]
Lloh13:
	adrp	x8, _SI7005_DATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SI7005_DATA@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_swapped
LBB0_6:
	mov	x21, x0
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SI7005_CONFIG,4,2              ; @SI7005_CONFIG
	.comm	_SI7005_CONFIG_START,4,2        ; @SI7005_CONFIG_START
	.comm	_SI7005_CONFIG_TEMP,4,2         ; @SI7005_CONFIG_TEMP
	.comm	_SI7005_STATUS,4,2              ; @SI7005_STATUS
	.comm	_SI7005_STATUS_NRDY,4,2         ; @SI7005_STATUS_NRDY
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SI7005_DATA,4,2                ; @SI7005_DATA
	.no_dead_strip	_si7005_read_measurement
.subsections_via_symbols
