	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_msnd_dsp_write_flush
_snd_msnd_dsp_write_flush:              ## @snd_msnd_dsp_write_flush
	.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	_FMODE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	_F_WRITING@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	4(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_F_WRITEFLUSH@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_get_play_delay_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
LBB0_4:
	movl	(%r15), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_F_WRITING,4,2                  ## @F_WRITING
	.comm	_F_WRITEFLUSH,4,2               ## @F_WRITEFLUSH
	.comm	_current,4,2                    ## @current
	.no_dead_strip	_snd_msnd_dsp_write_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_msnd_dsp_write_flush
_snd_msnd_dsp_write_flush:              ; @snd_msnd_dsp_write_flush
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x21, _F_WRITING@GOTPAGE
Lloh4:
	ldr	x21, [x21, _F_WRITING@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x19, x20, #4
	mov	x1, x19
	bl	_test_bit
	cbz	w0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x22, _F_WRITEFLUSH@GOTPAGE
Lloh6:
	ldr	x22, [x22, _F_WRITEFLUSH@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_set_bit
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
Lloh7:
	adrp	x8, _current@GOTPAGE
Lloh8:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_signal_pending
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x20, #8]
	mov	x0, x20
	bl	_get_play_delay_jiffies
	bl	_schedule_timeout_interruptible
LBB0_4:
	ldr	w0, [x21]
	mov	x1, x19
	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	_clear_bit
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_F_WRITING,4,2                  ; @F_WRITING
	.comm	_F_WRITEFLUSH,4,2               ; @F_WRITEFLUSH
	.comm	_current,4,2                    ; @current
	.no_dead_strip	_snd_msnd_dsp_write_flush
.subsections_via_symbols
