	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_pek_probe_input_device
_axp20x_pek_probe_input_device:         ## @axp20x_pek_probe_input_device
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, %rbx
	movl	%ebx, (%r15)
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.1:
	movl	8(%r12), %edi
	movl	%ebx, %esi
	callq	_regmap_irq_get_virq
	movl	%eax, (%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, %rbx
	movl	%ebx, 4(%r15)
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.2:
	movl	8(%r12), %edi
	movl	%ebx, %esi
	callq	_regmap_irq_get_virq
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r12)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%r12)
	movq	%r14, 16(%r12)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movl	(%r15), %esi
	movq	_axp20x_pek_irq@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %r8
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movl	4(%r15), %esi
	movl	(%r13), %edx
	leaq	L_.str.6(%rip), %r8
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %ebx
	movl	(%r15), %edx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	movl	%eax, %ebx
	movl	4(%r15), %edx
	leaq	L_.str.7(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_AXP288_ID@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movl	(%r15), %edi
	callq	_enable_irq_wake
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PEK_DBR"

L_.str.1:                               ## @.str.1
	.asciz	"PEK_DBF"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"axp20x-pek"

L_.str.3:                               ## @.str.3
	.asciz	"m1kbd/input2"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_axp20x_pek_irq,4,2             ## @axp20x_pek_irq
L_.str.4:                               ## @.str.4
	.asciz	"axp20x-pek-dbr"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to request dbr IRQ#%d: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"axp20x-pek-dbf"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to request dbf IRQ#%d: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"Can't register input device: %d\n"

	.comm	_AXP288_ID,8,3                  ## @AXP288_ID
	.no_dead_strip	_axp20x_pek_probe_input_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_pek_probe_input_device
_axp20x_pek_probe_input_device:         ; @axp20x_pek_probe_input_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x21, x0
	str	w0, [x20]
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	w0, [x22, #8]
	mov	x1, x21
	bl	_regmap_irq_get_virq
	str	w0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x21, x0
	str	w21, [x20, #4]
	tbnz	w21, #31, LBB0_11
; %bb.2:
	ldr	w0, [x22, #8]
	mov	x1, x21
	bl	_regmap_irq_get_virq
	str	w0, [x20, #4]
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20, #16]
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, l_.str.3@PAGE
Lloh7:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x8, x9, [x0]
	str	x19, [x0, #16]
Lloh8:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_input_set_capability
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
	ldr	w1, [x20]
Lloh14:
	adrp	x23, _axp20x_pek_irq@GOTPAGE
Lloh15:
	ldr	x23, [x23, _axp20x_pek_irq@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh16:
	adrp	x4, l_.str.4@PAGE
Lloh17:
	add	x4, x4, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	mov	x5, x21
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	w1, [x20, #4]
	ldr	w2, [x23]
Lloh18:
	adrp	x4, l_.str.6@PAGE
Lloh19:
	add	x4, x4, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	mov	x5, x21
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_input_register_device
	cbz	w0, LBB0_12
; %bb.6:
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.8@PAGE
Lloh21:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_11
LBB0_7:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_8:
	mov	x22, x0
	ldr	w2, [x20]
	str	x22, [sp]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x22, x0
	ldr	w2, [x20, #4]
	str	x22, [sp]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
	mov	x21, x22
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _AXP288_ID@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AXP288_ID@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	w0, [x20]
	bl	_enable_irq_wake
LBB0_14:
	mov	w21, #0
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PEK_DBR"

l_.str.1:                               ; @.str.1
	.asciz	"PEK_DBF"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"axp20x-pek"

l_.str.3:                               ; @.str.3
	.asciz	"m1kbd/input2"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_axp20x_pek_irq,4,2             ; @axp20x_pek_irq
l_.str.4:                               ; @.str.4
	.asciz	"axp20x-pek-dbr"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to request dbr IRQ#%d: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"axp20x-pek-dbf"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to request dbf IRQ#%d: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"Can't register input device: %d\n"

	.comm	_AXP288_ID,8,3                  ; @AXP288_ID
	.no_dead_strip	_axp20x_pek_probe_input_device
.subsections_via_symbols
