	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clps711x_keypad_probe
_clps711x_keypad_probe:                 ## @clps711x_keypad_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %r12
	movq	8(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	callq	_syscon_regmap_lookup_by_compatible
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	4(%r15), %edi
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_gpio_named_count
	movl	%eax, (%r15)
	testl	%eax, %eax
	jle	LBB0_21
## %bb.5:
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_CLPS711X_KEYPAD_COL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_count_order
	movl	%eax, 16(%r15)
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r13
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_devm_gpiod_get_index
	movl	%eax, (%r13,%rbx,4)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_property_read_u32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_polled_device
	testq	%rax, %rax
	je	LBB0_23
## %bb.12:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	_clps711x_keypad_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	(%r14), %eax
	movq	(%rbx), %r9
	movl	%eax, 32(%r9)
	movq	%r12, 24(%r9)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r9)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%r9)
	movl	$256, 12(%r9)                   ## imm = 0x100
	movl	(%r15), %edx
	movq	_CLPS711X_KEYPAD_COL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_matrix_keypad_build_keymap
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	(%rbx), %rdi
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	___set_bit
LBB0_15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movl	4(%r15), %r14d
	movq	_SYSCON_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_SYSCON1_KBDSCAN_MASK@GOTPCREL(%rip), %rax
	movq	%rbx, %r12
	movl	(%rax), %ebx
	movl	$1, %edi
	callq	_SYSCON1_KBDSCAN
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%r12, %rbx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movq	%r12, %rdi
	callq	_input_register_polled_device
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_24
LBB0_16:
	movq	%rbx, %rdi
	callq	_input_free_polled_device
	jmp	LBB0_20
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%r13d, %r13d
LBB0_19:
	subl	(%rax), %r13d
LBB0_20:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_22:
	movl	(%r13,%rbx,4), %edi
	jmp	LBB0_3
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_24:
	xorl	%r13d, %r13d
	jmp	LBB0_20
	.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	"cirrus,ep7209-syscon1"

L_.str.1:                               ## @.str.1
	.asciz	"row-gpios"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CLPS711X_KEYPAD_COL_COUNT,4,2  ## @CLPS711X_KEYPAD_COL_COUNT
L_.str.2:                               ## @.str.2
	.asciz	"row"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.3:                               ## @.str.3
	.asciz	"poll-interval"

	.comm	_clps711x_keypad_poll,4,2       ## @clps711x_keypad_poll
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
L_.str.4:                               ## @.str.4
	.asciz	"autorepeat"

	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_SYSCON_OFFSET,4,2              ## @SYSCON_OFFSET
	.comm	_SYSCON1_KBDSCAN_MASK,4,2       ## @SYSCON1_KBDSCAN_MASK
	.no_dead_strip	_clps711x_keypad_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clps711x_keypad_probe
_clps711x_keypad_probe:                 ; @clps711x_keypad_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	mov	x22, x0
	ldr	x21, [x22, #8]!
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x22
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_compatible
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #4]
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_gpio_named_count
	str	w0, [x20]
	cmp	w0, #0
	b.le	LBB0_20
; %bb.5:
	mov	x1, x0
	ldr	w3, [x23]
	mov	x0, x22
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_17
; %bb.6:
Lloh6:
	adrp	x25, _CLPS711X_KEYPAD_COL_COUNT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CLPS711X_KEYPAD_COL_COUNT@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_get_count_order
	str	w0, [x20, #16]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x23, #0
Lloh8:
	adrp	x26, _GPIOD_IN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _GPIOD_IN@GOTPAGEOFF]
Lloh10:
	adrp	x24, l_.str.2@PAGE
Lloh11:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x20, #8]
	ldr	w3, [x26]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_devm_gpiod_get_index
	str	w0, [x27, x23, lsl #2]
	bl	_IS_ERR
	cbnz	x0, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.lt	LBB0_8
LBB0_10:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	mov	x24, x0
	cbnz	w0, LBB0_19
; %bb.11:
	bl	_input_allocate_polled_device
	cbz	x0, LBB0_17
; %bb.12:
	mov	x23, x0
	str	x20, [x0, #16]
Lloh14:
	adrp	x8, _clps711x_keypad_poll@GOTPAGE
Lloh15:
	ldr	x8, [x8, _clps711x_keypad_poll@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	stp	w9, w8, [x0, #8]
	ldr	w8, [x19]
	ldr	x5, [x0]
	str	w8, [x5, #32]
	str	x22, [x5, #24]
Lloh17:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	movi.2s	v0, #1
	stur	d0, [x5, #4]
	mov	w9, #256
	stp	w9, w8, [x5, #12]
	ldr	w2, [x20]
	ldr	w3, [x25]
	mov	x0, #0
	mov	x1, #0
	mov	x4, #0
	bl	_matrix_keypad_build_keymap
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.13:
	ldr	x0, [x23]
Lloh20:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_input_set_capability
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	cbz	x0, LBB0_15
; %bb.14:
Lloh28:
	adrp	x8, _EV_REP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	x8, [x23]
	ldr	w1, [x8]
	bl	___set_bit
LBB0_15:
	mov	x0, x19
	mov	x1, x23
	bl	_platform_set_drvdata
	ldr	w19, [x20, #4]
Lloh31:
	adrp	x8, _SYSCON_OFFSET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SYSCON_OFFSET@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
Lloh34:
	adrp	x8, _SYSCON1_KBDSCAN_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SYSCON1_KBDSCAN_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
	mov	w0, #1
	bl	_SYSCON1_KBDSCAN
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_regmap_update_bits
	mov	x0, x23
	bl	_input_register_polled_device
	mov	x24, x0
	cbz	w0, LBB0_19
LBB0_16:
	mov	x0, x23
	bl	_input_free_polled_device
	b	LBB0_19
LBB0_17:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_19:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_21:
	ldr	w0, [x27, x23, lsl #2]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.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	"cirrus,ep7209-syscon1"

l_.str.1:                               ; @.str.1
	.asciz	"row-gpios"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CLPS711X_KEYPAD_COL_COUNT,4,2  ; @CLPS711X_KEYPAD_COL_COUNT
l_.str.2:                               ; @.str.2
	.asciz	"row"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.3:                               ; @.str.3
	.asciz	"poll-interval"

	.comm	_clps711x_keypad_poll,4,2       ; @clps711x_keypad_poll
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
l_.str.4:                               ; @.str.4
	.asciz	"autorepeat"

	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_SYSCON_OFFSET,4,2              ; @SYSCON_OFFSET
	.comm	_SYSCON1_KBDSCAN_MASK,4,2       ; @SYSCON1_KBDSCAN_MASK
	.no_dead_strip	_clps711x_keypad_probe
.subsections_via_symbols
