	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77650_onkey_probe
_max77650_onkey_probe:                  ## @max77650_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
	movq	(%rdi), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r14
	leaq	8(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_device_property_read_bool
	testq	%rax, %rax
	movq	_EV_SW@GOTPCREL(%rip), %rax
	cmoveq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MAX77650_ONKEY_MODE_SLIDE@GOTPCREL(%rip), %rax
	cmoveq	_MAX77650_ONKEY_MODE_PUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MAX77650_REG_CNFG_GLBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX77650_ONKEY_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:
	movq	%r15, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	leaq	L_.str.4(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.5(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_BUS_I2C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	8(%r14), %edx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_input_set_capability
	movq	_max77650_onkey_falling@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	L_.str.6(%rip), %r8
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %r9
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:
	movq	_max77650_onkey_rising@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	leaq	L_.str.7(%rip), %r8
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r14, %r9
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_16
## %bb.10:
	movq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_register_device          ## TAILCALL
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%r13d, %ebx
	jmp	LBB0_14
LBB0_16:
	movl	%eax, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"linux,code"

	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
L_.str.1:                               ## @.str.1
	.asciz	"maxim,onkey-slide"

	.comm	_MAX77650_ONKEY_MODE_SLIDE,4,2  ## @MAX77650_ONKEY_MODE_SLIDE
	.comm	_EV_SW,4,2                      ## @EV_SW
	.comm	_MAX77650_ONKEY_MODE_PUSH,4,2   ## @MAX77650_ONKEY_MODE_PUSH
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_MAX77650_REG_CNFG_GLBL,4,2     ## @MAX77650_REG_CNFG_GLBL
	.comm	_MAX77650_ONKEY_MODE_MASK,4,2   ## @MAX77650_ONKEY_MODE_MASK
L_.str.2:                               ## @.str.2
	.asciz	"nEN_F"

L_.str.3:                               ## @.str.3
	.asciz	"nEN_R"

L_.str.4:                               ## @.str.4
	.asciz	"max77650_onkey"

L_.str.5:                               ## @.str.5
	.asciz	"max77650_onkey/input0"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_max77650_onkey_falling,4,2     ## @max77650_onkey_falling
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.6:                               ## @.str.6
	.asciz	"onkey-down"

	.comm	_max77650_onkey_rising,4,2      ## @max77650_onkey_rising
L_.str.7:                               ## @.str.7
	.asciz	"onkey-up"

	.no_dead_strip	_max77650_onkey_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77650_onkey_probe
_max77650_onkey_probe:                  ; @max77650_onkey_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x0, [x0]
	mov	x1, #0
	bl	_dev_get_regmap
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x20, x0
	add	x22, x0, #8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_device_property_read_u32
	cbz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
Lloh10:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh12:
	adrp	x9, _EV_SW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EV_SW@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
Lloh14:
	adrp	x8, _MAX77650_ONKEY_MODE_PUSH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX77650_ONKEY_MODE_PUSH@GOTPAGEOFF]
Lloh16:
	adrp	x9, _MAX77650_ONKEY_MODE_SLIDE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAX77650_ONKEY_MODE_SLIDE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
Lloh18:
	adrp	x8, _MAX77650_REG_CNFG_GLBL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX77650_REG_CNFG_GLBL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _MAX77650_ONKEY_MODE_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX77650_ONKEY_MODE_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_regmap_update_bits
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.5:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x21, x0
	tbnz	w0, #31, LBB0_14
; %bb.6:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x23, x0
	tbnz	w0, #31, LBB0_15
; %bb.7:
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.8:
Lloh28:
	adrp	x8, l_.str.4@PAGE
Lloh29:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh30:
	adrp	x9, l_.str.5@PAGE
Lloh31:
	add	x9, x9, l_.str.5@PAGEOFF
	stp	x8, x9, [x0]
Lloh32:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	w2, [x20, #8]
	mov	x1, x22
	bl	_input_set_capability
Lloh35:
	adrp	x8, _max77650_onkey_falling@GOTPAGE
Lloh36:
	ldr	x8, [x8, _max77650_onkey_falling@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x22, _IRQF_ONESHOT@GOTPAGE
Lloh39:
	ldr	x22, [x22, _IRQF_ONESHOT@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh40:
	adrp	x4, l_.str.6@PAGE
Lloh41:
	add	x4, x4, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x5, x20
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_16
; %bb.9:
Lloh42:
	adrp	x8, _max77650_onkey_rising@GOTPAGE
Lloh43:
	ldr	x8, [x8, _max77650_onkey_rising@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	ldr	w3, [x22]
Lloh45:
	adrp	x4, l_.str.7@PAGE
Lloh46:
	add	x4, x4, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x1, x23
	mov	x5, x20
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_16
; %bb.10:
	ldr	x0, [x20]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_input_register_device
LBB0_11:
Lloh47:
	adrp	x8, _ENODEV@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x21, x23
	b	LBB0_14
LBB0_16:
	mov	x21, x0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"linux,code"

	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
l_.str.1:                               ; @.str.1
	.asciz	"maxim,onkey-slide"

	.comm	_MAX77650_ONKEY_MODE_SLIDE,4,2  ; @MAX77650_ONKEY_MODE_SLIDE
	.comm	_EV_SW,4,2                      ; @EV_SW
	.comm	_MAX77650_ONKEY_MODE_PUSH,4,2   ; @MAX77650_ONKEY_MODE_PUSH
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_MAX77650_REG_CNFG_GLBL,4,2     ; @MAX77650_REG_CNFG_GLBL
	.comm	_MAX77650_ONKEY_MODE_MASK,4,2   ; @MAX77650_ONKEY_MODE_MASK
l_.str.2:                               ; @.str.2
	.asciz	"nEN_F"

l_.str.3:                               ; @.str.3
	.asciz	"nEN_R"

l_.str.4:                               ; @.str.4
	.asciz	"max77650_onkey"

l_.str.5:                               ; @.str.5
	.asciz	"max77650_onkey/input0"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_max77650_onkey_falling,4,2     ; @max77650_onkey_falling
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.6:                               ; @.str.6
	.asciz	"onkey-down"

	.comm	_max77650_onkey_rising,4,2      ; @max77650_onkey_rising
l_.str.7:                               ; @.str.7
	.asciz	"onkey-up"

	.no_dead_strip	_max77650_onkey_probe
.subsections_via_symbols
