	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc3589x_keypad_of_probe
_tc3589x_keypad_of_probe:               ## @tc3589x_keypad_of_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movslq	-44(%rbp), %rdx
	movq	%rdx, (%r14)
	movslq	-40(%rbp), %rcx
	movq	%rcx, 8(%r14)
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.6:
	testl	%edx, %edx
	je	LBB0_9
## %bb.7:
	movq	_TC_KPD_ROWS@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jl	LBB0_9
## %bb.8:
	movq	_TC_KPD_COLUMNS@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jl	LBB0_9
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_get_property
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movq	%rax, 32(%r14)
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
LBB0_15:
	movl	%ecx, 16(%r14)
	leaq	L_.str.8(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:
	movq	_TC_KPD_DEBOUNCE_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_19:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_16:
	shll	$4, %eax
LBB0_18:
	movl	%eax, 20(%r14)
	movq	_TC_KPD_SETTLE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"keypad,num-columns"

L_.str.1:                               ## @.str.1
	.asciz	"keypad,num-rows"

	.comm	_TC_KPD_ROWS,8,3                ## @TC_KPD_ROWS
	.comm	_TC_KPD_COLUMNS,8,3             ## @TC_KPD_COLUMNS
L_.str.2:                               ## @.str.2
	.asciz	"keypad columns/rows not properly specified (%ux%u)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"linux,keymap"

L_.str.4:                               ## @.str.4
	.asciz	"property linux,keymap not found\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.5:                               ## @.str.5
	.asciz	"linux,no-autorepeat"

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

L_.str.7:                               ## @.str.7
	.asciz	"linux,wakeup"

L_.str.8:                               ## @.str.8
	.asciz	"debounce-delay-ms"

	.comm	_TC_KPD_DEBOUNCE_PERIOD,4,2     ## @TC_KPD_DEBOUNCE_PERIOD
	.comm	_TC_KPD_SETTLE_TIME,4,2         ## @TC_KPD_SETTLE_TIME
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.no_dead_strip	_tc3589x_keypad_of_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc3589x_keypad_of_probe
_tc3589x_keypad_of_probe:               ; @tc3589x_keypad_of_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	x20, [x0]
	cbz	x20, LBB0_8
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #28
	mov	x0, x20
	bl	_of_property_read_u32
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	mov	x0, x20
	bl	_of_property_read_u32
	ldpsw	x9, x8, [sp, #24]
	stp	x8, x9, [x19]
	cbz	w9, LBB0_9
; %bb.3:
	cbz	w8, LBB0_9
; %bb.4:
Lloh7:
	adrp	x10, _TC_KPD_ROWS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _TC_KPD_ROWS@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	adrp	x11, _TC_KPD_COLUMNS@GOTPAGE
Lloh11:
	ldr	x11, [x11, _TC_KPD_COLUMNS@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	x10, x9
	ccmp	x11, x8, #8, ge
	b.lt	LBB0_9
; %bb.5:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #16
	mov	x0, x20
	bl	_of_get_property
	cbz	w0, LBB0_14
; %bb.6:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	str	x0, [x19, #32]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	cbz	x0, LBB0_15
; %bb.7:
	mov	w8, #1
	b	LBB0_16
LBB0_8:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	stp	x8, x9, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
LBB0_11:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_12:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #80
	b	_ERR_PTR
LBB0_14:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh29:
	adrp	x8, _ENOENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_15:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	cmp	x0, #0
	cset	w8, ne
LBB0_16:
	str	w8, [x19, #16]
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #20
	mov	x0, x20
	bl	_of_property_read_u32
	ldr	w8, [sp, #20]
Lloh35:
	adrp	x9, _TC_KPD_DEBOUNCE_PERIOD@GOTPAGE
Lloh36:
	ldr	x9, [x9, _TC_KPD_DEBOUNCE_PERIOD@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	lsl	w10, w8, #4
	cmp	w8, #0
	csel	w8, w9, w10, eq
Lloh38:
	adrp	x9, _TC_KPD_SETTLE_TIME@GOTPAGE
Lloh39:
	ldr	x9, [x9, _TC_KPD_SETTLE_TIME@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	str	w9, [x19, #28]
Lloh41:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh42:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #20]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"keypad,num-columns"

l_.str.1:                               ; @.str.1
	.asciz	"keypad,num-rows"

	.comm	_TC_KPD_ROWS,8,3                ; @TC_KPD_ROWS
	.comm	_TC_KPD_COLUMNS,8,3             ; @TC_KPD_COLUMNS
l_.str.2:                               ; @.str.2
	.asciz	"keypad columns/rows not properly specified (%ux%u)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"linux,keymap"

l_.str.4:                               ; @.str.4
	.asciz	"property linux,keymap not found\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.5:                               ; @.str.5
	.asciz	"linux,no-autorepeat"

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

l_.str.7:                               ; @.str.7
	.asciz	"linux,wakeup"

l_.str.8:                               ; @.str.8
	.asciz	"debounce-delay-ms"

	.comm	_TC_KPD_DEBOUNCE_PERIOD,4,2     ; @TC_KPD_DEBOUNCE_PERIOD
	.comm	_TC_KPD_SETTLE_TIME,4,2         ; @TC_KPD_SETTLE_TIME
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.no_dead_strip	_tc3589x_keypad_of_probe
.subsections_via_symbols
