	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpr_touchkey_probe
_mpr_touchkey_probe:                    ## @mpr_touchkey_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
	leaq	8(%rdi), %r14
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r12
	movq	%r14, %rdi
	callq	_mpr121_vdd_supply_init
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	callq	_regulator_get_voltage
	movl	%eax, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %rbx
	movq	%r12, 24(%r15)
	movq	%rax, 16(%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_count_u32
	movl	%eax, (%r15)
	movq	_MPR121_MAX_KEY_COUNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_12
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_10:
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	8(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_device_property_read_u32_array
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%rbx)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, 32(%rbx)
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_read_bool
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	callq	___set_bit
LBB0_16:
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movq	8(%r15), %rax
	movq	%rax, 16(%rbx)
	movl	$4, 8(%rbx)
	movl	(%r15), %ecx
	movl	%ecx, 12(%rbx)
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.17:
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	cmpl	$2, (%r15)
	jl	LBB0_20
## %bb.18:
	movl	$1, %r13d
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax,%r13,4), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jl	LBB0_19
LBB0_20:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mpr121_phys_init
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_24
LBB0_22:
	movl	(%r12), %esi
	movq	_mpr_touchkey_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	8(%r12), %rax
	movl	(%rax), %r9d
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_25
## %bb.23:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
LBB0_24:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_25:
	movq	%rbx, %rdi
	callq	_input_register_device
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.26:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_read_bool
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_device_init_wakeup
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq number should not be zero\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"linux,keycodes"

	.comm	_MPR121_MAX_KEY_COUNT,4,2       ## @MPR121_MAX_KEY_COUNT
L_.str.2:                               ## @.str.2
	.asciz	"too many keys defined (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to read linux,keycode property: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Freescale MPR121 Touchkey"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
L_.str.5:                               ## @.str.5
	.asciz	"autorepeat"

	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_EV_KEY,4,2                     ## @EV_KEY
L_.str.6:                               ## @.str.6
	.asciz	"Failed to init register\n"

	.comm	_mpr_touchkey_interrupt,4,2     ## @mpr_touchkey_interrupt
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.7:                               ## @.str.7
	.asciz	"Failed to register interrupt\n"

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

	.no_dead_strip	_mpr_touchkey_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpr_touchkey_probe
_mpr_touchkey_probe:                    ; @mpr_touchkey_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w8, [x19], #8
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_mpr121_vdd_supply_init
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	x0, x21
	bl	_regulator_get_voltage
	mov	x23, x0
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_9
; %bb.7:
	mov	x22, x0
	stp	x0, x20, [x21, #16]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_device_property_count_u32
	mov	x3, x0
	str	w0, [x21]
Lloh9:
	adrp	x8, _MPR121_MAX_KEY_COUNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPR121_MAX_KEY_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_12
; %bb.8:
	str	x3, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_9:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	ldr	x2, [x21, #8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_device_property_read_u32_array
	cbz	w0, LBB0_14
; %bb.13:
	mov	x24, x0
	str	x24, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_14:
Lloh20:
	adrp	x8, l_.str.4@PAGE
Lloh21:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x22]
Lloh22:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x22, #40]
	str	x19, [x22, #32]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	cbz	x0, LBB0_16
; %bb.15:
Lloh27:
	adrp	x8, _EV_REP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x22, #24]
	bl	___set_bit
LBB0_16:
Lloh30:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	x8, [x21, #8]
	str	x8, [x22, #16]
	mov	w9, #4
	ldr	w10, [x21]
	stp	w9, w10, [x22, #8]
	cmp	w10, #1
	b.lt	LBB0_20
; %bb.17:
Lloh36:
	adrp	x24, _EV_KEY@GOTPAGE
Lloh37:
	ldr	x24, [x24, _EV_KEY@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_20
; %bb.18:
	mov	w25, #1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w1, [x24]
	ldr	w2, [x8, x25, lsl #2]
	mov	x0, x22
	bl	_input_set_capability
	add	x25, x25, #1
	ldrsw	x8, [x21]
	cmp	x25, x8
	b.lt	LBB0_19
LBB0_20:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_mpr121_phys_init
	cbz	w0, LBB0_22
; %bb.21:
	mov	x24, x0
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_24
LBB0_22:
	ldr	w1, [x20]
Lloh40:
	adrp	x8, _mpr_touchkey_interrupt@GOTPAGE
Lloh41:
	ldr	x8, [x8, _mpr_touchkey_interrupt@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
Lloh43:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh47:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w4, w9, w8
	ldr	x8, [x20, #8]
	ldr	w5, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_25
; %bb.23:
	mov	x24, x0
Lloh49:
	adrp	x1, l_.str.7@PAGE
Lloh50:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_24:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_25:
	mov	x0, x22
	bl	_input_register_device
	mov	x24, x0
	cbnz	w0, LBB0_11
; %bb.26:
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
Lloh51:
	adrp	x1, l_.str.8@PAGE
Lloh52:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	mov	x1, x0
	mov	x0, x19
	bl	_device_init_wakeup
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq number should not be zero\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"linux,keycodes"

	.comm	_MPR121_MAX_KEY_COUNT,4,2       ; @MPR121_MAX_KEY_COUNT
l_.str.2:                               ; @.str.2
	.asciz	"too many keys defined (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to read linux,keycode property: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Freescale MPR121 Touchkey"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
l_.str.5:                               ; @.str.5
	.asciz	"autorepeat"

	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_EV_KEY,4,2                     ; @EV_KEY
l_.str.6:                               ; @.str.6
	.asciz	"Failed to init register\n"

	.comm	_mpr_touchkey_interrupt,4,2     ; @mpr_touchkey_interrupt
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.7:                               ; @.str.7
	.asciz	"Failed to register interrupt\n"

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

	.no_dead_strip	_mpr_touchkey_probe
.subsections_via_symbols
