	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sht15_measurement
_sht15_measurement:                     ## @sht15_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	%edx, %r14d
	movq	%rdi, %r15
	callq	_sht15_send_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	movl	32(%r15), %edi
	callq	_gpiod_direction_input
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.2:
	leaq	44(%r15), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	32(%r15), %edi
	callq	_gpiod_to_irq
	movl	%eax, %edi
	callq	_enable_irq
	movl	32(%r15), %edi
	callq	_gpiod_get_value
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	32(%r15), %edi
	callq	_gpiod_to_irq
	movl	%eax, %edi
	callq	_disable_irq_nosync
	movq	%rbx, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	40(%r15), %rdi
	callq	_schedule_work
LBB0_5:
	movl	36(%r15), %r12d
	movq	(%r15), %rax
	movq	_SHT15_READING_NOTHING@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	cmpq	(%r13), %rax
	sete	%bl
	movl	%r14d, %edi
	callq	_msecs_to_jiffies
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
	movq	(%r13), %rcx
	cmpq	%rcx, (%r15)
	jne	LBB0_6
## %bb.7:
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	xorl	%ebx, %ebx
	cmpq	$0, 24(%r15)
	je	LBB0_18
## %bb.11:
	cmpl	$0, 16(%r15)
	jne	LBB0_18
## %bb.12:
	movl	8(%r15), %r14d
	movq	%r15, %rdi
	callq	_sht15_soft_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:
	andl	$7, %r14d
	je	LBB0_16
## %bb.14:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_sht15_send_status
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movl	12(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_18
LBB0_6:
	movq	%rcx, (%r15)
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	32(%r15), %edi
	callq	_gpiod_to_irq
	movl	%eax, %edi
	callq	_disable_irq_nosync
	movq	%r15, %rdi
	callq	_sht15_connection_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	movq	_ETIME@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT15_READING_NOTHING,8,3      ## @SHT15_READING_NOTHING
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ETIME,4,2                      ## @ETIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRC validation failed, unable to restore device settings\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_sht15_measurement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sht15_measurement
_sht15_measurement:                     ; @sht15_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	x20, x2
	mov	x19, x0
	bl	_sht15_send_cmd
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_gpiod_direction_input
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.2:
	add	x21, x19, #44
	mov	x0, x21
	mov	w1, #0
	bl	_atomic_set
	ldr	w0, [x19, #32]
	bl	_gpiod_to_irq
	bl	_enable_irq
	ldr	w0, [x19, #32]
	bl	_gpiod_get_value
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #32]
	bl	_gpiod_to_irq
	bl	_disable_irq_nosync
	mov	x0, x21
	bl	_atomic_read
	cbnz	w0, LBB0_5
; %bb.4:
	add	x0, x19, #40
	bl	_schedule_work
LBB0_5:
	ldr	w21, [x19, #36]
	ldr	x8, [x19]
Lloh0:
	adrp	x23, _SHT15_READING_NOTHING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SHT15_READING_NOTHING@GOTPAGEOFF]
	ldr	x9, [x23]
	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
	ldr	x9, [x19]
	ldr	x8, [x23]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.6:
	cbz	w0, LBB0_13
; %bb.7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_15
LBB0_9:
	mov	w21, #0
	b	LBB0_12
LBB0_10:
	str	x8, [x19]
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	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
LBB0_13:
	ldr	w0, [x19, #32]
	bl	_gpiod_to_irq
	bl	_disable_irq_nosync
	mov	x0, x19
	bl	_sht15_connection_reset
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.14:
Lloh4:
	adrp	x8, _ETIME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
	ldr	w20, [x19, #8]
	mov	x0, x19
	bl	_sht15_soft_reset
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.16:
	and	w1, w20, #0x7
	cbz	w1, LBB0_19
; %bb.17:
	mov	x0, x19
	bl	_sht15_send_status
	cbz	w0, LBB0_19
; %bb.18:
	mov	x21, x0
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_19:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT15_READING_NOTHING,8,3      ; @SHT15_READING_NOTHING
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ETIME,4,2                      ; @ETIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRC validation failed, unable to restore device settings\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_sht15_measurement
.subsections_via_symbols
