	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_oss_writeq_sync        ## -- Begin function snd_seq_oss_writeq_sync
	.p2align	4, 0x90
_snd_seq_oss_writeq_sync:               ## @snd_seq_oss_writeq_sync
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movl	12(%r12), %edi
	callq	_snd_seq_oss_timer_cur_tick
	xorl	%r14d, %r14d
	cmpq	%rax, (%rbx)
	jge	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movl	8(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	$0, -48(%rbp)
	movq	_SNDRV_SEQ_EVENT_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, -64(%rbp)
	movl	4(%r12), %ecx
	movl	8(%r12), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_snd_seq_oss_fill_addr
	movq	_SEQ_SYNCTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r15, -72(%rbp)
	movl	$1, 8(%rbx)
	movl	(%r12), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_snd_seq_kernel_client_enqueue_blocking
	movl	8(%rbx), %eax
LBB0_3:
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_interruptible_timeout
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$0, 8(%rbx)
	jmp	LBB0_7
LBB0_5:
	cmpl	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	xorl	%r14d, %r14d
	cmpq	%r15, (%rbx)
	setl	%r14b
LBB0_7:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_SEQ_EVENT_ECHO,4,2       ## @SNDRV_SEQ_EVENT_ECHO
	.comm	_SEQ_SYNCTIMER,4,2              ## @SEQ_SYNCTIMER
	.comm	_HZ,4,2                         ## @HZ
	.comm	_current,4,2                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_oss_writeq_sync        ; -- Begin function snd_seq_oss_writeq_sync
	.p2align	2
_snd_seq_oss_writeq_sync:               ; @snd_seq_oss_writeq_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, [x0, #16]
	ldr	w0, [x21, #12]
	bl	_snd_seq_oss_timer_cur_tick
	ldr	x8, [x19]
	cmp	x8, x0
	b.ge	LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _SNDRV_SEQ_EVENT_ECHO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_SEQ_EVENT_ECHO@GOTPAGEOFF]
	str	xzr, [sp, #24]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	x20, [sp, #8]
	ldp	w3, w2, [x21, #4]
	mov	x1, sp
	mov	x0, x21
	bl	_snd_seq_oss_fill_addr
Lloh3:
	adrp	x8, _SEQ_SYNCTIMER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEQ_SYNCTIMER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	x20, [sp]
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	w0, [x21]
	mov	x1, sp
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_snd_seq_kernel_client_enqueue_blocking
	ldr	w8, [x19, #8]
LBB0_3:
	ldr	w0, [x19, #12]
	cmp	w8, #0
	cset	w1, eq
Lloh6:
	adrp	x8, _HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_wait_event_interruptible_timeout
Lloh9:
	adrp	x8, _current@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_signal_pending
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #0
	str	wzr, [x19, #8]
	b	LBB0_8
LBB0_5:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	cmp	x8, x20
	cset	w0, lt
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_SEQ_EVENT_ECHO,4,2       ; @SNDRV_SEQ_EVENT_ECHO
	.comm	_SEQ_SYNCTIMER,4,2              ; @SEQ_SYNCTIMER
	.comm	_HZ,4,2                         ; @HZ
	.comm	_current,4,2                    ; @current
.subsections_via_symbols
