	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc32xx_parse_dt
_lpc32xx_parse_dt:                      ## @lpc32xx_parse_dt
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_matrix_keypad_parse_properties
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	-40(%rbp), %rdi
	cmpq	-32(%rbp), %rdi
	jne	LBB0_2
## %bb.3:
	movq	%rdi, 16(%r14)
	callq	_get_count_order
	movl	%eax, 8(%r14)
	leaq	4(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_of_property_read_u32
	leaq	L_.str.3(%rip), %rsi
	cmpl	$0, 4(%r14)
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	jne	LBB0_6
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rows and columns must be equal!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"nxp,debounce-delay-ms"

L_.str.2:                               ## @.str.2
	.asciz	"nxp,scan-delay-ms"

L_.str.3:                               ## @.str.3
	.asciz	"debounce or scan delay not specified\n"

	.no_dead_strip	_lpc32xx_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc32xx_parse_dt
_lpc32xx_parse_dt:                      ; @lpc32xx_parse_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	stp	xzr, xzr, [sp]
	add	x1, sp, #8
	mov	x2, sp
	bl	_matrix_keypad_parse_properties
	cbnz	w0, LBB0_8
; %bb.1:
	ldp	x8, x0, [sp]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	str	x0, [x20, #16]
	bl	_get_count_order
	str	w0, [x20, #8]
	add	x2, x20, #4
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_of_property_read_u32
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rows and columns must be equal!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"nxp,debounce-delay-ms"

l_.str.2:                               ; @.str.2
	.asciz	"nxp,scan-delay-ms"

l_.str.3:                               ; @.str.3
	.asciz	"debounce or scan delay not specified\n"

	.no_dead_strip	_lpc32xx_parse_dt
.subsections_via_symbols
