	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dht11_probe
_dht11_probe:                           ## @dht11_probe
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$48, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r14, 40(%rax)
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_gpiod_get
	movl	%eax, 32(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	32(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	callq	_gpiod_to_irq
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_4
## %bb.7:
	xorl	%eax, %eax
	callq	_ktime_get_boottime_ns
	movq	_DHT11_DATA_VALID_TIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	addq	%rax, %rcx
	movq	%rcx, 24(%rbx)
	movl	$-1, 8(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	leaq	16(%rbx), %rdi
	callq	_init_completion
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_mutex_init
	movl	4(%r14), %eax
	movl	%eax, 32(%r15)
	movq	%r14, 24(%r15)
	movq	_dht11_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_dht11_chan_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_4:
	movl	32(%rbx), %edi
	callq	_desc_to_gpio
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate IIO device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.1:                               ## @.str.1
	.asciz	"GPIO %d has no interrupt\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DHT11_DATA_VALID_TIME,8,3      ## @DHT11_DATA_VALID_TIME
	.comm	_dht11_iio_info,4,2             ## @dht11_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_dht11_chan_spec,4,2            ## @dht11_chan_spec
	.no_dead_strip	_dht11_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dht11_probe
_dht11_probe:                           ; @dht11_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w1, #48
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	str	x19, [x0, #40]
Lloh0:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_gpiod_get
	str	w0, [x21, #32]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x21, #32]
	cbz	x8, LBB0_4
; %bb.2:
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	bl	_gpiod_to_irq
	str	x0, [x21]
	tbnz	x0, #63, LBB0_6
; %bb.5:
	bl	_ktime_get_boottime_ns
Lloh7:
	adrp	x8, _DHT11_DATA_VALID_TIME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DHT11_DATA_VALID_TIME@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	mvn	x8, x8
	add	x8, x0, x8
	str	x8, [x21, #24]
	mov	w8, #-1
	str	w8, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x0, x21, #16
	bl	_init_completion
	add	x0, x21, #12
	bl	_mutex_init
	ldr	w8, [x19, #4]
	str	w8, [x20, #32]
Lloh10:
	adrp	x8, _dht11_iio_info@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dht11_iio_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #16]
Lloh12:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _dht11_chan_spec@GOTPAGE
Lloh16:
	ldr	x9, [x9, _dht11_chan_spec@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	mov	x0, x19
	mov	x1, x20
	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
	add	sp, sp, #64
	b	_devm_iio_device_register
LBB0_6:
	ldr	w0, [x21, #32]
	bl	_desc_to_gpio
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate IIO device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.1:                               ; @.str.1
	.asciz	"GPIO %d has no interrupt\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DHT11_DATA_VALID_TIME,8,3      ; @DHT11_DATA_VALID_TIME
	.comm	_dht11_iio_info,4,2             ; @dht11_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_dht11_chan_spec,4,2            ; @dht11_chan_spec
	.no_dead_strip	_dht11_probe
.subsections_via_symbols
