	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __vb2_wait_for_done_vb
___vb2_wait_for_done_vb:                ## @__vb2_wait_for_done_vb
	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	20(%rdi), %r15
	movq	_wait_finish@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %esi
	movl	%r13d, %edi
	callq	_wait_event_interruptible
	movl	%eax, %r13d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_call_void_qop
	movl	$0, (%rbx)
	testl	%r13d, %r13d
	jne	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 16(%rbx)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%rbx)
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rbx)
	movq	_wait_prepare@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_call_void_qop
	movl	$3, %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dprintk
	movl	24(%rbx), %r13d
	movq	%r15, %rdi
	callq	_list_empty
	movb	$1, %cl
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 16(%rbx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rbx)
	setne	%cl
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	callq	_dprintk
	movq	_EPIPE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movl	$3, %edi
	callq	_dprintk
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_18:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"another dup()ped fd is waiting for a buffer\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"streaming off, will not wait for buffers\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Queue in error state, will not wait for buffers\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.3:                               ## @.str.3
	.asciz	"last buffer dequeued already, will not wait for buffers\n"

	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.4:                               ## @.str.4
	.asciz	"nonblocking and no buffers to dequeue, will not wait\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_wait_prepare,4,2               ## @wait_prepare
L_.str.5:                               ## @.str.5
	.asciz	"will sleep waiting for buffers\n"

	.comm	_wait_finish,4,2                ## @wait_finish
L_.str.6:                               ## @.str.6
	.asciz	"sleep was interrupted\n"

	.no_dead_strip	___vb2_wait_for_done_vb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __vb2_wait_for_done_vb
___vb2_wait_for_done_vb:                ; @__vb2_wait_for_done_vb
	.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	x21, x0
	ldr	w8, [x21], #20
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_3:
	mov	x0, x23
	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
	ret
LBB0_4:
	mov	x19, x1
	mov	x20, x0
Lloh4:
	adrp	x25, _wait_prepare@GOTPAGE
Lloh5:
	ldr	x25, [x25, _wait_prepare@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.5@PAGE
Lloh7:
	add	x22, x22, l_.str.5@PAGEOFF
Lloh8:
	adrp	x26, _wait_finish@GOTPAGE
Lloh9:
	ldr	x26, [x26, _wait_finish@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w23, ne
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_wait_event_interruptible
	mov	x23, x0
	ldr	w1, [x26]
	mov	x0, x20
	mov	x2, x20
	bl	_call_void_qop
	str	wzr, [x20]
	cbnz	w23, LBB0_20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_list_empty
	cbz	w0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w19, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #1
	str	w23, [x20]
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x20
	bl	_call_void_qop
	mov	w0, #3
	mov	x1, x22
	bl	_dprintk
	ldr	w24, [x20, #24]
	mov	x0, x21
	bl	_list_empty
	cbz	w0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #1
	b	LBB0_6
LBB0_15:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_16:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	bl	_dprintk
Lloh20:
	adrp	x8, _EPIPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
	b	LBB0_2
LBB0_18:
	mov	w23, #0
	b	LBB0_3
LBB0_19:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #3
	bl	_dprintk
Lloh24:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_2
LBB0_20:
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"another dup()ped fd is waiting for a buffer\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"streaming off, will not wait for buffers\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Queue in error state, will not wait for buffers\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.3:                               ; @.str.3
	.asciz	"last buffer dequeued already, will not wait for buffers\n"

	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.4:                               ; @.str.4
	.asciz	"nonblocking and no buffers to dequeue, will not wait\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_wait_prepare,4,2               ; @wait_prepare
l_.str.5:                               ; @.str.5
	.asciz	"will sleep waiting for buffers\n"

	.comm	_wait_finish,4,2                ; @wait_finish
l_.str.6:                               ; @.str.6
	.asciz	"sleep was interrupted\n"

	.no_dead_strip	___vb2_wait_for_done_vb
.subsections_via_symbols
