	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_write_sync
_pcm_write_sync:                        ## @pcm_write_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_wait@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_DECLARE_WAITQUEUE
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_DBGEV
	leaq	12(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_add_wait_queue
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_set_current_state
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rbx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_HW_STOPPED@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movl	(%r13), %edi
	callq	_set_current_state
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rbx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	(%r12), %rbx
	jne	LBB0_1
LBB0_3:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_remove_wait_queue
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_DBGPV
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBGRV                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,8,3                    ## @current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(devc=0x%p)\n"

	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_HW_STOPPED,8,3                 ## @HW_STOPPED
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
L_.str.1:                               ## @.str.1
	.asciz	"swstate = %d, hwstate = %d\n"

	.no_dead_strip	_pcm_write_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_write_sync
_pcm_write_sync:                        ; @pcm_write_sync
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x21, _wait@GOTPAGE
Lloh1:
	ldr	x21, [x21, _wait@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _current@GOTPAGE
Lloh3:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_DECLARE_WAITQUEUE
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DBGEV
	add	x20, x19, #12
	mov	x0, x20
	mov	x1, x21
	bl	_add_wait_queue
Lloh6:
	adrp	x23, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_set_current_state
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x25, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh8:
	adrp	x24, _HW_STOPPED@GOTPAGE
Lloh9:
	ldr	x24, [x24, _HW_STOPPED@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x25, x8
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_schedule
	ldr	w0, [x23]
	bl	_set_current_state
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x25, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_1
LBB0_3:
Lloh10:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x22]
	str	w8, [x9]
Lloh13:
	adrp	x1, _wait@GOTPAGE
Lloh14:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x20
	bl	_remove_wait_queue
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGPV
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DBGRV
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,8,3                    ; @current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(devc=0x%p)\n"

	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_HW_STOPPED,8,3                 ; @HW_STOPPED
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
l_.str.1:                               ; @.str.1
	.asciz	"swstate = %d, hwstate = %d\n"

	.no_dead_strip	_pcm_write_sync
.subsections_via_symbols
