	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Q40Play
_Q40Play:                               ## @Q40Play
	.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	_write_sq@GOTPCREL(%rip), %rax
	cmpq	$0, 32(%rax)
	jne	LBB0_5
## %bb.1:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.2:
	cmpl	$1, %ecx
	ja	LBB0_6
## %bb.3:
	movq	8(%rax), %rcx
	cmpq	16(%rax), %rcx
	jge	LBB0_6
## %bb.4:
	cmpl	$0, 24(%rax)
	jne	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_dmasound@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	$1, %edi
	callq	_Q40PlayNextFrame
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_write_sq,40,3                  ## @write_sq
	.comm	_dmasound,4,2                   ## @dmasound
	.no_dead_strip	_Q40Play
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Q40Play
_Q40Play:                               ; @Q40Play
	.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
Lloh0:
	adrp	x8, _write_sq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_sq@GOTPAGEOFF]
	ldr	x10, [x8, #32]
	ldr	w9, [x8]
	cmp	x10, #0
	ccmp	w9, #1, #8, eq
	b.lt	LBB0_4
; %bb.1:
	cmp	w9, #1
	b.hi	LBB0_3
; %bb.2:
	ldp	x9, x10, [x8, #8]
	ldr	w8, [x8, #24]
	cmp	x9, x10
	ccmp	w8, #0, #0, lt
	b.eq	LBB0_4
LBB0_3:
Lloh2:
	adrp	x19, _dmasound@GOTPAGE
Lloh3:
	ldr	x19, [x19, _dmasound@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	w0, #1
	bl	_Q40PlayNextFrame
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_write_sq,40,3                  ; @write_sq
	.comm	_dmasound,4,2                   ; @dmasound
	.no_dead_strip	_Q40Play
.subsections_via_symbols
