	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dht11_decode
_dht11_decode:                          ## @dht11_decode
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DHT11_BITS_PER_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.1:
	movq	16(%r14), %rcx
	movq	_DHT11_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%r15d, %rdx
	leaq	(%rcx,%rdx,8), %rdx
	addq	$16, %rdx
	addq	%rbx, %rbx
	xorl	%ecx, %ecx
	movq	%r12, %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -4(%rdx,%rcx,8)
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdx,%rcx,8), %edi
	subl	-8(%rdx,%rcx,8), %edi
	cmpl	%eax, %edi
	setg	(%rsi)
	addq	$2, %rcx
	incq	%rsi
	cmpq	%rcx, %rbx
	jne	LBB0_2
LBB0_6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_dht11_decode_byte
	movl	%eax, %r15d
	leaq	8(%r12), %rdi
	callq	_dht11_decode_byte
	movl	%eax, %ebx
	leaq	16(%r12), %rdi
	callq	_dht11_decode_byte
	movl	%eax, %r14d
	leaq	24(%r12), %rdi
	callq	_dht11_decode_byte
	movl	%eax, %r13d
	addq	$32, %r12
	movq	%r12, %rdi
	callq	_dht11_decode_byte
	leal	(%rbx,%r15), %ecx
	addb	%r14b, %cl
	addb	%r13b, %cl
	cmpb	%cl, %al
	jne	LBB0_7
## %bb.8:
	movq	%rbx, %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ktime_get_boottime_ns
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 8(%rdx)
	cmpb	$3, %r15b
	ja	LBB0_10
## %bb.9:
	testb	%r14b, %r14b
	movl	$100, %ecx
	movl	$156, %eax
	cmovnsl	%ecx, %eax
                                        ## kill: def $al killed $al killed $eax
	mulb	%r13b
	movb	%al, (%rdx)
	movzbl	%r12b, %eax
	imull	$100, %eax, %eax
	movb	%al, 1(%rdx)
	jmp	LBB0_14
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_3:
	leal	(%r15,%rcx), %edx
	incl	%edx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movl	%r13d, %eax
	orb	%r12b, %al
	jne	LBB0_12
## %bb.11:
	movzbl	%r14b, %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %eax
	negl	%eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	movzbl	%r15b, %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %eax
	negl	%eax
	movb	%al, 1(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movzbl	%r15b, %edx
	movzbl	%r12b, %ecx
	movzbl	%r14b, %r8d
	movzbl	%r13b, %r9d
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DHT11_BITS_PER_READ,4,2        ## @DHT11_BITS_PER_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lost synchronisation at edge %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_DHT11_THRESHOLD,4,2            ## @DHT11_THRESHOLD
L_.str.1:                               ## @.str.1
	.asciz	"invalid checksum\n"

L_.str.2:                               ## @.str.2
	.asciz	"Don't know how to decode data: %d %d %d %d\n"

	.no_dead_strip	_dht11_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dht11_decode
_dht11_decode:                          ; @dht11_decode
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _DHT11_BITS_PER_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DHT11_BITS_PER_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh8:
	adrp	x9, _DHT11_THRESHOLD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DHT11_THRESHOLD@GOTPAGEOFF]
	ldr	x11, [x19, #16]
Lloh10:
	ldr	w10, [x9]
	add	w9, w1, #1
	add	x11, x11, w1, sxtw #3
	add	x11, x11, #16
	mov	x12, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x11, #-4]
	cbz	w13, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w13, [x11]
	ldur	w14, [x11, #-8]
	sub	w13, w13, w14
	cmp	w13, w10
	cset	w13, gt
	strb	w13, [x12], #1
	add	w9, w9, #2
	add	x11, x11, #16
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, x20
	bl	_dht11_decode_byte
	mov	x21, x0
	add	x0, x20, #8
	bl	_dht11_decode_byte
	mov	x22, x0
	add	x0, x20, #16
	bl	_dht11_decode_byte
	mov	x24, x0
	add	x0, x20, #24
	bl	_dht11_decode_byte
	mov	x23, x0
	add	x0, x20, #32
	bl	_dht11_decode_byte
	add	w8, w22, w21
	add	w8, w8, w24
	add	w8, w8, w23
	cmp	w0, w8, uxtb
	b.ne	LBB0_7
; %bb.5:
	sxtb	w20, w24
	bl	_ktime_get_boottime_ns
	str	w0, [x19, #8]
	cmp	w21, #3
	b.hi	LBB0_9
; %bb.6:
	mov	w0, #0
	cmp	w20, #0
	mov	w8, #100
	cneg	w9, w8, lt
	mul	w9, w9, w23
	strb	w9, [x19]
	mul	w8, w22, w8
	strb	w8, [x19, #1]
	b	LBB0_13
LBB0_7:
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	b	LBB0_12
LBB0_8:
	ldr	w0, [x19, #4]
	str	x9, [sp, #-16]!
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	add	sp, sp, #16
	b	LBB0_12
LBB0_9:
	orr	w8, w23, w22
	cbnz	w8, LBB0_11
; %bb.10:
	mov	w0, #0
	mov	w8, #-24
	mul	w9, w20, w8
	strb	w9, [x19]
	mul	w8, w21, w8
	strb	w8, [x19, #1]
	b	LBB0_13
LBB0_11:
	ldr	w0, [x19, #4]
	and	w4, w20, #0xff
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	mov	x5, x23
	bl	_dev_err
LBB0_12:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #48
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DHT11_BITS_PER_READ,4,2        ; @DHT11_BITS_PER_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lost synchronisation at edge %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_DHT11_THRESHOLD,4,2            ; @DHT11_THRESHOLD
l_.str.1:                               ; @.str.1
	.asciz	"invalid checksum\n"

l_.str.2:                               ; @.str.2
	.asciz	"Don't know how to decode data: %d %d %d %d\n"

	.no_dead_strip	_dht11_decode
.subsections_via_symbols
