	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc32xx_kscan_probe
_lpc32xx_kscan_probe:                   ## @lpc32xx_kscan_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, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$40, %esi
	movq	%r12, %rdi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_lpc32xx_parse_dt
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movl	(%r14), %eax
	movb	4(%r14), %cl
	shll	%cl, %eax
	movslq	%eax, %rsi
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_devm_kzalloc
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%r12, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	4(%r12), %ecx
	movl	%ecx, 36(%rax)
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, (%rax)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 24(%rax)
	movl	$256, 32(%rax)                  ## imm = 0x100
	movq	_lpc32xx_kscan_open@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_lpc32xx_kscan_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%r12, 8(%rax)
	movq	_EV_MSC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_input_set_capability
	movl	(%r14), %ecx
	movq	32(%r14), %r8
	movq	16(%r14), %r9
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%ecx, %edx
	callq	_matrix_keypad_build_keymap
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_5
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	16(%r14), %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 28(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	28(%r14), %edi
	jmp	LBB0_20
LBB0_18:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 24(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	24(%r14), %edi
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_21:
	movl	24(%r14), %edi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.22:
	movl	8(%r14), %ebx
	movl	28(%r14), %edi
	callq	_LPC32XX_KS_DEB
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	12(%r14), %ebx
	movl	28(%r14), %edi
	callq	_LPC32XX_KS_SCAN_CTL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_LPC32XX_KSCAN_FTST_USE32K_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	28(%r14), %edi
	callq	_LPC32XX_KS_FAST_TST
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	(%r14), %ebx
	movl	28(%r14), %edi
	callq	_LPC32XX_KS_MATRIX_DIM
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	28(%r14), %edi
	callq	_LPC32XX_KS_IRQ
	movl	$1, %edi
	movl	%eax, %esi
	callq	_writel
	movl	24(%r14), %edi
	callq	_clk_disable_unprepare
	movq	_lpc32xx_kscan_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r12), %r8d
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_5
LBB0_24:
	movq	16(%r14), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_5
LBB0_26:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get platform I/O memory\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 parse device tree\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to allocate input device\n"

L_.str.3:                               ## @.str.3
	.asciz	"lpc32xx/input0"

	.comm	_lpc32xx_kscan_open,4,2         ## @lpc32xx_kscan_open
	.comm	_lpc32xx_kscan_close,4,2        ## @lpc32xx_kscan_close
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
L_.str.4:                               ## @.str.4
	.asciz	"failed to build keymap\n"

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

	.comm	_LPC32XX_KSCAN_FTST_USE32K_CLK,4,2 ## @LPC32XX_KSCAN_FTST_USE32K_CLK
	.comm	_lpc32xx_kscan_irq,4,2          ## @lpc32xx_kscan_irq
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	_lpc32xx_kscan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc32xx_kscan_probe
_lpc32xx_kscan_probe:                   ; @lpc32xx_kscan_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
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_lpc32xx_parse_dt
	cbz	w0, LBB0_8
; %bb.4:
	mov	x23, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_6:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	ldp	w8, w9, [x20]
	lsl	w8, w8, w9
	sxtw	x1, w8
	ldr	w2, [x24]
	mov	x0, x19
	bl	_devm_kzalloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w8, [x19, #4]
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
	movi.2s	v0, #1
	str	d0, [x0, #24]
	mov	w10, #256
	stp	w10, w8, [x0, #32]
Lloh13:
	adrp	x8, _lpc32xx_kscan_open@GOTPAGE
Lloh14:
	ldr	x8, [x8, _lpc32xx_kscan_open@GOTPAGEOFF]
Lloh15:
	adrp	x10, _lpc32xx_kscan_close@GOTPAGE
Lloh16:
	ldr	x10, [x10, _lpc32xx_kscan_close@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w10, [x10]
	stp	w10, w8, [x0, #16]
	stp	x9, x19, [x0]
Lloh19:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	w2, [x20]
	ldr	x4, [x20, #32]
	ldr	x5, [x20, #16]
	mov	x0, #0
	mov	x1, #0
	mov	x3, x2
	bl	_matrix_keypad_build_keymap
	cbz	w0, LBB0_16
; %bb.11:
	mov	x23, x0
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_12:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w23, w8
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	x0, [x20, #16]
	mov	x1, x20
	bl	_input_set_drvdata
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	w0, [x20, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w0, [x20, #28]
	b	LBB0_20
LBB0_18:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.19:
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #24]
LBB0_20:
	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_21:
	ldr	w0, [x20, #24]
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.22:
	ldr	w22, [x20, #8]
	ldr	w0, [x20, #28]
	bl	_LPC32XX_KS_DEB
	mov	x1, x0
	mov	x0, x22
	bl	_writel
	ldr	w22, [x20, #12]
	ldr	w0, [x20, #28]
	bl	_LPC32XX_KS_SCAN_CTL
	mov	x1, x0
	mov	x0, x22
	bl	_writel
Lloh33:
	adrp	x8, _LPC32XX_KSCAN_FTST_USE32K_CLK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LPC32XX_KSCAN_FTST_USE32K_CLK@GOTPAGEOFF]
Lloh35:
	ldr	w22, [x8]
	ldr	w0, [x20, #28]
	bl	_LPC32XX_KS_FAST_TST
	mov	x1, x0
	mov	x0, x22
	bl	_writel
	ldr	w22, [x20]
	ldr	w0, [x20, #28]
	bl	_LPC32XX_KS_MATRIX_DIM
	mov	x1, x0
	mov	x0, x22
	bl	_writel
	ldr	w0, [x20, #28]
	bl	_LPC32XX_KS_IRQ
	mov	x1, x0
	mov	w0, #1
	bl	_writel
	ldr	w0, [x20, #24]
	bl	_clk_disable_unprepare
Lloh36:
	adrp	x8, _lpc32xx_kscan_irq@GOTPAGE
Lloh37:
	ldr	x8, [x8, _lpc32xx_kscan_irq@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	ldr	w4, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_24
; %bb.23:
	mov	x23, x0
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_5
LBB0_24:
	ldr	x0, [x20, #16]
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_26
; %bb.25:
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_5
LBB0_26:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get platform I/O memory\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 parse device tree\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to allocate input device\n"

l_.str.3:                               ; @.str.3
	.asciz	"lpc32xx/input0"

	.comm	_lpc32xx_kscan_open,4,2         ; @lpc32xx_kscan_open
	.comm	_lpc32xx_kscan_close,4,2        ; @lpc32xx_kscan_close
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
l_.str.4:                               ; @.str.4
	.asciz	"failed to build keymap\n"

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

	.comm	_LPC32XX_KSCAN_FTST_USE32K_CLK,4,2 ; @LPC32XX_KSCAN_FTST_USE32K_CLK
	.comm	_lpc32xx_kscan_irq,4,2          ; @lpc32xx_kscan_irq
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	_lpc32xx_kscan_probe
.subsections_via_symbols
