	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8997_haptic_probe
_max8997_haptic_probe:                  ## @max8997_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	%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, %r12
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	64(%r15), %rdi
	movq	%rax, %r13
	movq	_max8997_haptic_play_effect_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r15, %rdi
	addq	$60, %rdi
	callq	_mutex_init
	movl	(%rbx), %eax
	movl	%eax, 56(%r15)
	movq	%r12, 48(%r15)
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, 40(%r15)
	movl	28(%r14), %eax
	movl	%eax, 32(%r15)
	movl	24(%r14), %eax
	movl	%eax, 28(%r15)
	movl	(%r14), %edx
	movl	%edx, (%r15)
	movl	20(%r14), %eax
	movl	%eax, 24(%r15)
	cmpl	$129, %edx
	je	LBB0_9
## %bb.7:
	cmpl	$128, %edx
	jne	LBB0_11
## %bb.8:
	movl	16(%r14), %eax
	movl	%eax, 20(%r15)
	movl	12(%r14), %eax
	movl	%eax, 16(%r15)
	movl	8(%r14), %eax
	movl	%eax, 12(%r15)
	jmp	LBB0_13
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_24
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	%rbx, %rdi
	jmp	LBB0_23
LBB0_9:
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_pwm_request
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	4(%r15), %edi
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_22
LBB0_12:
	callq	_pwm_apply_args
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_regulator_get
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	8(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	cmpl	$129, (%r15)
	jne	LBB0_22
LBB0_21:
	movl	4(%r15), %edi
	callq	_pwm_free
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_23:
	callq	_input_free_device
	movq	%r15, %rdi
	callq	_kfree
LBB0_24:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.2(%rip), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movl	$1, 24(%rbx)
	movq	%r12, 16(%rbx)
	movq	_max8997_haptic_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	_EV_FF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FF_RUMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movq	_max8997_haptic_play_effect@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_input_ff_create_memless
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_17:
	movq	%rbx, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_25
## %bb.18:
	movl	%eax, %r13d
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_input_ff_destroy
LBB0_19:
	movl	8(%r15), %edi
	callq	_regulator_put
	cmpl	$129, (%r15)
	je	LBB0_21
	jmp	LBB0_22
LBB0_25:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%r13d, %r13d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no haptic platform data\n"

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

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_max8997_haptic_play_effect_work,4,2 ## @max8997_haptic_play_effect_work
L_.str.2:                               ## @.str.2
	.asciz	"max8997-haptic"

L_.str.3:                               ## @.str.3
	.asciz	"unable to request PWM for haptic, error: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid chip mode specified (%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"inmotor"

L_.str.6:                               ## @.str.6
	.asciz	"unable to get regulator, error: %d\n"

	.comm	_max8997_haptic_close,4,2       ## @max8997_haptic_close
	.comm	_EV_FF,4,2                      ## @EV_FF
	.comm	_FF_RUMBLE,4,2                  ## @FF_RUMBLE
	.comm	_max8997_haptic_play_effect,4,2 ## @max8997_haptic_play_effect
L_.str.7:                               ## @.str.7
	.asciz	"unable to create FF device, error: %d\n"

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

	.no_dead_strip	_max8997_haptic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8997_haptic_probe
_max8997_haptic_probe:                  ; @max8997_haptic_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
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_platdata
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x23, [x0]
	cbz	x23, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	mov	x19, x0
	bl	_input_allocate_device
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_5
; %bb.3:
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]
	b	LBB0_11
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_5:
	add	x0, x19, #64
Lloh12:
	adrp	x8, _max8997_haptic_play_effect_work@GOTPAGE
Lloh13:
	ldr	x8, [x8, _max8997_haptic_play_effect_work@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #60
	bl	_mutex_init
	ldr	w8, [x22]
	str	w8, [x19, #56]
	stp	x20, x21, [x19, #40]
	ldr	w8, [x23, #28]
	str	w8, [x19, #32]
	ldr	w8, [x23]
	str	w8, [x19]
	ldur	d0, [x23, #20]
	str	d0, [x19, #24]
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x23, #16]
	str	w8, [x19, #20]
	ldr	d0, [x23, #8]
	stur	d0, [x19, #12]
	b	LBB0_15
LBB0_8:
	ldr	w0, [x23, #4]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pwm_request
	str	w0, [x19, #4]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #4]
	cbz	x8, LBB0_14
; %bb.9:
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_12
LBB0_10:
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	mov	x0, x20
	bl	_input_free_device
	mov	x0, x19
	bl	_kfree
LBB0_13:
	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_14:
	bl	_pwm_apply_args
LBB0_15:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_regulator_get
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_22
LBB0_17:
Lloh27:
	adrp	x8, l_.str.2@PAGE
Lloh28:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x20]
	mov	w8, #1
	str	w8, [x20, #24]
	str	x21, [x20, #16]
Lloh29:
	adrp	x8, _max8997_haptic_close@GOTPAGE
Lloh30:
	ldr	x8, [x8, _max8997_haptic_close@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_input_set_drvdata
Lloh32:
	adrp	x8, _EV_FF@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EV_FF@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _FF_RUMBLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FF_RUMBLE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_input_set_capability
Lloh38:
	adrp	x8, _max8997_haptic_play_effect@GOTPAGE
Lloh39:
	ldr	x8, [x8, _max8997_haptic_play_effect@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_input_ff_create_memless
	cbz	w0, LBB0_19
; %bb.18:
	mov	x22, x0
	str	x22, [sp]
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_21
LBB0_19:
	mov	x0, x20
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_24
; %bb.20:
	str	x22, [sp]
Lloh43:
	adrp	x1, l_.str.8@PAGE
Lloh44:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x20
	bl	_input_ff_destroy
LBB0_21:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	ldr	w0, [x19, #8]
	bl	_regulator_put
LBB0_22:
	ldr	w8, [x19]
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.23:
	ldr	w0, [x19, #4]
	bl	_pwm_free
	b	LBB0_12
LBB0_24:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no haptic platform data\n"

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

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_max8997_haptic_play_effect_work,4,2 ; @max8997_haptic_play_effect_work
l_.str.2:                               ; @.str.2
	.asciz	"max8997-haptic"

l_.str.3:                               ; @.str.3
	.asciz	"unable to request PWM for haptic, error: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid chip mode specified (%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"inmotor"

l_.str.6:                               ; @.str.6
	.asciz	"unable to get regulator, error: %d\n"

	.comm	_max8997_haptic_close,4,2       ; @max8997_haptic_close
	.comm	_EV_FF,4,2                      ; @EV_FF
	.comm	_FF_RUMBLE,4,2                  ; @FF_RUMBLE
	.comm	_max8997_haptic_play_effect,4,2 ; @max8997_haptic_play_effect
l_.str.7:                               ; @.str.7
	.asciz	"unable to create FF device, error: %d\n"

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

	.no_dead_strip	_max8997_haptic_probe
.subsections_via_symbols
