	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_vib_probe
_pm8xxx_vib_probe:                      ## @pm8xxx_vib_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 24(%r12)
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r15
	movq	%r12, %rdi
	addq	$28, %rdi
	movq	_pm8xxx_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r15, 8(%r12)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, %r13
	movl	24(%r12), %edi
	movl	4(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movl	-44(%rbp), %edx
	andl	(%r13), %edx
	movl	%edx, -44(%rbp)
	movl	24(%r12), %edi
	movl	4(%r13), %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	%r13, 16(%r12)
	movl	-44(%rbp), %eax
	movl	%eax, (%r12)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r15)
	movl	$1, 12(%r15)
	movq	_pm8xxx_vib_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_input_set_drvdata
	movq	8(%r12), %rdi
	movq	_EV_FF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FF_RUMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	movq	_pm8xxx_vib_play_effect@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_input_ff_create_memless
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_10:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_11:
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_pm8xxx_work_handler,4,2        ## @pm8xxx_work_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pm8xxx_vib_ffmemless"

	.comm	_pm8xxx_vib_close,4,2           ## @pm8xxx_vib_close
	.comm	_EV_FF,4,2                      ## @EV_FF
	.comm	_FF_RUMBLE,4,2                  ## @FF_RUMBLE
	.comm	_pm8xxx_vib_play_effect,4,2     ## @pm8xxx_vib_play_effect
L_.str.1:                               ## @.str.1
	.asciz	"couldn't register vibrator as FF device\n"

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

	.no_dead_strip	_pm8xxx_vib_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_vib_probe
_pm8xxx_vib_probe:                      ; @pm8xxx_vib_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	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_7
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x20, #24]
	cbz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	add	x0, x20, #28
Lloh3:
	adrp	x8, _pm8xxx_work_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pm8xxx_work_handler@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	str	x21, [x20, #8]
	mov	x0, x19
	bl	_of_device_get_match_data
	mov	x23, x0
	ldr	w0, [x20, #24]
	ldr	w1, [x23, #4]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_11
; %bb.4:
	ldr	w8, [sp, #12]
	ldp	w9, w1, [x23]
	and	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w0, [x20, #24]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_11
; %bb.5:
	str	x23, [x20, #16]
	ldr	w8, [sp, #12]
	str	w8, [x20]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x21]
	mov	w8, #1
Lloh8:
	adrp	x9, _pm8xxx_vib_close@GOTPAGE
Lloh9:
	ldr	x9, [x9, _pm8xxx_vib_close@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
	ldr	x0, [x20, #8]
Lloh11:
	adrp	x8, _EV_FF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EV_FF@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _FF_RUMBLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FF_RUMBLE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_input_set_capability
Lloh17:
	adrp	x8, _pm8xxx_vib_play_effect@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pm8xxx_vib_play_effect@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	bl	_input_ff_create_memless
	cbz	w0, LBB0_12
; %bb.6:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_7:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	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_11:
	mov	x22, x0
	b	LBB0_10
LBB0_12:
	mov	x0, x21
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.13:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_pm8xxx_work_handler,4,2        ; @pm8xxx_work_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pm8xxx_vib_ffmemless"

	.comm	_pm8xxx_vib_close,4,2           ; @pm8xxx_vib_close
	.comm	_EV_FF,4,2                      ; @EV_FF
	.comm	_FF_RUMBLE,4,2                  ; @FF_RUMBLE
	.comm	_pm8xxx_vib_play_effect,4,2     ; @pm8xxx_vib_play_effect
l_.str.1:                               ; @.str.1
	.asciz	"couldn't register vibrator as FF device\n"

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

	.no_dead_strip	_pm8xxx_vib_probe
.subsections_via_symbols
