	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sht15_update_single_val
_sht15_update_single_val:               ## @sht15_update_single_val
	.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	%edx, %r15d
	movq	%rdi, %r13
	callq	_sht15_send_cmd
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_gpio_direction_input
	leaq	24(%r13), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	callq	_enable_irq
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_gpio_get_value
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	callq	_disable_irq_nosync
	movq	%r12, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	20(%r13), %rdi
	callq	_schedule_work
LBB0_4:
	movl	16(%r13), %r12d
	movq	(%r13), %rax
	movq	_SHT15_READING_NOTHING@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	movl	%r15d, %edi
	callq	_msecs_to_jiffies
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	callq	_disable_irq_nosync
	movq	%r13, %rdi
	callq	_sht15_connection_reset
	movq	_ETIME@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT15_READING_NOTHING,8,3      ## @SHT15_READING_NOTHING
	.comm	_ETIME,4,2                      ## @ETIME
	.no_dead_strip	_sht15_update_single_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sht15_update_single_val
_sht15_update_single_val:               ; @sht15_update_single_val
	.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	x20, x2
	mov	x19, x0
	bl	_sht15_send_cmd
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_gpio_direction_input
	add	x21, x19, #24
	mov	x0, x21
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_gpio_to_irq
	bl	_enable_irq
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_gpio_get_value
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_gpio_to_irq
	bl	_disable_irq_nosync
	mov	x0, x21
	bl	_atomic_read
	cbnz	w0, LBB0_4
; %bb.3:
	add	x0, x19, #20
	bl	_schedule_work
LBB0_4:
	ldr	w21, [x19, #16]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SHT15_READING_NOTHING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHT15_READING_NOTHING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w22, eq
	mov	x0, x20
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_wait_event_timeout
	cbz	w0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_gpio_to_irq
	bl	_disable_irq_nosync
	mov	x0, x19
	bl	_sht15_connection_reset
Lloh3:
	adrp	x8, _ETIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT15_READING_NOTHING,8,3      ; @SHT15_READING_NOTHING
	.comm	_ETIME,4,2                      ; @ETIME
	.no_dead_strip	_sht15_update_single_val
.subsections_via_symbols
