	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function matrix_keypad_probe
_matrix_keypad_probe:                   ## @matrix_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	cmpl	$0, 16(%rax)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_1:
	movq	%r14, %rdi
	callq	_matrix_keypad_parse_dt
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	testq	%r12, %r12
	je	LBB0_7
## %bb.8:
	movq	%r12, 8(%r15)
	movq	%r13, 32(%r15)
	movl	8(%r13), %edi
	callq	_get_count_order
	movl	%eax, 24(%r15)
	movl	$1, (%r15)
	leaq	20(%r15), %rdi
	movq	_matrix_keypad_scan@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movl	4(%r14), %eax
	movl	%eax, 28(%r12)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r14, 16(%r12)
	movq	_matrix_keypad_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_matrix_keypad_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	16(%r13), %edi
	movl	8(%r13), %ecx
	movl	12(%r13), %edx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	_matrix_keypad_build_keymap
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_16
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_16:
	movq	%r12, %rdi
	callq	_input_free_device
	movq	%r15, %rdi
	callq	_kfree
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$0, 4(%r13)
	jne	LBB0_12
## %bb.11:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	___set_bit
LBB0_12:
	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
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_matrix_keypad_init_gpio
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	8(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_matrix_keypad_free_gpio
	jmp	LBB0_16
LBB0_14:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_device_init_wakeup
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no keymap data defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_matrix_keypad_scan,4,2         ## @matrix_keypad_scan
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_matrix_keypad_start,4,2        ## @matrix_keypad_start
	.comm	_matrix_keypad_stop,4,2         ## @matrix_keypad_stop
L_.str.1:                               ## @.str.1
	.asciz	"failed to build keymap\n"

	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.no_dead_strip	_matrix_keypad_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function matrix_keypad_probe
_matrix_keypad_probe:                   ; @matrix_keypad_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_dev_get_platdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_3:
	mov	x0, x19
	bl	_matrix_keypad_parse_dt
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x20, x0
	bl	_input_allocate_device
	mov	x22, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_7:
	str	x22, [x20, #8]
	str	x21, [x20, #32]
	ldr	w0, [x21, #8]
	bl	_get_count_order
	str	w0, [x20, #24]
	mov	w8, #1
	str	w8, [x20]
	add	x0, x20, #20
Lloh11:
	adrp	x8, _matrix_keypad_scan@GOTPAGE
Lloh12:
	ldr	x8, [x8, _matrix_keypad_scan@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x20, #16
	bl	_spin_lock_init
	ldr	w8, [x19, #4]
Lloh14:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
	str	x19, [x22, #16]
Lloh17:
	adrp	x8, _matrix_keypad_start@GOTPAGE
Lloh18:
	ldr	x8, [x8, _matrix_keypad_start@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _matrix_keypad_stop@GOTPAGE
Lloh21:
	ldr	x9, [x9, _matrix_keypad_stop@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #4]
	ldp	w2, w0, [x21, #12]
	ldr	w3, [x21, #8]
	mov	x1, #0
	mov	x4, #0
	mov	x5, x22
	bl	_matrix_keypad_build_keymap
	cbz	w0, LBB0_9
; %bb.8:
	mov	x23, x0
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_9:
	ldr	w8, [x21, #4]
	cbnz	w8, LBB0_11
; %bb.10:
Lloh25:
	adrp	x8, _EV_REP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
LBB0_11:
Lloh28:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	mov	x0, x22
	mov	x1, x20
	bl	_input_set_drvdata
	mov	x0, x19
	mov	x1, x20
	bl	_matrix_keypad_init_gpio
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.12:
	ldr	x0, [x20, #8]
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_16
; %bb.13:
	mov	x0, x20
	bl	_matrix_keypad_free_gpio
LBB0_14:
	mov	x0, x22
	bl	_input_free_device
	mov	x0, x20
	bl	_kfree
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_device_init_wakeup
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no keymap data defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_matrix_keypad_scan,4,2         ; @matrix_keypad_scan
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_matrix_keypad_start,4,2        ; @matrix_keypad_start
	.comm	_matrix_keypad_stop,4,2         ; @matrix_keypad_stop
l_.str.1:                               ; @.str.1
	.asciz	"failed to build keymap\n"

	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.no_dead_strip	_matrix_keypad_probe
.subsections_via_symbols
