	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_ponkey_probe
_ab8500_ponkey_probe:                   ## @ab8500_ponkey_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, %rbx
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, 8(%r12)
	movq	%r14, 16(%r12)
	movl	%r15d, (%r12)
	movl	%r13d, 4(%r12)
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%rbx, 8(%rax)
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_KEY_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_input_set_capability
	movl	(%r12), %esi
	movq	_ab8500_ponkey_handler@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %r8
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	4(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.5(%rip), %r8
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	8(%r12), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_2:
	movl	%r13d, %r15d
	jmp	LBB0_13
LBB0_7:
	movl	%eax, %r15d
	movl	(%r14), %edi
	movl	(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_9:
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	4(%r12), %edx
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movl	%ebx, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ONKEY_DBF"

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

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"AB8500 POn(PowerOn) Key"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_ab8500_ponkey_handler,4,2      ## @ab8500_ponkey_handler
L_.str.3:                               ## @.str.3
	.asciz	"ab8500-ponkey-dbf"

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

L_.str.5:                               ## @.str.5
	.asciz	"ab8500-ponkey-dbr"

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

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

	.no_dead_strip	_ab8500_ponkey_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_ponkey_probe
_ab8500_ponkey_probe:                   ; @ab8500_ponkey_probe
	.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	x20, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x21, x0
	tbnz	w0, #31, LBB0_13
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x23, x0
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
	mov	x0, x20
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_8
; %bb.4:
	stp	x0, x19, [x22, #8]
	stp	w21, w23, [x22]
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
	stp	x8, x20, [x0]
Lloh9:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	w1, [x22]
Lloh15:
	adrp	x23, _ab8500_ponkey_handler@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ab8500_ponkey_handler@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh17:
	adrp	x4, l_.str.3@PAGE
Lloh18:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	mov	x5, x22
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	w1, [x22, #4]
	ldr	w2, [x23]
Lloh19:
	adrp	x4, l_.str.5@PAGE
Lloh20:
	add	x4, x4, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	mov	x5, x22
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_12
; %bb.6:
	ldr	x0, [x22, #8]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.7:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x21
	b	LBB0_11
LBB0_8:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_9:
	mov	x21, x23
	b	LBB0_13
LBB0_10:
	mov	x21, x0
	ldr	w0, [x19]
	ldr	w2, [x22]
	str	x21, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_11:
	bl	_dev_err
	b	LBB0_13
LBB0_12:
	mov	x21, x0
	ldr	w0, [x19]
	ldr	w2, [x22, #4]
	str	x21, [sp]
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_13:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ONKEY_DBF"

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

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"AB8500 POn(PowerOn) Key"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_ab8500_ponkey_handler,4,2      ; @ab8500_ponkey_handler
l_.str.3:                               ; @.str.3
	.asciz	"ab8500-ponkey-dbf"

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

l_.str.5:                               ; @.str.5
	.asciz	"ab8500-ponkey-dbr"

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

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

	.no_dead_strip	_ab8500_ponkey_probe
.subsections_via_symbols
