	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsp_write_flush
_dsp_write_flush:                       ## @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	_dev@GOTPCREL(%rip), %rbx
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.1:
	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	8(%rbx), %edi
	callq	_get_play_delay_jiffies
	addq	$12, %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_interruptible_sleep_on_timeout
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_signal_pending
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_DAP_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_play_delay_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout
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	_dev,16,2                       ## @dev
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_F_WRITING,4,2                  ## @F_WRITING
	.comm	_F_WRITEFLUSH,4,2               ## @F_WRITEFLUSH
	.comm	_current,8,3                    ## @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_DAP_BUFF_SIZE,4,2              ## @DAP_BUFF_SIZE
	.no_dead_strip	_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 dsp_write_flush
_dsp_write_flush:                       ; @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
Lloh0:
	adrp	x20, _dev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dev@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
Lloh5:
	adrp	x21, _F_WRITING@GOTPAGE
Lloh6:
	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:
Lloh7:
	adrp	x22, _F_WRITEFLUSH@GOTPAGE
Lloh8:
	ldr	x22, [x22, _F_WRITEFLUSH@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_set_bit
	ldr	w0, [x20, #8]
	bl	_get_play_delay_jiffies
	mov	x1, x0
	add	x0, x20, #12
	bl	_interruptible_sleep_on_timeout
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
Lloh9:
	adrp	x19, _current@GOTPAGE
Lloh10:
	ldr	x19, [x19, _current@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_signal_pending
	cbnz	w0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
Lloh14:
	adrp	x8, _DAP_BUFF_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DAP_BUFF_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_get_play_delay_jiffies
	bl	_schedule_timeout
LBB0_4:
	ldr	w0, [x21]
	add	x1, x20, #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	_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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dev,16,2                       ; @dev
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_F_WRITING,4,2                  ; @F_WRITING
	.comm	_F_WRITEFLUSH,4,2               ; @F_WRITEFLUSH
	.comm	_current,8,3                    ; @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_DAP_BUFF_SIZE,4,2              ; @DAP_BUFF_SIZE
	.no_dead_strip	_dsp_write_flush
.subsections_via_symbols
