	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc3589x_keypad_probe
_tc3589x_keypad_probe:                  ## @tc3589x_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, %rbx
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_tc3589x_keypad_of_probe
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_15
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 24(%rax)
	movq	%r13, 16(%rax)
	movq	%r12, 8(%rax)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movl	4(%rbx), %eax
	movl	%eax, 24(%r13)
	movq	%rbx, 16(%r13)
	movq	_tc3589x_keypad_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_tc3589x_keypad_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movl	12(%r15), %edi
	movq	_TC3589x_MAX_KPROW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TC3589x_MAX_KPCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	movq	%r13, %r9
	callq	_matrix_keypad_build_keymap
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r14d
	jmp	LBB0_15
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_8:
	movl	4(%r13), %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, (%r12)
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_input_set_capability
	cmpl	$0, 8(%r15)
	jne	LBB0_10
## %bb.9:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
LBB0_10:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_input_set_drvdata
	movq	%r12, %rdi
	callq	_tc3589x_keypad_disable
	movq	_tc3589x_keypad_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	orl	(%r15), %r8d
	movq	%r12, (%rsp)
	leaq	L_.str.3(%rip), %r9
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r14d
	jmp	LBB0_15
LBB0_12:
	movq	%r13, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_14:
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_device_init_wakeup
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_device_set_wakeup_capable
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_platform_set_drvdata
	xorl	%r14d, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid keypad platform data\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate input device\n"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_tc3589x_keypad_open,4,2        ## @tc3589x_keypad_open
	.comm	_tc3589x_keypad_close,4,2       ## @tc3589x_keypad_close
	.comm	_TC3589x_MAX_KPROW,4,2          ## @TC3589x_MAX_KPROW
	.comm	_TC3589x_MAX_KPCOL,4,2          ## @TC3589x_MAX_KPCOL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to build keymap\n"

	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_tc3589x_keypad_irq,4,2         ## @tc3589x_keypad_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"tc3589x-keypad"

L_.str.4:                               ## @.str.4
	.asciz	"Could not allocate irq %d,error %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Could not register input device\n"

	.no_dead_strip	_tc3589x_keypad_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_probe
_tc3589x_keypad_probe:                  ; @tc3589x_keypad_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x24, x0
	mov	x0, x19
	bl	_tc3589x_keypad_of_probe
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_7
; %bb.5:
	mov	x23, x0
	stp	x0, x20, [x22, #16]
	str	x24, [x22, #8]
Lloh5:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	stp	w9, w8, [x0, #24]
	str	x19, [x0, #16]
Lloh8:
	adrp	x8, _tc3589x_keypad_open@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tc3589x_keypad_open@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _tc3589x_keypad_close@GOTPAGE
Lloh12:
	ldr	x9, [x9, _tc3589x_keypad_close@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	ldr	w0, [x20, #12]
Lloh14:
	adrp	x8, _TC3589x_MAX_KPROW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TC3589x_MAX_KPROW@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _TC3589x_MAX_KPCOL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TC3589x_MAX_KPCOL@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x1, #0
	mov	x4, #0
	mov	x5, x23
	bl	_matrix_keypad_build_keymap
	cbz	w0, LBB0_10
; %bb.6:
	mov	x24, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x24
	b	LBB0_9
LBB0_7:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	w8, [x23, #4]
	str	w8, [x22]
Lloh27:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_input_set_capability
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_12
; %bb.11:
Lloh33:
	adrp	x8, _EV_REP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	___set_bit
LBB0_12:
	mov	x0, x23
	mov	x1, x22
	bl	_input_set_drvdata
	mov	x0, x22
	bl	_tc3589x_keypad_disable
Lloh36:
	adrp	x8, _tc3589x_keypad_irq@GOTPAGE
Lloh37:
	ldr	x8, [x8, _tc3589x_keypad_irq@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	ldr	w8, [x20]
Lloh39:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh42:
	adrp	x5, l_.str.3@PAGE
Lloh43:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x6, x22
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_14
; %bb.13:
	mov	x24, x0
	stp	x21, x24, [sp]
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x24
	b	LBB0_9
LBB0_14:
	mov	x0, x23
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.15:
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_16:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_device_init_wakeup
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_device_set_wakeup_capable
	mov	x0, x19
	mov	x1, x22
	bl	_platform_set_drvdata
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid keypad platform data\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate input device\n"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_tc3589x_keypad_open,4,2        ; @tc3589x_keypad_open
	.comm	_tc3589x_keypad_close,4,2       ; @tc3589x_keypad_close
	.comm	_TC3589x_MAX_KPROW,4,2          ; @TC3589x_MAX_KPROW
	.comm	_TC3589x_MAX_KPCOL,4,2          ; @TC3589x_MAX_KPCOL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to build keymap\n"

	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_tc3589x_keypad_irq,4,2         ; @tc3589x_keypad_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"tc3589x-keypad"

l_.str.4:                               ; @.str.4
	.asciz	"Could not allocate irq %d,error %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Could not register input device\n"

	.no_dead_strip	_tc3589x_keypad_probe
.subsections_via_symbols
