	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __vb2_queue_cancel
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___vb2_queue_cancel:                    ## @__vb2_queue_cancel
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 64(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_stop_streaming@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_call_void_qop
LBB0_2:
	leaq	20(%r14), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	movq	_VB2_BUF_STATE_ACTIVE@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r12
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	(%rsi), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_pr_warn
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r15), %esi
	callq	_vb2_buffer_done
	movl	(%r14), %eax
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_atomic_read
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_9:
	leaq	28(%r14), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r14)
	movups	%xmm0, 48(%r14)
	movups	%xmm0, 32(%r14)
	callq	_INIT_LIST_HEAD
	leaq	24(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	16(%r14), %rdi
	callq	_wake_up_all
	cmpl	$0, (%r14)
	je	LBB0_26
## %bb.10:
	xorl	%r12d, %r12d
	movq	_finish@GOTPCREL(%rip), %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %eax
	cmpq	%rax, %r12
	jae	LBB0_26
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	8(%r14), %rax
	movq	(%rax,%r12,8), %r14
	movq	32(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_MEDIA_REQUEST_STATE_QUEUED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_buf_request_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_call_void_vb_qop
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 48(%r14)
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, 8(%r14)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	56(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	callq	_call_void_memop
	incq	%rbx
	movl	8(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	$0, 48(%r14)
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 40(%r14)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_buf_finish@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_call_void_vb_qop
	movq	$0, 40(%r14)
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	___vb2_dqbuf
	cmpq	$0, 32(%r14)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	32(%r14), %r15
	movq	%r15, %rdi
	callq	_media_request_object_unbind
	movq	%r15, %rdi
	callq	_media_request_object_put
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_media_request_put
	jmp	LBB0_25
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stop_streaming,4,2             ## @stop_streaming
	.comm	_VB2_BUF_STATE_ACTIVE,8,3       ## @VB2_BUF_STATE_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver bug: stop_streaming operation is leaving buf %p in active state\n"

	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.comm	_MEDIA_REQUEST_STATE_QUEUED,4,2 ## @MEDIA_REQUEST_STATE_QUEUED
	.comm	_buf_request_complete,4,2       ## @buf_request_complete
	.comm	_finish,4,2                     ## @finish
	.comm	_buf_finish,4,2                 ## @buf_finish
	.no_dead_strip	___vb2_queue_cancel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __vb2_queue_cancel
___vb2_queue_cancel:                    ; @__vb2_queue_cancel
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #64]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stop_streaming@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stop_streaming@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_call_void_qop
LBB0_2:
	add	x20, x19, #20
	mov	x0, x20
	bl	_atomic_read
	bl	_WARN_ON
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.4:
	mov	x22, #0
Lloh3:
	adrp	x23, _VB2_BUF_STATE_ACTIVE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _VB2_BUF_STATE_ACTIVE@GOTPAGEOFF]
Lloh5:
	adrp	x24, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, uxtw
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x1, [x9, x22, lsl #3]
	ldr	x9, [x1]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_pr_warn
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x22, lsl #3]
	ldr	w1, [x24]
	bl	_vb2_buffer_done
	ldr	w8, [x19]
	b	LBB0_5
LBB0_8:
	mov	x0, x20
	bl	_atomic_read
	bl	_WARN_ON
LBB0_9:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #48]
	add	x0, x19, #28
	str	q0, [x19, #32]
	bl	_INIT_LIST_HEAD
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #16
	bl	_wake_up_all
	ldr	w8, [x19]
	cbz	w8, LBB0_26
; %bb.10:
	mov	x23, #0
Lloh9:
	adrp	x24, _buf_finish@GOTPAGE
Lloh10:
	ldr	x24, [x24, _buf_finish@GOTPAGEOFF]
Lloh11:
	adrp	x25, _finish@GOTPAGE
Lloh12:
	ldr	x25, [x25, _finish@GOTPAGEOFF]
Lloh13:
	adrp	x26, _MEDIA_REQUEST_STATE_QUEUED@GOTPAGE
Lloh14:
	ldr	x26, [x26, _MEDIA_REQUEST_STATE_QUEUED@GOTPAGEOFF]
Lloh15:
	adrp	x27, _buf_request_complete@GOTPAGE
Lloh16:
	ldr	x27, [x27, _buf_request_complete@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	stp	xzr, xzr, [x20, #16]
	ldr	w8, [x19]
	cmp	x23, x8
	b.hs	LBB0_26
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x23, lsl #3]
	mov	x21, x20
	ldr	x28, [x21, #32]!
	cbz	x28, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x28, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w28, [x28]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w8, [x26]
	cmp	w28, w8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	mov	x2, x20
	bl	_call_void_vb_qop
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x22, #0
LBB0_18:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x25]
	ldr	x8, [x20, #56]
	ldr	w2, [x8, x22, lsl #2]
	mov	x0, x20
	bl	_call_void_memop
	add	x22, x22, #1
	ldr	w8, [x20, #8]
	cmp	x22, x8
	b.lo	LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	str	xzr, [x20, #48]
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x20
	bl	_call_void_vb_qop
	str	xzr, [x20, #40]
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	___vb2_dqbuf
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_media_request_object_unbind
	mov	x0, x21
	bl	_media_request_object_put
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_11
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_media_request_put
	b	LBB0_11
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_stop_streaming,4,2             ; @stop_streaming
	.comm	_VB2_BUF_STATE_ACTIVE,8,3       ; @VB2_BUF_STATE_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver bug: stop_streaming operation is leaving buf %p in active state\n"

	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.comm	_MEDIA_REQUEST_STATE_QUEUED,4,2 ; @MEDIA_REQUEST_STATE_QUEUED
	.comm	_buf_request_complete,4,2       ; @buf_request_complete
	.comm	_finish,4,2                     ; @finish
	.comm	_buf_finish,4,2                 ; @buf_finish
	.no_dead_strip	___vb2_queue_cancel
.subsections_via_symbols
