	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_haptics_play
_arizona_haptics_play:                  ## @arizona_haptics_play
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_input_get_drvdata
	movq	8(%rax), %rdx
	cmpl	$0, 12(%rdx)
	je	LBB0_5
## %bb.1:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.2:
	cmpq	$0, (%rdx)
	je	LBB0_7
## %bb.3:
	sarl	$9, %ecx
	movl	%ecx, (%rax)
	cmpl	$32767, (%rbx)                  ## imm = 0x7FFF
	jg	LBB0_9
## %bb.4:
	addl	$127, %ecx
	jmp	LBB0_8
LBB0_5:
	movl	8(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_6:
	movl	$0, (%rax)
	jmp	LBB0_9
LBB0_7:
	sarl	$8, %ecx
LBB0_8:
	movl	%ecx, (%rax)
LBB0_9:
	addq	$4, %rax
	movq	%rax, %rdi
	callq	_schedule_work
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No DAPM context\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_arizona_haptics_play
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_haptics_play
_arizona_haptics_play:                  ; @arizona_haptics_play
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_input_get_drvdata
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_5
; %bb.1:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_6
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
	asr	w8, w9, #9
	str	w8, [x0]
	ldr	w9, [x19]
	cmp	w9, #8, lsl #12                 ; =32768
	b.ge	LBB0_9
; %bb.4:
	add	w8, w8, #127
	b	LBB0_8
LBB0_5:
	ldr	w0, [x8, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_6:
	str	wzr, [x0]
	b	LBB0_9
LBB0_7:
	asr	w8, w9, #8
LBB0_8:
	str	w8, [x0]
LBB0_9:
	add	x0, x0, #4
	bl	_schedule_work
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No DAPM context\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_arizona_haptics_play
.subsections_via_symbols
