	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_flush_frag
_pcm_flush_frag:                        ## @pcm_flush_frag
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DBGPV
	movslq	(%r14), %rax
	movq	_SW_RUN@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_4
## %bb.1:
	movslq	4(%r14), %r15
	movl	8(%r14), %eax
	leal	(%r15,%rax), %ebx
	decl	%ebx
	movb	12(%r14), %cl
	shrl	%cl, %ebx
	shll	%cl, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	subl	%r15d, %esi
	callq	_DBGPV
	subl	%r15d, %ebx
	je	LBB0_3
## %bb.2:
	addq	24(%r14), %r15
	movsbl	16(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memset
LBB0_3:
	movq	_SW_DRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_pcm_output
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBGRV                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"swstate = %d\n"

	.comm	_SW_RUN,8,3                     ## @SW_RUN
L_.str.1:                               ## @.str.1
	.asciz	"clearing %d bytes\n"

	.comm	_SW_DRAIN,8,3                   ## @SW_DRAIN
	.no_dead_strip	_pcm_flush_frag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_flush_frag
_pcm_flush_frag:                        ; @pcm_flush_frag
	.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
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBGPV
	ldrsw	x8, [x19]
Lloh2:
	adrp	x9, _SW_RUN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SW_RUN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.1:
	ldp	w21, w8, [x19, #4]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	add	w8, w21, w8
	sub	w8, w8, #1
	ldr	w9, [x19, #12]
	mov	w10, #-1
	lsl	w9, w10, w9
	and	w20, w9, w8
	subs	w1, w20, w21
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGPV
	subs	w20, w20, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	add	x0, x8, x21
	ldrsb	w1, [x19, #16]
	mov	x2, x20
	bl	_memset
LBB0_3:
Lloh7:
	adrp	x8, _SW_DRAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SW_DRAIN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_pcm_output
LBB0_4:
	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
	b	_DBGRV
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"swstate = %d\n"

	.comm	_SW_RUN,8,3                     ; @SW_RUN
l_.str.1:                               ; @.str.1
	.asciz	"clearing %d bytes\n"

	.comm	_SW_DRAIN,8,3                   ; @SW_DRAIN
	.no_dead_strip	_pcm_flush_frag
.subsections_via_symbols
