	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_keypad_probe
_stmpe_keypad_probe:                    ## @stmpe_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, %r13
	movl	8(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	(%r13), %r12
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rbx, 32(%rax)
	movq	_stmpe_keypad_variants@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 24(%r14)
	leaq	20(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	movq	%r14, %rdx
	addq	$16, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	movl	%eax, 8(%r14)
	movq	%r13, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r12)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r13, 16(%r12)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_matrix_keypad_parse_properties
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movl	12(%r14), %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r12, %r9
	callq	_matrix_keypad_build_keymap
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	cmpl	$0, 8(%r14)
	jne	LBB0_9
## %bb.8:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	___set_bit
LBB0_9:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_stmpe_keypad_fill_used_pins
	movq	%r12, (%r14)
	movq	%r14, %rdi
	callq	_stmpe_keypad_chip_init
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	_stmpe_keypad_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, (%rsp)
	leaq	L_.str.4(%rip), %r9
	movq	%r13, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_1:
	movl	%r15d, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_14:
	movq	%r12, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
LBB0_13:
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_17
LBB0_16:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_stmpe_keypad_variants,8,3      ## @stmpe_keypad_variants
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"debounce-interval"

L_.str.1:                               ## @.str.1
	.asciz	"st,scan-count"

L_.str.2:                               ## @.str.2
	.asciz	"st,no-autorepeat"

L_.str.3:                               ## @.str.3
	.asciz	"STMPE keypad"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_stmpe_keypad_irq,4,2           ## @stmpe_keypad_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"stmpe-keypad"

L_.str.5:                               ## @.str.5
	.asciz	"unable to get irq: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"unable to register input device: %d\n"

	.no_dead_strip	_stmpe_keypad_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_keypad_probe
_stmpe_keypad_probe:                    ; @stmpe_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, #8]
	bl	_dev_get_drvdata
	mov	x23, x0
	ldr	x22, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, _stmpe_keypad_variants@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stmpe_keypad_variants@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #2
	stp	x8, x23, [x0, #24]
	add	x2, x0, #20
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	add	x2, x20, #16
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	w0, [x20, #8]
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_10
; %bb.3:
	mov	x22, x0
Lloh12:
	adrp	x8, l_.str.3@PAGE
Lloh13:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x0]
Lloh14:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	str	x19, [x0, #16]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_matrix_keypad_parse_properties
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldp	w3, w2, [sp, #8]
	ldr	w4, [x20, #12]
	mov	x0, #0
	mov	x1, #0
	mov	x5, x22
	bl	_matrix_keypad_build_keymap
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.5:
Lloh17:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_7
; %bb.6:
Lloh23:
	adrp	x8, _EV_REP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w1, [x22, #8]
	bl	___set_bit
LBB0_7:
	ldp	w2, w1, [sp, #8]
	mov	x0, x20
	bl	_stmpe_keypad_fill_used_pins
	str	x22, [x20]
	mov	x0, x20
	bl	_stmpe_keypad_chip_init
	tbnz	w0, #31, LBB0_13
; %bb.8:
Lloh26:
	adrp	x8, _stmpe_keypad_irq@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stmpe_keypad_irq@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x8]
Lloh32:
	adrp	x5, l_.str.4@PAGE
Lloh33:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_14
; %bb.9:
	mov	x23, x0
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_10:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_11:
	mov	x23, x21
LBB0_12:
	mov	x0, x23
	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_13:
	mov	x23, x0
	b	LBB0_12
LBB0_14:
	mov	x0, x22
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_17
; %bb.15:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_16:
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_12
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_stmpe_keypad_variants,8,3      ; @stmpe_keypad_variants
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"debounce-interval"

l_.str.1:                               ; @.str.1
	.asciz	"st,scan-count"

l_.str.2:                               ; @.str.2
	.asciz	"st,no-autorepeat"

l_.str.3:                               ; @.str.3
	.asciz	"STMPE keypad"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_stmpe_keypad_irq,4,2           ; @stmpe_keypad_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"stmpe-keypad"

l_.str.5:                               ; @.str.5
	.asciz	"unable to get irq: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"unable to register input device: %d\n"

	.no_dead_strip	_stmpe_keypad_probe
.subsections_via_symbols
