	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drv2665_probe
_drv2665_probe:                         ## @drv2665_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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 28(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	28(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_17
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_5:
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, (%rax)
	movl	(%r14), %ecx
	movl	%ecx, 12(%rax)
	movq	_drv2665_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	(%r15), %rdi
	movq	_EV_FF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FF_RUMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	movq	(%r15), %rdi
	movq	_drv2665_haptics_play@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_input_ff_create_memless
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_16:
	movq	%r14, %rdi
	movl	%ebx, %edx
LBB0_17:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_9:
	movq	%r15, %rdi
	addq	$24, %rdi
	movq	_drv2665_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, 16(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	_drv2665_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	8(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_4
LBB0_11:
	movq	%r15, %rdi
	callq	_drv2665_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_16
LBB0_13:
	movq	(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_16
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vbat"

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

L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate input device\n"

L_.str.3:                               ## @.str.3
	.asciz	"drv2665:haptics"

	.comm	_drv2665_close,4,2              ## @drv2665_close
	.comm	_EV_FF,4,2                      ## @EV_FF
	.comm	_FF_RUMBLE,4,2                  ## @FF_RUMBLE
	.comm	_drv2665_haptics_play,4,2       ## @drv2665_haptics_play
L_.str.4:                               ## @.str.4
	.asciz	"input_ff_create() failed: %d\n"

	.comm	_drv2665_worker,4,2             ## @drv2665_worker
	.comm	_drv2665_regmap_config,4,2      ## @drv2665_regmap_config
L_.str.5:                               ## @.str.5
	.asciz	"Failed to allocate register map: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Device init failed: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"couldn't register input device: %d\n"

	.no_dead_strip	_drv2665_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drv2665_probe
_drv2665_probe:                         ; @drv2665_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #28]
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.4:
Lloh7:
	adrp	x8, l_.str.3@PAGE
Lloh8:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x0]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _drv2665_close@GOTPAGE
Lloh10:
	ldr	x9, [x9, _drv2665_close@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	mov	x1, x20
	bl	_input_set_drvdata
	ldr	x0, [x20]
Lloh12:
	adrp	x8, _EV_FF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EV_FF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _FF_RUMBLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FF_RUMBLE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	x0, [x20]
Lloh18:
	adrp	x8, _drv2665_haptics_play@GOTPAGE
Lloh19:
	ldr	x8, [x8, _drv2665_haptics_play@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_input_ff_create_memless
	cbz	w0, LBB0_10
; %bb.5:
	mov	x21, x0
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
	mov	x20, x21
	b	LBB0_9
LBB0_7:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	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
	add	sp, sp, #64
	ret
LBB0_10:
	add	x0, x20, #24
Lloh28:
	adrp	x8, _drv2665_worker@GOTPAGE
Lloh29:
	ldr	x8, [x8, _drv2665_worker@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_INIT_WORK
	str	x19, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh31:
	adrp	x1, _drv2665_regmap_config@GOTPAGE
Lloh32:
	ldr	x1, [x1, _drv2665_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w0, [x20, #8]
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_9
LBB0_13:
	mov	x0, x20
	bl	_drv2665_init
	cbz	w0, LBB0_15
; %bb.14:
	mov	x21, x0
	str	x21, [sp]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_15:
	ldr	x0, [x20]
	bl	_input_register_device
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.16:
	str	x20, [sp]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vbat"

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

l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate input device\n"

l_.str.3:                               ; @.str.3
	.asciz	"drv2665:haptics"

	.comm	_drv2665_close,4,2              ; @drv2665_close
	.comm	_EV_FF,4,2                      ; @EV_FF
	.comm	_FF_RUMBLE,4,2                  ; @FF_RUMBLE
	.comm	_drv2665_haptics_play,4,2       ; @drv2665_haptics_play
l_.str.4:                               ; @.str.4
	.asciz	"input_ff_create() failed: %d\n"

	.comm	_drv2665_worker,4,2             ; @drv2665_worker
	.comm	_drv2665_regmap_config,4,2      ; @drv2665_regmap_config
l_.str.5:                               ; @.str.5
	.asciz	"Failed to allocate register map: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Device init failed: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"couldn't register input device: %d\n"

	.no_dead_strip	_drv2665_probe
.subsections_via_symbols
