	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap4_keypad_probe
_omap4_keypad_probe:                    ## @omap4_keypad_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, %r15
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movl	%ebx, (%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_omap4_keypad_parse_dt
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movl	(%r12), %ebx
	movq	%r12, %rdi
	callq	_resource_size
	movl	4(%r15), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_request_mem_region
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	%r15, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_16
LBB0_14:
	movq	_OMAP4_KBD_REVISION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r14), %rdi
	callq	___raw_readl
	sarl	$30, %eax
	leaq	L_.str.6(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_pm_runtime_put_sync
LBB0_15:
	movq	24(%r14), %rdi
	callq	_iounmap
LBB0_16:
	movl	(%r12), %ebx
	movq	%r12, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_release_mem_region
LBB0_17:
	movq	%r14, %rdi
	callq	_kfree
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no base address specified\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"no keyboard irq assigned\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"keypad_data memory allocation failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"can't request mem region\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.4:                               ## @.str.4
	.asciz	"can't ioremap mem resource\n"

L_.str.5:                               ## @.str.5
	.asciz	"pm_runtime_get_sync() failed\n"

	.comm	_OMAP4_KBD_REVISION,8,3         ## @OMAP4_KBD_REVISION
L_.str.6:                               ## @.str.6
	.asciz	"Keypad reports unsupported revision %d"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_omap4_keypad_open,4,2          ## @omap4_keypad_open
	.comm	_omap4_keypad_close,4,2         ## @omap4_keypad_close
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_omap4_keypad_irq_handler,4,2   ## @omap4_keypad_irq_handler
	.comm	_omap4_keypad_irq_thread_fn,4,2 ## @omap4_keypad_irq_thread_fn
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.no_dead_strip	_omap4_keypad_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap4_keypad_probe
_omap4_keypad_probe:                    ; @omap4_keypad_probe
	.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, 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_8
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	cbz	w0, LBB0_9
; %bb.2:
	mov	x22, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.3:
	mov	x19, x0
	str	w22, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_omap4_keypad_parse_dt
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.4:
	ldr	w22, [x21]
	mov	x0, x21
	bl	_resource_size
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x22
	bl	_request_mem_region
	cbz	x0, LBB0_13
; %bb.5:
	mov	x21, x0
	ldr	w22, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x22
	bl	_ioremap
	str	x0, [x19, #24]
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_pm_runtime_get_sync
	cbz	w0, LBB0_15
; %bb.7:
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_16
LBB0_8:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_12:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_13:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh20:
	adrp	x8, _EBUSY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_14:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_15:
	ldr	x8, [x19, #24]
Lloh28:
	adrp	x9, _OMAP4_KBD_REVISION@GOTPAGE
Lloh29:
	ldr	x9, [x9, _OMAP4_KBD_REVISION@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	asr	w8, w0, #30
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x20
	bl	_pm_runtime_put_sync
LBB0_16:
	ldr	x0, [x19, #24]
	bl	_iounmap
LBB0_17:
	ldr	w20, [x21]
	mov	x0, x21
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_release_mem_region
LBB0_18:
	mov	x0, x19
	bl	_kfree
LBB0_19:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no base address specified\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"no keyboard irq assigned\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"keypad_data memory allocation failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"can't request mem region\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.4:                               ; @.str.4
	.asciz	"can't ioremap mem resource\n"

l_.str.5:                               ; @.str.5
	.asciz	"pm_runtime_get_sync() failed\n"

	.comm	_OMAP4_KBD_REVISION,8,3         ; @OMAP4_KBD_REVISION
l_.str.6:                               ; @.str.6
	.asciz	"Keypad reports unsupported revision %d"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_omap4_keypad_open,4,2          ; @omap4_keypad_open
	.comm	_omap4_keypad_close,4,2         ; @omap4_keypad_close
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_omap4_keypad_irq_handler,4,2   ; @omap4_keypad_irq_handler
	.comm	_omap4_keypad_irq_thread_fn,4,2 ; @omap4_keypad_irq_thread_fn
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.no_dead_strip	_omap4_keypad_probe
.subsections_via_symbols
