	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_haptics_probe
_arizona_haptics_probe:                 ## @arizona_haptics_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, %r12
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	%r14, 16(%rax)
	movl	4(%r14), %ecx
	movl	8(%r14), %edi
	movq	_ARIZONA_HAPTICS_CONTROL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_HAP_ACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	addq	$8, %rdi
	movq	_arizona_haptics_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r12, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	(%r15), %rax
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_arizona_haptics_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	(%r15), %rdi
	movq	_arizona_haptics_play@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_input_ff_create_memless
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movq	(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	jns	LBB0_5
## %bb.9:
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_5
LBB0_10:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movl	%eax, %r12d
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ARIZONA_HAPTICS_CONTROL_1,4,2  ## @ARIZONA_HAPTICS_CONTROL_1
	.comm	_ARIZONA_HAP_ACT,4,2            ## @ARIZONA_HAP_ACT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set haptics actuator: %d\n"

	.comm	_arizona_haptics_work,4,2       ## @arizona_haptics_work
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate input device\n"

L_.str.2:                               ## @.str.2
	.asciz	"arizona:haptics"

	.comm	_arizona_haptics_close,4,2      ## @arizona_haptics_close
	.comm	_FF_RUMBLE,4,2                  ## @FF_RUMBLE
	.comm	_arizona_haptics_play,4,2       ## @arizona_haptics_play
L_.str.3:                               ## @.str.3
	.asciz	"input_ff_create_memless() failed: %d\n"

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

	.no_dead_strip	_arizona_haptics_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_haptics_probe
_arizona_haptics_probe:                 ; @arizona_haptics_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	x21, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #16]
Lloh3:
	adrp	x8, _ARIZONA_HAPTICS_CONTROL_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARIZONA_HAPTICS_CONTROL_1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ARIZONA_HAP_ACT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARIZONA_HAP_ACT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldp	w3, w0, [x19, #4]
	bl	_regmap_update_bits
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	w0, [x19]
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_3:
	add	x0, x20, #8
Lloh11:
	adrp	x8, _arizona_haptics_work@GOTPAGE
Lloh12:
	ldr	x8, [x8, _arizona_haptics_work@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x21
	bl	_devm_input_allocate_device
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.4:
	mov	x1, x20
	bl	_input_set_drvdata
	ldr	x8, [x20]
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
	str	x9, [x8]
Lloh16:
	adrp	x9, _arizona_haptics_close@GOTPAGE
Lloh17:
	ldr	x9, [x9, _arizona_haptics_close@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	str	w9, [x8, #12]
Lloh19:
	adrp	x9, _FF_RUMBLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FF_RUMBLE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x9]
	ldr	w1, [x8, #8]
	bl	___set_bit
	ldr	x0, [x20]
Lloh22:
	adrp	x8, _arizona_haptics_play@GOTPAGE
Lloh23:
	ldr	x8, [x8, _arizona_haptics_play@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_input_ff_create_memless
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	x0, [x20]
	bl	_input_register_device
	tbnz	w0, #31, LBB0_11
; %bb.6:
	mov	w22, #0
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_8:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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:
	mov	x22, x0
	ldr	w0, [x19]
	str	x22, [sp]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x22, x0
	ldr	w0, [x19]
	str	x22, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ARIZONA_HAPTICS_CONTROL_1,4,2  ; @ARIZONA_HAPTICS_CONTROL_1
	.comm	_ARIZONA_HAP_ACT,4,2            ; @ARIZONA_HAP_ACT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set haptics actuator: %d\n"

	.comm	_arizona_haptics_work,4,2       ; @arizona_haptics_work
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate input device\n"

l_.str.2:                               ; @.str.2
	.asciz	"arizona:haptics"

	.comm	_arizona_haptics_close,4,2      ; @arizona_haptics_close
	.comm	_FF_RUMBLE,4,2                  ; @FF_RUMBLE
	.comm	_arizona_haptics_play,4,2       ; @arizona_haptics_play
l_.str.3:                               ; @.str.3
	.asciz	"input_ff_create_memless() failed: %d\n"

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

	.no_dead_strip	_arizona_haptics_probe
.subsections_via_symbols
