	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wait_for_free_buffer
___wait_for_free_buffer:                ## @__wait_for_free_buffer
	.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, %rbx
	movq	_wait@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_current@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_DECLARE_WAITQUEUE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_add_wait_queue
	movl	(%r15), %edi
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_task_state
	movq	%rbx, %rdi
	callq	_dm_bufio_unlock
	movq	%rbx, %rdi
	callq	_dm_bufio_io_schedule
	movl	(%r15), %edi
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_task_state
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_remove_wait_queue
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_bufio_lock                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	___wait_for_free_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wait_for_free_buffer
___wait_for_free_buffer:                ; @__wait_for_free_buffer
	.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
Lloh0:
	adrp	x20, _wait@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wait@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _current@GOTPAGE
Lloh3:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_DECLARE_WAITQUEUE
	mov	x0, x19
	mov	x1, x20
	bl	_add_wait_queue
	ldr	w0, [x21]
Lloh4:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_set_task_state
	mov	x0, x19
	bl	_dm_bufio_unlock
	mov	x0, x19
	bl	_dm_bufio_io_schedule
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_set_task_state
	mov	x0, x19
	mov	x1, x20
	bl	_remove_wait_queue
	mov	x0, 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	_dm_bufio_lock
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	___wait_for_free_buffer
.subsections_via_symbols
