	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9063_onkey_probe
_da9063_onkey_probe:                    ## @da9063_onkey_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	_da9063_compatible_reg_id_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	%rax, 24(%r15)
	movq	%r14, 40(%r15)
	movl	4(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 32(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_of_property_read_bool
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, (%r15)
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	24(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movl	20(%r15), %edi
	leaq	L_.str.4(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	20(%r15), %eax
	movq	8(%r15), %rdi
	movl	%eax, 16(%rdi)
	movq	%r14, 8(%rdi)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	movq	%r15, %rdi
	addq	$16, %rdi
	movq	_da9063_poll_on@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	_da9063_cancel_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_add_action
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	movq	_da9063_onkey_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%r15, (%rsp)
	leaq	L_.str.6(%rip), %r9
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %ebx
	jmp	LBB0_12
LBB0_16:
	movl	%r12d, %ebx
	jmp	LBB0_12
LBB0_17:
	movq	8(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_12
## %bb.18:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_da9063_compatible_reg_id_table,4,2 ## @da9063_compatible_reg_id_table
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memory.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Parent regmap unavailable.\n"

L_.str.2:                               ## @.str.2
	.asciz	"dlg,disable-key-power"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocated input device.\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s/input0"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_da9063_poll_on,4,2             ## @da9063_poll_on
	.comm	_da9063_cancel_poll,4,2         ## @da9063_cancel_poll
L_.str.5:                               ## @.str.5
	.asciz	"Failed to add cancel poll action: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"ONKEY"

	.comm	_da9063_onkey_irq_handler,4,2   ## @da9063_onkey_irq_handler
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.7:                               ## @.str.7
	.asciz	"Failed to request IRQ %d: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to register input device: %d\n"

	.no_dead_strip	_da9063_onkey_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9063_onkey_probe
_da9063_onkey_probe:                    ; @da9063_onkey_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	x19, x0
Lloh0:
	adrp	x8, _da9063_compatible_reg_id_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _da9063_compatible_reg_id_table@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_of_match_node
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [x0, #24]
	str	x19, [x0, #40]
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x20, #32]
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_property_read_bool
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20]
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.4:
	ldr	x8, [x20, #24]
	ldr	x3, [x8]
	str	x3, [x0]
	ldr	w0, [x20, #20]
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w8, [x20, #20]
	ldr	x0, [x20, #8]
	str	w8, [x0, #16]
	str	x19, [x0, #8]
Lloh10:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_input_set_capability
	add	x0, x20, #16
Lloh16:
	adrp	x8, _da9063_poll_on@GOTPAGE
Lloh17:
	ldr	x8, [x8, _da9063_poll_on@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh19:
	adrp	x8, _da9063_cancel_poll@GOTPAGE
Lloh20:
	ldr	x8, [x8, _da9063_cancel_poll@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action
	cbz	w0, LBB0_13
; %bb.5:
	mov	x21, x0
	str	x21, [sp]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_6:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
Lloh28:
	adrp	x8, _ENXIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	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
LBB0_13:
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x21, x0
	tbnz	w0, #31, LBB0_12
; %bb.14:
Lloh36:
	adrp	x8, _da9063_onkey_irq_handler@GOTPAGE
Lloh37:
	ldr	x8, [x8, _da9063_onkey_irq_handler@GOTPAGEOFF]
Lloh38:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	ldr	w8, [x9]
Lloh42:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh45:
	adrp	x5, l_.str.6@PAGE
Lloh46:
	add	x5, x5, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x22, [sp]
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x22
	b	LBB0_12
LBB0_16:
	ldr	x0, [x20, #8]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.17:
	str	x21, [sp]
Lloh49:
	adrp	x1, l_.str.8@PAGE
Lloh50:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_da9063_compatible_reg_id_table,4,2 ; @da9063_compatible_reg_id_table
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memory.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Parent regmap unavailable.\n"

l_.str.2:                               ; @.str.2
	.asciz	"dlg,disable-key-power"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocated input device.\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s/input0"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_da9063_poll_on,4,2             ; @da9063_poll_on
	.comm	_da9063_cancel_poll,4,2         ; @da9063_cancel_poll
l_.str.5:                               ; @.str.5
	.asciz	"Failed to add cancel poll action: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"ONKEY"

	.comm	_da9063_onkey_irq_handler,4,2   ; @da9063_onkey_irq_handler
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.7:                               ; @.str.7
	.asciz	"Failed to request IRQ %d: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to register input device: %d\n"

	.no_dead_strip	_da9063_onkey_probe
.subsections_via_symbols
