	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_onkey_probe
_da9052_onkey_probe:                    ## @da9052_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, %r15
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, %r12
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r14
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	%r14, 16(%r12)
	movq	%rbx, 8(%r12)
	movq	_da9052_onkey_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r14)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%r14)
	movq	%r15, 32(%r14)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movq	24(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %esi
	callq	___set_bit
	movq	8(%r12), %rdi
	movq	_DA9052_IRQ_NONKEY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_da9052_onkey_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %r8
	callq	_da9052_request_irq
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	16(%r12), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r12), %rdi
	movl	(%rbx), %esi
	movq	%r12, %rdx
	callq	_da9052_free_irq
	movq	%r12, %rdi
	callq	_cancel_delayed_work_sync
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %r13d
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	%r14, %rdi
	callq	_input_free_device
	movq	%r12, %rdi
	callq	_kfree
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get the driver's data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_da9052_onkey_work,4,2          ## @da9052_onkey_work
L_.str.2:                               ## @.str.2
	.asciz	"da9052-onkey"

L_.str.3:                               ## @.str.3
	.asciz	"da9052-onkey/input0"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_DA9052_IRQ_NONKEY,4,2          ## @DA9052_IRQ_NONKEY
L_.str.4:                               ## @.str.4
	.asciz	"ONKEY"

	.comm	_da9052_onkey_irq,4,2           ## @da9052_onkey_irq
L_.str.5:                               ## @.str.5
	.asciz	"Failed to register ONKEY IRQ: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Unable to register input device, %d\n"

	.no_dead_strip	_da9052_onkey_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_onkey_probe
_da9052_onkey_probe:                    ; @da9052_onkey_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	x21, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	bl	_input_allocate_device
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_4:
	stp	x22, x20, [x19, #8]
Lloh13:
	adrp	x8, _da9052_onkey_work@GOTPAGE
Lloh14:
	ldr	x8, [x8, _da9052_onkey_work@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_DELAYED_WORK
Lloh16:
	adrp	x8, l_.str.2@PAGE
Lloh17:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh18:
	adrp	x9, l_.str.3@PAGE
Lloh19:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x8, x9, [x20]
	str	x21, [x20, #32]
Lloh20:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_BIT_MASK
	ldr	x8, [x20, #24]
	str	w0, [x8]
Lloh23:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	___set_bit
	ldr	x0, [x19, #8]
Lloh26:
	adrp	x23, _DA9052_IRQ_NONKEY@GOTPAGE
Lloh27:
	ldr	x23, [x23, _DA9052_IRQ_NONKEY@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh28:
	adrp	x8, _da9052_onkey_irq@GOTPAGE
Lloh29:
	ldr	x8, [x8, _da9052_onkey_irq@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x2, l_.str.4@PAGE
Lloh32:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x4, x19
	bl	_da9052_request_irq
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	x0, [x19, #16]
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.6:
	str	x22, [sp]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x19, #8]
	ldr	w1, [x23]
	mov	x2, x19
	bl	_da9052_free_irq
	mov	x0, x19
	bl	_cancel_delayed_work_sync
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_8
LBB0_7:
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	str	x22, [sp]
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	bl	_input_free_device
	mov	x0, x19
	bl	_kfree
LBB0_9:
	mov	x0, x22
	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_10:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get the driver's data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_da9052_onkey_work,4,2          ; @da9052_onkey_work
l_.str.2:                               ; @.str.2
	.asciz	"da9052-onkey"

l_.str.3:                               ; @.str.3
	.asciz	"da9052-onkey/input0"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_DA9052_IRQ_NONKEY,4,2          ; @DA9052_IRQ_NONKEY
l_.str.4:                               ; @.str.4
	.asciz	"ONKEY"

	.comm	_da9052_onkey_irq,4,2           ; @da9052_onkey_irq
l_.str.5:                               ; @.str.5
	.asciz	"Failed to register ONKEY IRQ: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Unable to register input device, %d\n"

	.no_dead_strip	_da9052_onkey_probe
.subsections_via_symbols
