	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_parse_device_properties
_mxt_parse_device_properties:           ## @mxt_parse_device_properties
	.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, %r15
	movq	16(%rdi), %rbx
	leaq	_mxt_parse_device_properties.keymap_property(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_property_present
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	leaq	_mxt_parse_device_properties.keymap_property(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_property_count_u32
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_devm_kmalloc_array
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	leaq	_mxt_parse_device_properties.keymap_property(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	callq	_device_property_read_u32_array
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	leaq	_mxt_parse_device_properties.keymap_property(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	movl	%eax, %r14d
	callq	_dev_err
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%r12d, %r12d
	cmovnel	%r12d, %r14d
	leaq	L_.str(%rip), %rsi
	leaq	_mxt_parse_device_properties.keymap_property(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_dev_err
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_7:
	movq	%r13, 8(%r15)
	movl	%r12d, (%r15)
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @mxt_parse_device_properties.keymap_property
_mxt_parse_device_properties.keymap_property:
	.asciz	"linux,gpio-keymap"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid/malformed '%s' property: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"failed to parse '%s' property: %d\n"

	.no_dead_strip	_mxt_parse_device_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_parse_device_properties
_mxt_parse_device_properties:           ; @mxt_parse_device_properties
	.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	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x1, _mxt_parse_device_properties.keymap_property@PAGE
Lloh1:
	add	x1, x1, _mxt_parse_device_properties.keymap_property@PAGEOFF
	mov	x0, x19
	bl	_device_property_present
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, _mxt_parse_device_properties.keymap_property@PAGE
Lloh3:
	add	x1, x1, _mxt_parse_device_properties.keymap_property@PAGEOFF
	mov	x0, x19
	bl	_device_property_count_u32
	mov	x22, x0
	cmp	w0, #0
	b.le	LBB0_6
; %bb.2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #4
	bl	_devm_kmalloc_array
	cbz	x0, LBB0_8
; %bb.3:
	mov	x23, x0
Lloh7:
	adrp	x1, _mxt_parse_device_properties.keymap_property@PAGE
Lloh8:
	add	x1, x1, _mxt_parse_device_properties.keymap_property@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	bl	_device_property_read_u32_array
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	csneg	w21, w22, w8, ne
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
Lloh16:
	adrp	x2, _mxt_parse_device_properties.keymap_property@PAGE
Lloh17:
	add	x2, x2, _mxt_parse_device_properties.keymap_property@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_dev_err
	b	LBB0_10
LBB0_8:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_9:
	str	x23, [x20, #8]
	str	w22, [x20]
LBB0_10:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_mxt_parse_device_properties.keymap_property: ; @mxt_parse_device_properties.keymap_property
	.asciz	"linux,gpio-keymap"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid/malformed '%s' property: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"failed to parse '%s' property: %d\n"

	.no_dead_strip	_mxt_parse_device_properties
.subsections_via_symbols
