	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9055_onkey_probe
_da9055_onkey_probe:                    ## @da9055_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, %r13
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_platform_get_irq_byname
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r15
	movq	%rax, 16(%r12)
	movq	%r14, 8(%r12)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r15)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%r13, 32(%r15)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movq	24(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	___set_bit
	movq	_da9055_onkey_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_da9055_onkey_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_free_irq
	movq	%r12, %rdi
	callq	_cancel_delayed_work_sync
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movq	%r15, %rdi
	callq	_input_free_device
	jmp	LBB0_12
LBB0_13:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %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"

	.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
L_.str.2:                               ## @.str.2
	.asciz	"da9055-onkey"

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

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_da9055_onkey_work,4,2          ## @da9055_onkey_work
	.comm	_da9055_onkey_irq,4,2           ## @da9055_onkey_irq
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register ONKEY IRQ %d, error = %d\n"

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

	.no_dead_strip	_da9055_onkey_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9055_onkey_probe
_da9055_onkey_probe:                    ; @da9055_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	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	bl	_input_allocate_device
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	stp	x23, x0, [x22, #8]
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x8, x9, [x0]
	str	x19, [x0, #32]
Lloh9:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT_MASK
	ldr	x8, [x20, #24]
	str	w0, [x8]
Lloh12:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	___set_bit
Lloh15:
	adrp	x8, _da9055_onkey_work@GOTPAGE
Lloh16:
	ldr	x8, [x8, _da9055_onkey_work@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_INIT_DELAYED_WORK
Lloh18:
	adrp	x8, _da9055_onkey_irq@GOTPAGE
Lloh19:
	ldr	x8, [x8, _da9055_onkey_irq@GOTPAGEOFF]
Lloh20:
	adrp	x9, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	ldr	w8, [x9]
Lloh24:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh27:
	adrp	x4, l_.str@PAGE
Lloh28:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	x5, x22
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_12
; %bb.5:
	str	x23, [sp]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	mov	x1, x22
	bl	_free_irq
	mov	x0, x22
	bl	_cancel_delayed_work_sync
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_11
LBB0_6:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh35:
	adrp	x8, _EINVAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x23
	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	x23, x0
	stp	x21, x23, [sp]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_11:
	mov	x0, x20
	bl	_input_free_device
	b	LBB0_9
LBB0_12:
	mov	x0, x19
	mov	x1, x22
	bl	_platform_set_drvdata
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ONKEY"

	.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
l_.str.2:                               ; @.str.2
	.asciz	"da9055-onkey"

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

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_da9055_onkey_work,4,2          ; @da9055_onkey_work
	.comm	_da9055_onkey_irq,4,2           ; @da9055_onkey_irq
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register ONKEY IRQ %d, error = %d\n"

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

	.no_dead_strip	_da9055_onkey_probe
.subsections_via_symbols
