	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dht11_read_raw
_dht11_read_raw:                        ## @dht11_read_raw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %r13
	movq	%rax, %r12
	leaq	20(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_DHT11_DATA_VALID_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	(%r13), %rbx
	xorl	%eax, %eax
	callq	_ktime_get_boottime_ns
	cmpq	%rax, %rbx
	jge	LBB0_18
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ktime_get_resolution_ns
	movl	%eax, %r14d
	movl	24(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	_DHT11_MIN_TIMERES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_3
## %bb.2:
	movl	24(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_3:
	movq	_DHT11_AMBIG_LOW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_6
## %bb.4:
	movq	_DHT11_AMBIG_HIGH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_6
## %bb.5:
	movl	24(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
LBB0_6:
	addq	$32, %r13
	movq	%r13, %rdi
	callq	_reinit_completion
	movl	$0, 8(%r12)
	movl	36(%r12), %edi
	xorl	%esi, %esi
	callq	_gpiod_direction_output
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_24
## %bb.7:
	movq	_DHT11_START_TRANSMISSION_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DHT11_START_TRANSMISSION_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usleep_range
	movl	36(%r12), %edi
	callq	_gpiod_direction_input
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.8:
	movl	28(%r12), %edi
	movq	_dht11_handle_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%r15, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wait_for_completion_killable_timeout
	movl	%eax, %ebx
	movl	28(%r12), %edi
	movq	%r15, %rsi
	callq	_free_irq
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.10:
	movl	8(%r12), %r15d
	movq	_DHT11_EDGES_PER_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %r15d
	jge	LBB0_14
## %bb.11:
	movl	24(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	testl	%ebx, %ebx
	js	LBB0_24
## %bb.13:
	movl	8(%r12), %r15d
	movq	_DHT11_EDGES_PER_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	movq	_DHT11_EDGES_PREAMBLE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r15d
	subl	%eax, %r15d
	js	LBB0_15
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_dht11_decode
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%eax, %ebx
	leal	-1(%r15), %eax
	testl	%r15d, %r15d
	movl	%eax, %r15d
	jg	LBB0_17
	jmp	LBB0_24
LBB0_15:
	testl	%ebx, %ebx
	jne	LBB0_24
LBB0_18:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.19:
	movl	12(%r12), %eax
	jmp	LBB0_20
LBB0_21:
	movq	_IIO_HUMIDITYRELATIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.22:
	movl	16(%r12), %eax
LBB0_20:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_24
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	$-1, 8(%r12)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DHT11_DATA_VALID_TIME,8,3      ## @DHT11_DATA_VALID_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"current timeresolution: %dns\n"

	.comm	_DHT11_MIN_TIMERES,4,2          ## @DHT11_MIN_TIMERES
L_.str.1:                               ## @.str.1
	.asciz	"timeresolution %dns too low\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_DHT11_AMBIG_LOW,4,2            ## @DHT11_AMBIG_LOW
	.comm	_DHT11_AMBIG_HIGH,4,2           ## @DHT11_AMBIG_HIGH
L_.str.2:                               ## @.str.2
	.asciz	"timeresolution: %dns - decoding ambiguous\n"

	.comm	_DHT11_START_TRANSMISSION_MIN,4,2 ## @DHT11_START_TRANSMISSION_MIN
	.comm	_DHT11_START_TRANSMISSION_MAX,4,2 ## @DHT11_START_TRANSMISSION_MAX
	.comm	_dht11_handle_irq,4,2           ## @dht11_handle_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_HZ,4,2                         ## @HZ
	.comm	_DHT11_EDGES_PER_READ,4,2       ## @DHT11_EDGES_PER_READ
L_.str.3:                               ## @.str.3
	.asciz	"Only %d signal edges detected\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_DHT11_EDGES_PREAMBLE,4,2       ## @DHT11_EDGES_PREAMBLE
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_TEMP,8,3                   ## @IIO_TEMP
	.comm	_IIO_HUMIDITYRELATIVE,8,3       ## @IIO_HUMIDITYRELATIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dht11_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dht11_read_raw
_dht11_read_raw:                        ; @dht11_read_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_iio_priv
	mov	x20, x0
	add	x19, x0, #20
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _DHT11_DATA_VALID_TIME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DHT11_DATA_VALID_TIME@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x24, x9, x8
	bl	_ktime_get_boottime_ns
	cmp	x24, x0
	b.ge	LBB0_18
; %bb.1:
	bl	_ktime_get_resolution_ns
	mov	x24, x0
	ldr	w0, [x20, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_dev_dbg
Lloh5:
	adrp	x8, _DHT11_MIN_TIMERES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DHT11_MIN_TIMERES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_3
; %bb.2:
	ldr	w0, [x20, #24]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	bl	_dev_err
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_23
LBB0_3:
Lloh12:
	adrp	x8, _DHT11_AMBIG_LOW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DHT11_AMBIG_LOW@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _DHT11_AMBIG_HIGH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DHT11_AMBIG_HIGH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w24, w8
	ccmp	w24, w9, #0, gt
	b.ge	LBB0_5
; %bb.4:
	ldr	w0, [x20, #24]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_dev_warn
LBB0_5:
	add	x25, x20, #32
	mov	x0, x25
	bl	_reinit_completion
	str	wzr, [x20, #8]
	ldr	w0, [x20, #36]
	mov	w1, #0
	bl	_gpiod_direction_output
	mov	x24, x0
	cbnz	w0, LBB0_24
; %bb.6:
Lloh20:
	adrp	x8, _DHT11_START_TRANSMISSION_MIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DHT11_START_TRANSMISSION_MIN@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _DHT11_START_TRANSMISSION_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DHT11_START_TRANSMISSION_MAX@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_usleep_range
	ldr	w0, [x20, #36]
	bl	_gpiod_direction_input
	mov	x24, x0
	cbnz	w0, LBB0_24
; %bb.7:
	ldr	w0, [x20, #28]
Lloh26:
	adrp	x8, _dht11_handle_irq@GOTPAGE
Lloh27:
	ldr	x8, [x8, _dht11_handle_irq@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh33:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w3, [x23]
	mov	x4, x23
	bl	_request_irq
	mov	x24, x0
	cbnz	w0, LBB0_24
; %bb.8:
Lloh35:
	adrp	x8, _HZ@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_wait_for_completion_killable_timeout
	mov	x24, x0
	ldr	w0, [x20, #28]
	mov	x1, x23
	bl	_free_irq
	cbnz	w24, LBB0_11
; %bb.9:
	ldr	w2, [x20, #8]
Lloh38:
	adrp	x8, _DHT11_EDGES_PER_READ@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DHT11_EDGES_PER_READ@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w2, w9
	b.ge	LBB0_13
; %bb.10:
	ldr	w0, [x20, #24]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh43:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_11:
	tbnz	w24, #31, LBB0_24
; %bb.12:
	ldr	w2, [x20, #8]
Lloh46:
	adrp	x8, _DHT11_EDGES_PER_READ@GOTPAGE
Lloh47:
	ldr	x8, [x8, _DHT11_EDGES_PER_READ@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	b	LBB0_14
LBB0_13:
	mov	w24, #0
LBB0_14:
Lloh49:
	adrp	x9, _DHT11_EDGES_PREAMBLE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _DHT11_EDGES_PREAMBLE@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	add	w9, w2, w9
	subs	w23, w9, w8
	b.mi	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_dht11_decode
	cbz	w0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x24, x0
	subs	w23, w23, #1
	b.ge	LBB0_15
	b	LBB0_24
LBB0_17:
	cbnz	w24, LBB0_24
LBB0_18:
Lloh52:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh54:
	ldr	w24, [x8]
	ldr	x8, [x22]
Lloh55:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh56:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	ldr	w8, [x20, #12]
	str	w8, [x21]
	b	LBB0_24
LBB0_20:
Lloh58:
	adrp	x9, _IIO_HUMIDITYRELATIVE@GOTPAGE
Lloh59:
	ldr	x9, [x9, _IIO_HUMIDITYRELATIVE@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
	ldr	w8, [x20, #16]
	str	w8, [x21]
	b	LBB0_24
LBB0_22:
Lloh61:
	adrp	x8, _EINVAL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_24:
	mov	w8, #-1
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_DHT11_DATA_VALID_TIME,8,3      ; @DHT11_DATA_VALID_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"current timeresolution: %dns\n"

	.comm	_DHT11_MIN_TIMERES,4,2          ; @DHT11_MIN_TIMERES
l_.str.1:                               ; @.str.1
	.asciz	"timeresolution %dns too low\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_DHT11_AMBIG_LOW,4,2            ; @DHT11_AMBIG_LOW
	.comm	_DHT11_AMBIG_HIGH,4,2           ; @DHT11_AMBIG_HIGH
l_.str.2:                               ; @.str.2
	.asciz	"timeresolution: %dns - decoding ambiguous\n"

	.comm	_DHT11_START_TRANSMISSION_MIN,4,2 ; @DHT11_START_TRANSMISSION_MIN
	.comm	_DHT11_START_TRANSMISSION_MAX,4,2 ; @DHT11_START_TRANSMISSION_MAX
	.comm	_dht11_handle_irq,4,2           ; @dht11_handle_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_HZ,4,2                         ; @HZ
	.comm	_DHT11_EDGES_PER_READ,4,2       ; @DHT11_EDGES_PER_READ
l_.str.3:                               ; @.str.3
	.asciz	"Only %d signal edges detected\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_DHT11_EDGES_PREAMBLE,4,2       ; @DHT11_EDGES_PREAMBLE
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_TEMP,8,3                   ; @IIO_TEMP
	.comm	_IIO_HUMIDITYRELATIVE,8,3       ; @IIO_HUMIDITYRELATIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dht11_read_raw
.subsections_via_symbols
