	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyscan_probe
_keyscan_probe:                         ## @keyscan_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	cmpl	$0, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movl	4(%r12), %eax
	movl	%eax, 32(%r15)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r15)
	movq	%r12, 24(%r15)
	movq	_keyscan_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_keyscan_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r15, 24(%r14)
	movq	%r14, %rdi
	callq	_keypad_matrix_key_parse_dt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movl	16(%r14), %ecx
	movl	20(%r14), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_matrix_keypad_build_keymap
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 12(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	12(%r14), %edi
	jmp	LBB0_17
LBB0_15:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	8(%r14), %edi
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_18:
	movl	8(%r14), %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_20:
	movq	%r14, %rdi
	callq	_keyscan_stop
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_23
## %bb.21:
	movq	_keyscan_isr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	4(%r12), %r8d
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_6
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_24:
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_6
LBB0_26:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_device_set_wakeup_capable
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no DT data present\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"keyscan-keys/input0"

	.comm	_keyscan_open,4,2               ## @keyscan_open
	.comm	_keyscan_close,4,2              ## @keyscan_close
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
L_.str.3:                               ## @.str.3
	.asciz	"failed to build keymap\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.4:                               ## @.str.4
	.asciz	"cannot get clock\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to enable clock\n"

	.comm	_keyscan_isr,4,2                ## @keyscan_isr
L_.str.6:                               ## @.str.6
	.asciz	"failed to request IRQ\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to register input device\n"

	.no_dead_strip	_keyscan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyscan_probe
_keyscan_probe:                         ; @keyscan_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	ldr	w8, [x19, #4]
	str	w8, [x0, #32]
Lloh3:
	adrp	x8, l_.str.2@PAGE
Lloh4:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x0]
Lloh5:
	adrp	x8, _keyscan_open@GOTPAGE
Lloh6:
	ldr	x8, [x8, _keyscan_open@GOTPAGEOFF]
	str	x19, [x0, #24]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh8:
	adrp	x8, _keyscan_close@GOTPAGE
Lloh9:
	ldr	x8, [x8, _keyscan_close@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	str	x0, [x20, #24]
	mov	x0, x20
	bl	_keypad_matrix_key_parse_dt
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldp	w3, w2, [x20, #16]
	mov	x0, #0
	mov	x1, #0
	mov	x4, #0
	mov	x5, x21
	bl	_matrix_keypad_build_keymap
	cbz	w0, LBB0_13
; %bb.5:
	mov	x22, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
Lloh24:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w0, [x20, #12]
	b	LBB0_17
LBB0_15:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.16:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #8]
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_18:
	ldr	w0, [x20, #8]
	bl	_clk_enable
	cbz	w0, LBB0_20
; %bb.19:
	mov	x22, x0
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_20:
	mov	x0, x20
	bl	_keyscan_stop
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x20]
	tbnz	x0, #63, LBB0_8
; %bb.21:
	mov	x1, x0
Lloh31:
	adrp	x8, _keyscan_isr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _keyscan_isr@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	ldr	w4, [x19, #4]
	mov	x0, x19
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_23
; %bb.22:
	mov	x22, x0
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_23:
	mov	x0, x21
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_25
; %bb.24:
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_6
LBB0_25:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	w1, #1
	bl	_device_set_wakeup_capable
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no DT data present\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"keyscan-keys/input0"

	.comm	_keyscan_open,4,2               ; @keyscan_open
	.comm	_keyscan_close,4,2              ; @keyscan_close
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
l_.str.3:                               ; @.str.3
	.asciz	"failed to build keymap\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.4:                               ; @.str.4
	.asciz	"cannot get clock\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to enable clock\n"

	.comm	_keyscan_isr,4,2                ; @keyscan_isr
l_.str.6:                               ; @.str.6
	.asciz	"failed to request IRQ\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to register input device\n"

	.no_dead_strip	_keyscan_probe
.subsections_via_symbols
