	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_vibra_probe
_twl4030_vibra_probe:                   ## @twl4030_vibra_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	(%rax), %r12
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.1:
	testq	%r12, %r12
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r14
	movq	%r15, 16(%rax)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_twl4030_vibra_check_coexist
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	_vibra_play_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r15, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movq	(%r14), %rax
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rax)
	movl	$1, 16(%rax)
	movq	_twl4030_vibra_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_FF_RUMBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	8(%rax), %esi
	callq	___set_bit
	movq	(%r14), %rdi
	movq	_vibra_play@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_input_ff_create_memless
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	(%r14), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_vibra_disable_leds
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	(%r14), %rdi
	callq	_input_ff_destroy
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"platform_data not available\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vibra_play_work,4,2            ## @vibra_play_work
L_.str.1:                               ## @.str.1
	.asciz	"couldn't allocate input device\n"

L_.str.2:                               ## @.str.2
	.asciz	"twl4030:vibrator"

	.comm	_twl4030_vibra_close,4,2        ## @twl4030_vibra_close
	.comm	_FF_RUMBLE,4,2                  ## @FF_RUMBLE
	.comm	_vibra_play,4,2                 ## @vibra_play
L_.str.3:                               ## @.str.3
	.asciz	"couldn't register vibrator to FF\n"

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

	.no_dead_strip	_twl4030_vibra_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_vibra_probe
_twl4030_vibra_probe:                   ; @twl4030_vibra_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_dev_get_platdata
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x22, [x8]
	cbnz	x0, LBB0_3
; %bb.1:
	cbnz	x22, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	str	x19, [x0, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_twl4030_vibra_check_coexist
	str	w0, [x20, #12]
	add	x0, x20, #8
Lloh7:
	adrp	x8, _vibra_play_work@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vibra_play_work@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, x20
	bl	_input_set_drvdata
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	x9, [x20]
	str	x8, [x9]
	mov	w8, #1
Lloh12:
	adrp	x10, _twl4030_vibra_close@GOTPAGE
Lloh13:
	ldr	x10, [x10, _twl4030_vibra_close@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #12]
Lloh15:
	adrp	x8, _FF_RUMBLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FF_RUMBLE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x9, #8]
	bl	___set_bit
	ldr	x0, [x20]
Lloh18:
	adrp	x8, _vibra_play@GOTPAGE
Lloh19:
	ldr	x8, [x8, _vibra_play@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_input_ff_create_memless
	tbnz	w0, #31, LBB0_12
; %bb.6:
	ldr	x0, [x20]
	bl	_input_register_device
	tbnz	w0, #31, LBB0_13
; %bb.7:
	bl	_vibra_disable_leds
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_11
LBB0_8:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_11
LBB0_13:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x0, [x20]
	bl	_input_ff_destroy
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"platform_data not available\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vibra_play_work,4,2            ; @vibra_play_work
l_.str.1:                               ; @.str.1
	.asciz	"couldn't allocate input device\n"

l_.str.2:                               ; @.str.2
	.asciz	"twl4030:vibrator"

	.comm	_twl4030_vibra_close,4,2        ; @twl4030_vibra_close
	.comm	_FF_RUMBLE,4,2                  ; @FF_RUMBLE
	.comm	_vibra_play,4,2                 ; @vibra_play
l_.str.3:                               ; @.str.3
	.asciz	"couldn't register vibrator to FF\n"

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

	.no_dead_strip	_twl4030_vibra_probe
.subsections_via_symbols
