	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_vibra_probe
_sc27xx_vibra_probe:                    ## @sc27xx_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 24(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	leaq	20(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.4(%rip), %rcx
	movq	%rcx, (%rax)
	movq	$0, 16(%rax)
	movq	_sc27xx_vibra_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	8(%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
	addq	$16, %rdi
	movq	_sc27xx_vibra_play_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movl	$0, (%r15)
	movq	%r15, %rdi
	callq	_sc27xx_vibra_hw_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_4
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	8(%r15), %rdi
	movq	_sc27xx_vibra_play@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_input_ff_create_memless
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_12
LBB0_15:
	movq	8(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_12
## %bb.16:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_12
	.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	"failed to get vibrator regmap.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get vibrator base address.\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"sc27xx:vibrator"

	.comm	_sc27xx_vibra_close,4,2         ## @sc27xx_vibra_close
	.comm	_EV_FF,4,2                      ## @EV_FF
	.comm	_FF_RUMBLE,4,2                  ## @FF_RUMBLE
	.comm	_sc27xx_vibra_play_work,4,2     ## @sc27xx_vibra_play_work
L_.str.5:                               ## @.str.5
	.asciz	"failed to initialize the vibrator.\n"

	.comm	_sc27xx_vibra_play,4,2          ## @sc27xx_vibra_play
L_.str.6:                               ## @.str.6
	.asciz	"failed to register vibrator to FF.\n"

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

	.no_dead_strip	_sc27xx_vibra_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_vibra_probe
_sc27xx_vibra_probe:                    ; @sc27xx_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
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_10
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x20, #24]
	cbz	w0, LBB0_5
; %bb.2:
	add	x2, x20, #20
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_u32
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.7:
Lloh11:
	adrp	x8, l_.str.4@PAGE
Lloh12:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x0]
	str	xzr, [x0, #16]
Lloh13:
	adrp	x8, _sc27xx_vibra_close@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sc27xx_vibra_close@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	mov	x1, x20
	bl	_input_set_drvdata
	ldr	x0, [x20, #8]
Lloh16:
	adrp	x8, _EV_FF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EV_FF@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _FF_RUMBLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FF_RUMBLE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_input_set_capability
	add	x0, x20, #16
Lloh22:
	adrp	x8, _sc27xx_vibra_play_work@GOTPAGE
Lloh23:
	ldr	x8, [x8, _sc27xx_vibra_play_work@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_INIT_WORK
	str	wzr, [x20]
	mov	x0, x20
	bl	_sc27xx_vibra_hw_init
	cbz	w0, LBB0_13
; %bb.8:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_9:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	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_13:
	ldr	x0, [x20, #8]
Lloh31:
	adrp	x8, _sc27xx_vibra_play@GOTPAGE
Lloh32:
	ldr	x8, [x8, _sc27xx_vibra_play@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_input_ff_create_memless
	cbz	w0, LBB0_15
; %bb.14:
	mov	x21, x0
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_15:
	ldr	x0, [x20, #8]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.16:
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.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	"failed to get vibrator regmap.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get vibrator base address.\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"sc27xx:vibrator"

	.comm	_sc27xx_vibra_close,4,2         ; @sc27xx_vibra_close
	.comm	_EV_FF,4,2                      ; @EV_FF
	.comm	_FF_RUMBLE,4,2                  ; @FF_RUMBLE
	.comm	_sc27xx_vibra_play_work,4,2     ; @sc27xx_vibra_play_work
l_.str.5:                               ; @.str.5
	.asciz	"failed to initialize the vibrator.\n"

	.comm	_sc27xx_vibra_play,4,2          ; @sc27xx_vibra_play
l_.str.6:                               ; @.str.6
	.asciz	"failed to register vibrator to FF.\n"

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

	.no_dead_strip	_sc27xx_vibra_probe
.subsections_via_symbols
