	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ep93xx_keypad_probe
_ep93xx_keypad_probe:                   ## @ep93xx_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	8(%rax), %r13
	testq	%r13, %r13
	je	LBB0_3
## %bb.6:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, 12(%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	4(%r14), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_request_mem_region
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r15
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	callq	_ep93xx_keypad_acquire_gpio
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.14:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_clk_get
	movl	%eax, 8(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	8(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_31
LBB0_7:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_16:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, 32(%r12)
	movl	4(%r14), %ecx
	movl	%ecx, 28(%rax)
	movq	_BUS_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_ep93xx_keypad_open@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_ep93xx_keypad_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%r14, 8(%rax)
	movq	_EP93XX_MATRIX_ROWS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_EP93XX_MATRIX_COLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	24(%r12), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%rax, %r13
	movq	%rax, %r9
	callq	_matrix_keypad_build_keymap
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.19:
	movq	16(%r12), %rax
	movq	_EP93XX_KEYPAD_AUTOREPEAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_21
## %bb.20:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
LBB0_21:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_input_set_drvdata
	movl	12(%r12), %edi
	movq	_ep93xx_keypad_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %ecx
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.22:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_23
## %bb.24:
	movl	%eax, %ebx
	movl	12(%r12), %edi
	movq	%r12, %rsi
	callq	_free_irq
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_25:
	movq	%r13, %rdi
	callq	_input_free_device
	jmp	LBB0_26
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_26:
	movl	8(%r12), %edi
	callq	_clk_put
LBB0_27:
	movq	%r14, %rdi
	callq	_ep93xx_keypad_release_gpio
LBB0_28:
	movq	(%r12), %rdi
	callq	_iounmap
LBB0_29:
	movl	(%r15), %r14d
	movq	%r15, %rdi
	callq	_resource_size
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_release_mem_region
LBB0_30:
	movq	%r12, %rdi
	callq	_kfree
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	xorl	%ebx, %ebx
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_ep93xx_keypad_open,4,2         ## @ep93xx_keypad_open
	.comm	_ep93xx_keypad_close,4,2        ## @ep93xx_keypad_close
	.comm	_EP93XX_MATRIX_ROWS,4,2         ## @EP93XX_MATRIX_ROWS
	.comm	_EP93XX_MATRIX_COLS,4,2         ## @EP93XX_MATRIX_COLS
	.comm	_EP93XX_KEYPAD_AUTOREPEAT,4,2   ## @EP93XX_KEYPAD_AUTOREPEAT
	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_ep93xx_keypad_irq_handler,4,2  ## @ep93xx_keypad_irq_handler
	.no_dead_strip	_ep93xx_keypad_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ep93xx_keypad_probe
_ep93xx_keypad_probe:                   ; @ep93xx_keypad_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_dev_get_platdata
	str	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.2:
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_10
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x19, #12]
	cbz	w0, LBB0_12
; %bb.4:
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w21, [x0]
	bl	_resource_size
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_request_mem_region
	cbz	x0, LBB0_16
; %bb.6:
	mov	x21, x0
	ldr	w23, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x23
	bl	_ioremap
	str	x0, [x19]
	cbz	x0, LBB0_17
; %bb.7:
	mov	x0, x20
	bl	_ep93xx_keypad_acquire_gpio
	mov	x23, x0
	cbnz	w0, LBB0_29
; %bb.8:
	mov	x0, x20
	mov	x1, #0
	bl	_clk_get
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.9:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_28
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_12:
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_14:
	mov	x0, x19
	bl	_kfree
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:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
Lloh15:
	adrp	x8, _ENXIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_30
LBB0_18:
	bl	_input_allocate_device
	cbz	x0, LBB0_26
; %bb.19:
	mov	x24, x0
	str	x0, [x19, #32]
	ldr	w8, [x20, #4]
Lloh18:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh21:
	adrp	x8, _ep93xx_keypad_open@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ep93xx_keypad_open@GOTPAGEOFF]
Lloh23:
	adrp	x9, _ep93xx_keypad_close@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ep93xx_keypad_close@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh27:
	adrp	x8, _EP93XX_MATRIX_ROWS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EP93XX_MATRIX_ROWS@GOTPAGEOFF]
	str	x20, [x0, #8]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _EP93XX_MATRIX_COLS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EP93XX_MATRIX_COLS@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	ldr	w4, [x19, #24]
	mov	x0, x22
	mov	x1, #0
	mov	x5, x24
	bl	_matrix_keypad_build_keymap
	mov	x23, x0
	cbnz	w0, LBB0_25
; %bb.20:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _EP93XX_KEYPAD_AUTOREPEAT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _EP93XX_KEYPAD_AUTOREPEAT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
Lloh36:
	adrp	x8, _EV_REP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	___set_bit
LBB0_22:
	mov	x0, x24
	mov	x1, x19
	bl	_input_set_drvdata
	ldr	w0, [x19, #12]
Lloh39:
	adrp	x8, _ep93xx_keypad_irq_handler@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ep93xx_keypad_irq_handler@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	ldr	w3, [x20, #4]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x23, x0
	cbnz	w0, LBB0_25
; %bb.23:
	mov	x0, x24
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_31
; %bb.24:
	ldr	w0, [x19, #12]
	mov	x1, x19
	bl	_free_irq
LBB0_25:
	mov	x0, x24
	bl	_input_free_device
	b	LBB0_27
LBB0_26:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_27:
	ldr	w0, [x19, #8]
	bl	_clk_put
LBB0_28:
	mov	x0, x20
	bl	_ep93xx_keypad_release_gpio
LBB0_29:
	ldr	x0, [x19]
	bl	_iounmap
LBB0_30:
	ldr	w20, [x21]
	mov	x0, x21
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_release_mem_region
	b	LBB0_14
LBB0_31:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	w1, #1
	bl	_device_init_wakeup
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_ep93xx_keypad_open,4,2         ; @ep93xx_keypad_open
	.comm	_ep93xx_keypad_close,4,2        ; @ep93xx_keypad_close
	.comm	_EP93XX_MATRIX_ROWS,4,2         ; @EP93XX_MATRIX_ROWS
	.comm	_EP93XX_MATRIX_COLS,4,2         ; @EP93XX_MATRIX_COLS
	.comm	_EP93XX_KEYPAD_AUTOREPEAT,4,2   ; @EP93XX_KEYPAD_AUTOREPEAT
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_ep93xx_keypad_irq_handler,4,2  ; @ep93xx_keypad_irq_handler
	.no_dead_strip	_ep93xx_keypad_probe
.subsections_via_symbols
