	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_haptic_probe
_max77693_haptic_probe:                 ## @max77693_haptic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %eax
	movl	%eax, 48(%rbx)
	movq	%r14, 40(%rbx)
	movq	_MAX77693_HAPTIC_LRA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_MAX77693_HAPTIC_EXTERNAL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_platform_get_device_id
	movl	(%rax), %edx
	movl	%edx, 4(%rbx)
	cmpl	$128, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.3:
	addq	$4, %r15
LBB0_4:
	movl	(%r15), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_max77693_haptic_play_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_pwm_get
	movl	%eax, 20(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	20(%rbx), %edi
	jmp	LBB0_12
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	20(%rbx), %edi
	callq	_pwm_apply_args
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	16(%rbx), %edi
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_13:
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	leaq	L_.str.5(%rip), %rcx
	movq	%rcx, (%rax)
	movl	$1, 24(%rax)
	movq	%r14, 16(%rax)
	movq	_max77693_haptic_open@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_max77693_haptic_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_input_set_drvdata
	movq	8(%rbx), %rdi
	movq	_EV_FF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FF_RUMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	movq	8(%rbx), %rdi
	movq	_max77693_haptic_play_effect@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_input_ff_create_memless
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_19
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_17:
	movq	8(%rbx), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
LBB0_19:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_20:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX77693_HAPTIC_LRA,4,2        ## @MAX77693_HAPTIC_LRA
	.comm	_MAX77693_HAPTIC_EXTERNAL_MODE,4,2 ## @MAX77693_HAPTIC_EXTERNAL_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported device type: %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_max77693_haptic_play_work,4,2  ## @max77693_haptic_play_work
L_.str.1:                               ## @.str.1
	.asciz	"failed to get pwm device\n"

L_.str.2:                               ## @.str.2
	.asciz	"haptic"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get regulator\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to allocate input device\n"

L_.str.5:                               ## @.str.5
	.asciz	"max77693-haptic"

	.comm	_max77693_haptic_open,4,2       ## @max77693_haptic_open
	.comm	_max77693_haptic_close,4,2      ## @max77693_haptic_close
	.comm	_EV_FF,4,2                      ## @EV_FF
	.comm	_FF_RUMBLE,4,2                  ## @FF_RUMBLE
	.comm	_max77693_haptic_play_effect,4,2 ## @max77693_haptic_play_effect
L_.str.6:                               ## @.str.6
	.asciz	"failed to create force-feedback\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to register input device\n"

	.no_dead_strip	_max77693_haptic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_haptic_probe
_max77693_haptic_probe:                 ; @max77693_haptic_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
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	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, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	ldr	w8, [x21]
	str	w8, [x0, #48]
	str	x19, [x0, #40]
Lloh3:
	adrp	x8, _MAX77693_HAPTIC_LRA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX77693_HAPTIC_LRA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MAX77693_HAPTIC_EXTERNAL_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX77693_HAPTIC_EXTERNAL_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
	str	wzr, [x0]
	mov	x0, x19
	bl	_platform_get_device_id
	ldr	w8, [x0]
	str	w8, [x20, #4]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
	add	x21, x21, #4
LBB0_4:
	ldr	w8, [x21]
	str	w8, [x20, #28]
	add	x0, x20, #24
Lloh9:
	adrp	x8, _max77693_haptic_play_work@GOTPAGE
Lloh10:
	ldr	x8, [x8, _max77693_haptic_play_work@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x19
	mov	x1, #0
	bl	_devm_pwm_get
	str	w0, [x20, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #20]
	b	LBB0_9
LBB0_6:
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	ldr	w0, [x20, #20]
	bl	_pwm_apply_args
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #16]
LBB0_9:
	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
	b	_PTR_ERR
LBB0_10:
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20, #8]
	cbz	x0, LBB0_13
; %bb.11:
Lloh22:
	adrp	x8, l_.str.5@PAGE
Lloh23:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x0]
	mov	w8, #1
	str	w8, [x0, #24]
	str	x19, [x0, #16]
Lloh24:
	adrp	x8, _max77693_haptic_open@GOTPAGE
Lloh25:
	ldr	x8, [x8, _max77693_haptic_open@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _max77693_haptic_close@GOTPAGE
Lloh28:
	ldr	x9, [x9, _max77693_haptic_close@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	mov	x1, x20
	bl	_input_set_drvdata
	ldr	x0, [x20, #8]
Lloh30:
	adrp	x8, _EV_FF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EV_FF@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _FF_RUMBLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FF_RUMBLE@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	x0, [x20, #8]
Lloh36:
	adrp	x8, _max77693_haptic_play_effect@GOTPAGE
Lloh37:
	ldr	x8, [x8, _max77693_haptic_play_effect@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_input_ff_create_memless
	cbz	w0, LBB0_17
; %bb.12:
	mov	x21, x0
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_13:
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_14:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	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_17:
	ldr	x0, [x20, #8]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_20
; %bb.18:
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_16
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX77693_HAPTIC_LRA,4,2        ; @MAX77693_HAPTIC_LRA
	.comm	_MAX77693_HAPTIC_EXTERNAL_MODE,4,2 ; @MAX77693_HAPTIC_EXTERNAL_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported device type: %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_max77693_haptic_play_work,4,2  ; @max77693_haptic_play_work
l_.str.1:                               ; @.str.1
	.asciz	"failed to get pwm device\n"

l_.str.2:                               ; @.str.2
	.asciz	"haptic"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get regulator\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to allocate input device\n"

l_.str.5:                               ; @.str.5
	.asciz	"max77693-haptic"

	.comm	_max77693_haptic_open,4,2       ; @max77693_haptic_open
	.comm	_max77693_haptic_close,4,2      ; @max77693_haptic_close
	.comm	_EV_FF,4,2                      ; @EV_FF
	.comm	_FF_RUMBLE,4,2                  ; @FF_RUMBLE
	.comm	_max77693_haptic_play_effect,4,2 ; @max77693_haptic_play_effect
l_.str.6:                               ; @.str.6
	.asciz	"failed to create force-feedback\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to register input device\n"

	.no_dead_strip	_max77693_haptic_probe
.subsections_via_symbols
