	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm355evm_keys_probe
_dm355evm_keys_probe:                   ## @dm355evm_keys_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r14, 8(%r15)
	movq	%rax, (%r15)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%r12)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movl	$853, 16(%r12)                  ## imm = 0x355
	movq	_DM355EVM_MSP_FIRMREV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dm355evm_msp_read
	movl	%eax, 20(%r12)
	movq	_dm355evm_keys@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sparse_keymap_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_dm355evm_keys_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_register_device          ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DM355 EVM Controls"

L_.str.1:                               ## @.str.1
	.asciz	"dm355evm/input0"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_DM355EVM_MSP_FIRMREV,4,2       ## @DM355EVM_MSP_FIRMREV
	.comm	_dm355evm_keys,4,2              ## @dm355evm_keys
	.comm	_dm355evm_keys_irq,4,2          ## @dm355evm_keys_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.no_dead_strip	_dm355evm_keys_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm355evm_keys_probe
_dm355evm_keys_probe:                   ; @dm355evm_keys_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, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x0, x19, [x21]
	stp	x8, x9, [x0]
Lloh7:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	mov	w8, #853
	str	w8, [x0, #16]
Lloh10:
	adrp	x8, _DM355EVM_MSP_FIRMREV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DM355EVM_MSP_FIRMREV@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_dm355evm_msp_read
	str	w0, [x20, #20]
Lloh13:
	adrp	x8, _dm355evm_keys@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dm355evm_keys@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_sparse_keymap_setup
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh16:
	adrp	x8, _dm355evm_keys_irq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dm355evm_keys_irq@GOTPAGEOFF]
Lloh18:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
Lloh21:
	ldr	w8, [x9]
Lloh22:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w24, w9, w8
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	x3, x23
	mov	x4, x24
	mov	x6, x21
	bl	_devm_request_threaded_irq
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x20
	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	_input_register_device
LBB0_6:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DM355 EVM Controls"

l_.str.1:                               ; @.str.1
	.asciz	"dm355evm/input0"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_DM355EVM_MSP_FIRMREV,4,2       ; @DM355EVM_MSP_FIRMREV
	.comm	_dm355evm_keys,4,2              ; @dm355evm_keys
	.comm	_dm355evm_keys_irq,4,2          ; @dm355evm_keys_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.no_dead_strip	_dm355evm_keys_probe
.subsections_via_symbols
