	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rotary_encoder_probe
_rotary_encoder_probe:                  ## @rotary_encoder_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_34
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	leaq	64(%rax), %rdi
	callq	_mutex_init
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_device_property_read_u32
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_device_property_read_bool
	cmpq	$1, %rax
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, -44(%rbp)
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_device_property_read_bool
	movq	%rax, 56(%r15)
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_device_property_present
	movq	_ROTENC_GRAY@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_device_property_match_string
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.6(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_device_property_match_string
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str.5(%rip), %rbx
	jmp	LBB0_9
LBB0_8:
	movq	_ROTENC_BINARY@GOTPCREL(%rip), %r14
LBB0_9:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dev_info
	movl	(%r14), %eax
	movl	%eax, 48(%r15)
	addq	$4, %r13
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_device_property_read_u32
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	callq	_device_property_read_bool
	movq	%rax, 32(%r15)
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_gpiod_get_array
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_36
## %bb.11:
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_36
LBB0_12:
	cmpl	$1, (%rdi)
	jg	LBB0_16
## %bb.13:
	leaq	L_.str.11(%rip), %rsi
LBB0_14:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_16:
	movq	%r12, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_34
## %bb.17:
	movq	%rax, %rbx
	movq	%rax, 40(%r15)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r12, (%rbx)
	cmpq	$0, 32(%r15)
	je	LBB0_19
## %bb.18:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	jmp	LBB0_20
LBB0_19:
	movl	(%r15), %ecx
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_input_set_abs_params
LBB0_20:
	movl	-44(%rbp), %edx
	movq	16(%r15), %rax
	movb	(%rax), %cl
	addb	$-2, %cl
	movl	%edx, %eax
	sarl	%cl, %eax
	cmpl	$1, %eax
	je	LBB0_24
## %bb.21:
	cmpl	$4, %eax
	je	LBB0_25
## %bb.22:
	cmpl	$2, %eax
	jne	LBB0_37
## %bb.23:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_rotary_encoder_half_period_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_24:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_rotary_encoder_irq@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_27
LBB0_25:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_rotary_encoder_quarter_period_irq@GOTPCREL(%rip), %rax
LBB0_26:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rotary_encoder_get_state
	movq	%rax, 24(%r15)
LBB0_27:
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_34
## %bb.28:
	movq	16(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_32
## %bb.29:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	(%rax,%r13,4), %edi
	callq	_gpiod_to_irq
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_DRV_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r15, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	jne	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	incq	%r13
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	cmpq	%rcx, %r13
	jb	LBB0_30
LBB0_32:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_39
## %bb.33:
	movl	%eax, %ebx
	leaq	L_.str.14(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_36
LBB0_34:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_35:
	subl	(%rax), %ebx
LBB0_36:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	leaq	L_.str.12(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_38:
	movl	%eax, %ebx
	movq	8(%r15), %rax
	movl	(%rax,%r13,4), %edx
	leaq	L_.str.13(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_36
LBB0_39:
	leaq	L_.str.15(%rip), %rsi
	movq	%r12, %rdi
	callq	_device_property_read_bool
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_device_init_wakeup
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rotary-encoder,steps"

L_.str.1:                               ## @.str.1
	.asciz	"rotary-encoder,steps-per-period"

L_.str.2:                               ## @.str.2
	.asciz	"rotary-encoder,half-period"

L_.str.3:                               ## @.str.3
	.asciz	"rotary-encoder,rollover"

L_.str.4:                               ## @.str.4
	.asciz	"rotary-encoder,encoding"

L_.str.5:                               ## @.str.5
	.asciz	"gray"

	.comm	_ROTENC_GRAY,4,2                ## @ROTENC_GRAY
L_.str.6:                               ## @.str.6
	.asciz	"binary"

	.comm	_ROTENC_BINARY,4,2              ## @ROTENC_BINARY
L_.str.7:                               ## @.str.7
	.asciz	"unknown encoding setting\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.8:                               ## @.str.8
	.asciz	"linux,axis"

L_.str.9:                               ## @.str.9
	.asciz	"rotary-encoder,relative-axis"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.10:                              ## @.str.10
	.asciz	"unable to get gpios: %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"not enough gpios found\n"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_rotary_encoder_quarter_period_irq,4,2 ## @rotary_encoder_quarter_period_irq
	.comm	_rotary_encoder_half_period_irq,4,2 ## @rotary_encoder_half_period_irq
	.comm	_rotary_encoder_irq,4,2         ## @rotary_encoder_irq
L_.str.12:                              ## @.str.12
	.asciz	"'%d' is not a valid steps-per-period value\n"

	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
L_.str.13:                              ## @.str.13
	.asciz	"unable to request IRQ %d (gpio#%d)\n"

L_.str.14:                              ## @.str.14
	.asciz	"failed to register input device\n"

L_.str.15:                              ## @.str.15
	.asciz	"wakeup-source"

	.no_dead_strip	_rotary_encoder_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rotary_encoder_probe
_rotary_encoder_probe:                  ; @rotary_encoder_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	add	x19, x0, #4
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_35
; %bb.1:
	mov	x21, x0
	add	x0, x0, #64
	bl	_mutex_init
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_device_property_read_u32
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #28
	mov	x0, x19
	bl	_device_property_read_u32
	cbz	w0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	cmp	x0, #0
	mov	w8, #1
	cinc	w8, w8, ne
	str	w8, [sp, #28]
LBB0_3:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	str	x0, [x21, #56]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_device_property_present
	cbz	w0, LBB0_7
; %bb.4:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh14:
	adrp	x22, l_.str.5@PAGE
Lloh15:
	add	x22, x22, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_device_property_match_string
	cbz	w0, LBB0_8
; %bb.5:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh18:
	adrp	x22, l_.str.6@PAGE
Lloh19:
	add	x22, x22, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_device_property_match_string
	cbz	w0, LBB0_9
; %bb.6:
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_7:
Lloh22:
	adrp	x23, _ROTENC_GRAY@GOTPAGE
Lloh23:
	ldr	x23, [x23, _ROTENC_GRAY@GOTPAGEOFF]
Lloh24:
	adrp	x22, l_.str.5@PAGE
Lloh25:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh26:
	adrp	x23, _ROTENC_GRAY@GOTPAGE
Lloh27:
	ldr	x23, [x23, _ROTENC_GRAY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh28:
	adrp	x23, _ROTENC_BINARY@GOTPAGE
Lloh29:
	ldr	x23, [x23, _ROTENC_BINARY@GOTPAGEOFF]
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	bl	_dev_info
	ldr	w8, [x23]
	str	w8, [x21, #48]
	add	x23, x21, #4
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_device_property_read_u32
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	str	x0, [x21, #32]
Lloh34:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_gpiod_get_array
	str	x0, [x21, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x21, #16]
	cbz	x8, LBB0_14
; %bb.11:
	bl	_PTR_ERR
	mov	x24, x0
Lloh37:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_37
; %bb.12:
	str	x24, [sp]
Lloh40:
	adrp	x1, l_.str.10@PAGE
Lloh41:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_37
LBB0_14:
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_17
; %bb.15:
Lloh42:
	adrp	x1, l_.str.11@PAGE
Lloh43:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_dev_err
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_36
LBB0_17:
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_35
; %bb.18:
	mov	x22, x0
	str	x0, [x21, #40]
Lloh46:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh47:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh48:
	ldr	w8, [x8]
	stp	w8, w9, [x0, #8]
	str	x19, [x0]
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_20
; %bb.19:
Lloh49:
	adrp	x8, _EV_REL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x22
	bl	_input_set_capability
	b	LBB0_21
LBB0_20:
	ldp	w3, w1, [x21]
	mov	x0, x22
	mov	w2, #0
	mov	w4, #0
	mov	w5, #1
	bl	_input_set_abs_params
LBB0_21:
	ldr	w8, [sp, #28]
	ldr	x9, [x21, #16]
	ldr	w9, [x9]
	sub	w9, w9, #2
	asr	w9, w8, w9
	cmp	w9, #1
	b.eq	LBB0_25
; %bb.22:
	cmp	w9, #4
	b.eq	LBB0_26
; %bb.23:
	cmp	w9, #2
	b.ne	LBB0_38
; %bb.24:
Lloh52:
	adrp	x23, _rotary_encoder_half_period_irq@GOTPAGE
Lloh53:
	ldr	x23, [x23, _rotary_encoder_half_period_irq@GOTPAGEOFF]
	b	LBB0_27
LBB0_25:
Lloh54:
	adrp	x23, _rotary_encoder_irq@GOTPAGE
Lloh55:
	ldr	x23, [x23, _rotary_encoder_irq@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
Lloh56:
	adrp	x23, _rotary_encoder_quarter_period_irq@GOTPAGE
Lloh57:
	ldr	x23, [x23, _rotary_encoder_quarter_period_irq@GOTPAGEOFF]
LBB0_27:
	mov	x0, x21
	bl	_rotary_encoder_get_state
	str	x0, [x21, #24]
LBB0_28:
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
	ldr	w3, [x24]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_35
; %bb.29:
	ldr	x8, [x21, #16]
	ldr	w9, [x8]
	cbz	w9, LBB0_33
; %bb.30:
	mov	x25, #0
Lloh58:
	adrp	x27, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh59:
	ldr	x27, [x27, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh60:
	adrp	x28, _IRQF_ONESHOT@GOTPAGE
Lloh61:
	ldr	x28, [x28, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh62:
	adrp	x26, _DRV_NAME@GOTPAGE
Lloh63:
	ldr	x26, [x26, _DRV_NAME@GOTPAGEOFF]
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	lsl	x24, x25, #2
	ldr	w0, [x8, x24]
	bl	_gpiod_to_irq
	mov	x1, x0
	ldr	x8, [x21, #8]
	str	w0, [x8, x24]
Lloh64:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh65:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w4, w8, w9
	ldr	w5, [x26]
	mov	x0, x19
	mov	x2, #0
	mov	x3, x23
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbnz	w0, LBB0_39
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	add	x25, x25, #1
	ldr	x8, [x21, #16]
	ldr	w9, [x8]
	cmp	x25, x9
	b.lo	LBB0_31
LBB0_33:
	mov	x0, x22
	bl	_input_register_device
	mov	x24, x0
	cbz	w0, LBB0_40
; %bb.34:
Lloh67:
	adrp	x1, l_.str.14@PAGE
Lloh68:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_13
LBB0_35:
Lloh69:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_36:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_37:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_38:
	str	x8, [sp]
Lloh71:
	adrp	x1, l_.str.12@PAGE
Lloh72:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_16
LBB0_39:
	mov	x24, x0
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x25, lsl #2]
	stp	x8, x25, [sp]
Lloh73:
	adrp	x1, l_.str.13@PAGE
Lloh74:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_13
LBB0_40:
Lloh75:
	adrp	x1, l_.str.15@PAGE
Lloh76:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	mov	x1, x0
	mov	x0, x19
	bl	_device_init_wakeup
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
	b	LBB0_37
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rotary-encoder,steps"

l_.str.1:                               ; @.str.1
	.asciz	"rotary-encoder,steps-per-period"

l_.str.2:                               ; @.str.2
	.asciz	"rotary-encoder,half-period"

l_.str.3:                               ; @.str.3
	.asciz	"rotary-encoder,rollover"

l_.str.4:                               ; @.str.4
	.asciz	"rotary-encoder,encoding"

l_.str.5:                               ; @.str.5
	.asciz	"gray"

	.comm	_ROTENC_GRAY,4,2                ; @ROTENC_GRAY
l_.str.6:                               ; @.str.6
	.asciz	"binary"

	.comm	_ROTENC_BINARY,4,2              ; @ROTENC_BINARY
l_.str.7:                               ; @.str.7
	.asciz	"unknown encoding setting\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.8:                               ; @.str.8
	.asciz	"linux,axis"

l_.str.9:                               ; @.str.9
	.asciz	"rotary-encoder,relative-axis"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.10:                              ; @.str.10
	.asciz	"unable to get gpios: %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"not enough gpios found\n"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_rotary_encoder_quarter_period_irq,4,2 ; @rotary_encoder_quarter_period_irq
	.comm	_rotary_encoder_half_period_irq,4,2 ; @rotary_encoder_half_period_irq
	.comm	_rotary_encoder_irq,4,2         ; @rotary_encoder_irq
l_.str.12:                              ; @.str.12
	.asciz	"'%d' is not a valid steps-per-period value\n"

	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
l_.str.13:                              ; @.str.13
	.asciz	"unable to request IRQ %d (gpio#%d)\n"

l_.str.14:                              ; @.str.14
	.asciz	"failed to register input device\n"

l_.str.15:                              ; @.str.15
	.asciz	"wakeup-source"

	.no_dead_strip	_rotary_encoder_probe
.subsections_via_symbols
