	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_core_qbuf                  ## -- Begin function vb2_core_qbuf
	.p2align	4, 0x90
_vb2_core_qbuf:                         ## @vb2_core_qbuf
	.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
	cmpq	$0, 80(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_2:
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	72(%rdi), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %r14
	testq	%r13, %r13
	je	LBB0_3
## %bb.8:
	cmpl	$0, (%r12)
	je	LBB0_9
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_3:
	movl	(%r14), %edx
	cmpl	$129, %edx
	jne	LBB0_4
LBB0_21:
	cmpl	$0, 12(%r14)
	je	LBB0_22
LBB0_23:
	leaq	8(%r14), %rdi
	leaq	48(%r12), %rsi
	callq	_list_add_tail
	incq	8(%r12)
	movl	$0, 16(%r12)
	movq	_VB2_BUF_STATE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	testq	%r15, %r15
	je	LBB0_25
## %bb.24:
	movq	_copy_timestamp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_call_void_bufop
LBB0_25:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_trace_vb2_qbuf
	cmpq	$0, 32(%r12)
	je	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	callq	___enqueue_in_driver
LBB0_27:
	testq	%r15, %r15
	je	LBB0_29
## %bb.28:
	movq	_fill_user_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_call_void_bufop
LBB0_29:
	cmpq	$0, 40(%r12)
	je	LBB0_33
## %bb.30:
	cmpq	$0, 32(%r12)
	jne	LBB0_33
## %bb.31:
	movq	8(%r12), %rax
	cmpq	24(%r12), %rax
	jl	LBB0_33
## %bb.32:
	movq	%r12, %rdi
	callq	_vb2_start_streaming
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_39
	jmp	LBB0_33
LBB0_9:
	movl	$1, 4(%r12)
	cmpl	$130, (%r14)
	jne	LBB0_10
## %bb.11:
	cmpq	$0, 56(%r12)
	je	LBB0_15
## %bb.12:
	cmpl	$0, 12(%r14)
	je	LBB0_13
LBB0_15:
	leaq	24(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_media_request_object_init
	movq	%r13, %rdi
	callq	_media_request_lock_for_update
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_39
## %bb.16:
	movq	_vb2_core_req_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	movl	$1, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_media_request_object_bind
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_media_request_unlock_for_update
	testl	%ebx, %ebx
	jne	LBB0_39
## %bb.17:
	movl	$129, (%r14)
	movq	%r13, %rdi
	callq	_media_request_get
	movq	%r13, 16(%r14)
	testq	%r15, %r15
	je	LBB0_33
## %bb.18:
	movq	_copy_timestamp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_call_void_bufop
	movq	_fill_user_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_call_void_bufop
LBB0_33:
	movl	4(%r14), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_39
LBB0_4:
	cmpq	$0, 64(%r12)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EBADR@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_10:
	movl	4(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
LBB0_36:
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_37:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_38:
	subl	(%rax), %ebx
LBB0_39:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%r14, %rdi
	callq	___buf_prepare
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_39
	jmp	LBB0_23
LBB0_6:
	cmpl	$0, 4(%r12)
	jne	LBB0_7
## %bb.19:
	movl	$1, (%r12)
	cmpl	$128, %edx
	je	LBB0_34
## %bb.20:
	cmpl	$130, %edx
	je	LBB0_21
## %bb.35:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_36
LBB0_13:
	movq	_buf_out_validate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_call_vb_qop
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_39
LBB0_34:
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fatal error occurred on queue\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"qbuf requires a request\n"

	.comm	_EBADR,4,2                      ## @EBADR
L_.str.2:                               ## @.str.2
	.asciz	"queue in wrong mode (qbuf vs requests)\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.3:                               ## @.str.3
	.asciz	"buffer %d not in dequeued state\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_buf_out_validate,4,2           ## @buf_out_validate
L_.str.4:                               ## @.str.4
	.asciz	"buffer validation failed\n"

	.comm	_vb2_core_req_ops,4,2           ## @vb2_core_req_ops
	.comm	_copy_timestamp,4,2             ## @copy_timestamp
	.comm	_fill_user_buffer,4,2           ## @fill_user_buffer
L_.str.5:                               ## @.str.5
	.asciz	"qbuf of buffer %d succeeded\n"

L_.str.6:                               ## @.str.6
	.asciz	"buffer still being prepared\n"

L_.str.7:                               ## @.str.7
	.asciz	"invalid buffer state %d\n"

	.comm	_VB2_BUF_STATE_QUEUED,4,2       ## @VB2_BUF_STATE_QUEUED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_core_qbuf                  ; -- Begin function vb2_core_qbuf
	.p2align	2
_vb2_core_qbuf:                         ; @vb2_core_qbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	x8, [x0, #80]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_29
LBB0_2:
	mov	x22, x3
	mov	x21, x2
	mov	x20, x0
	ldr	x8, [x0, #72]
	ldr	x19, [x8, w1, uxtw #3]
	cbz	x3, LBB0_5
; %bb.3:
	ldr	w8, [x20]
	cbz	w8, LBB0_17
LBB0_4:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_29
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #129
	b.ne	LBB0_25
LBB0_6:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_31
LBB0_7:
	add	x0, x19, #8
	add	x1, x20, #48
	bl	_list_add_tail
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	str	wzr, [x20, #16]
Lloh8:
	adrp	x8, _VB2_BUF_STATE_QUEUED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VB2_BUF_STATE_QUEUED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	cbz	x21, LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _copy_timestamp@GOTPAGE
Lloh12:
	ldr	x8, [x8, _copy_timestamp@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_call_void_bufop
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_trace_vb2_qbuf
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	___enqueue_in_driver
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
Lloh14:
	adrp	x8, _fill_user_buffer@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fill_user_buffer@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_call_void_bufop
LBB0_13:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_24
; %bb.14:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_24
; %bb.15:
	ldr	x8, [x20, #8]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.lt	LBB0_24
; %bb.16:
	mov	x0, x20
	bl	_vb2_start_streaming
	mov	x23, x0
	cbnz	w0, LBB0_30
	b	LBB0_24
LBB0_17:
	mov	w8, #1
	str	w8, [x20, #4]
	ldr	w8, [x19]
	cmp	w8, #130
	b.ne	LBB0_27
; %bb.18:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_36
LBB0_20:
	add	x24, x19, #24
	mov	x0, x24
	bl	_media_request_object_init
	mov	x0, x22
	bl	_media_request_lock_for_update
	mov	x23, x0
	cbnz	w0, LBB0_30
; %bb.21:
Lloh17:
	adrp	x1, _vb2_core_req_ops@GOTPAGE
Lloh18:
	ldr	x1, [x1, _vb2_core_req_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x2, x20
	mov	w3, #1
	mov	x4, x24
	bl	_media_request_object_bind
	mov	x23, x0
	mov	x0, x22
	bl	_media_request_unlock_for_update
	cbnz	w23, LBB0_30
; %bb.22:
	mov	w8, #129
	str	w8, [x19]
	mov	x0, x22
	bl	_media_request_get
	str	x22, [x19, #16]
	cbz	x21, LBB0_24
; %bb.23:
Lloh19:
	adrp	x8, _copy_timestamp@GOTPAGE
Lloh20:
	ldr	x8, [x8, _copy_timestamp@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_call_void_bufop
Lloh22:
	adrp	x8, _fill_user_buffer@GOTPAGE
Lloh23:
	ldr	x8, [x8, _fill_user_buffer@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_call_void_bufop
LBB0_24:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	mov	w23, #0
	b	LBB0_30
LBB0_25:
	ldr	x9, [x20, #64]
	cbz	x9, LBB0_32
; %bb.26:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh29:
	adrp	x8, _EBADR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EBADR@GOTPAGEOFF]
	b	LBB0_29
LBB0_27:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_28:
	mov	w0, #1
	bl	_dprintk
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_29:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_30:
	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
	add	sp, sp, #80
	ret
LBB0_31:
	mov	x0, x19
	bl	___buf_prepare
	mov	x23, x0
	cbnz	w0, LBB0_30
	b	LBB0_7
LBB0_32:
	ldr	w9, [x20, #4]
	cbnz	w9, LBB0_4
; %bb.33:
	mov	w9, #1
	str	w9, [x20]
	cmp	w8, #128
	b.eq	LBB0_38
; %bb.34:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.35:
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_28
LBB0_36:
Lloh37:
	adrp	x8, _buf_out_validate@GOTPAGE
Lloh38:
	ldr	x8, [x8, _buf_out_validate@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_call_vb_qop
	cbz	w0, LBB0_20
; %bb.37:
	mov	x23, x0
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	b	LBB0_30
LBB0_38:
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_28
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fatal error occurred on queue\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"qbuf requires a request\n"

	.comm	_EBADR,4,2                      ; @EBADR
l_.str.2:                               ; @.str.2
	.asciz	"queue in wrong mode (qbuf vs requests)\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.3:                               ; @.str.3
	.asciz	"buffer %d not in dequeued state\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_buf_out_validate,4,2           ; @buf_out_validate
l_.str.4:                               ; @.str.4
	.asciz	"buffer validation failed\n"

	.comm	_vb2_core_req_ops,4,2           ; @vb2_core_req_ops
	.comm	_copy_timestamp,4,2             ; @copy_timestamp
	.comm	_fill_user_buffer,4,2           ; @fill_user_buffer
l_.str.5:                               ; @.str.5
	.asciz	"qbuf of buffer %d succeeded\n"

l_.str.6:                               ; @.str.6
	.asciz	"buffer still being prepared\n"

l_.str.7:                               ; @.str.7
	.asciz	"invalid buffer state %d\n"

	.comm	_VB2_BUF_STATE_QUEUED,4,2       ; @VB2_BUF_STATE_QUEUED
.subsections_via_symbols
