	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vb2_thread
_vb2_thread:                            ## @vb2_thread
	.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, %r12
	movq	24(%rdi), %r13
	movl	$0, -44(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movl	(%r12), %r15d
	cmpl	$0, 4(%r12)
	sete	%r14b
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
	movb	$1, %r14b
LBB0_3:
	xorl	%eax, %eax
	callq	_set_freezable
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_wait_prepare@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_call_void_qop
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_19
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	shlq	$3, %rax
	addq	8(%r12), %rax
	movl	%ecx, -44(%rbp)
	decl	%r15d
	cmpq	$0, (%r13)
	je	LBB0_11
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_wait_finish@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_call_void_qop
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vb2_core_dqbuf
	movl	%eax, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_wait_prepare@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_call_void_qop
	movl	$5, %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dprintk
	testl	%ebx, %ebx
	jne	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax
	shlq	$3, %rax
	addq	8(%r12), %rax
	xorl	%r15d, %r15d
	cmpq	$0, (%r13)
	jne	LBB0_19
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_try_to_freeze
	movq	(%rbx), %rax
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r13), %esi
	movq	%rbx, %rdi
	callq	*16(%r13)
	testq	%rax, %rax
	jne	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_wait_finish@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_call_void_qop
	testb	%r14b, %r14b
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movl	%eax, 12(%rbx)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vb2_core_qbuf
	movl	%eax, %ebx
	movq	_wait_prepare@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_call_void_qop
	testl	%ebx, %ebx
	je	LBB0_18
LBB0_19:
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_set_current_state
	xorl	%eax, %eax
	callq	_schedule
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	je	LBB0_21
LBB0_22:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait_finish,4,2                ## @wait_finish
	.comm	_wait_prepare,4,2               ## @wait_prepare
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file io: vb2_dqbuf result: %d\n"

	.comm	_VB2_BUF_STATE_ERROR,8,3        ## @VB2_BUF_STATE_ERROR
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.no_dead_strip	_vb2_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vb2_thread
_vb2_thread:                            ; @vb2_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	wzr, [sp, #12]
	ldp	x8, x22, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w27, w8, [x19]
	cmp	w8, #0
	cset	w23, eq
	b	LBB0_3
LBB0_2:
	mov	w27, #0
	mov	w23, #1
LBB0_3:
	bl	_set_freezable
Lloh0:
	adrp	x24, _wait_finish@GOTPAGE
Lloh1:
	ldr	x24, [x24, _wait_finish@GOTPAGEOFF]
Lloh2:
	adrp	x25, _wait_prepare@GOTPAGE
Lloh3:
	ldr	x25, [x25, _wait_prepare@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
Lloh6:
	adrp	x26, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x19
	bl	_call_void_qop
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	cbnz	x8, LBB0_19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w27, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	add	x8, x8, x9, lsl #3
	sub	w27, w27, #1
	ldr	x9, [x22]
	cbz	x9, LBB0_15
	b	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x19
	bl	_call_void_qop
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w21, #0
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x21, #8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_vb2_core_qbuf
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x19
	bl	_call_void_qop
	cbz	w21, LBB0_6
	b	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_vb2_core_dqbuf
	mov	x21, x0
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x19
	bl	_call_void_qop
	mov	w0, #5
	mov	x1, x20
	mov	x2, x21
	bl	_dprintk
	cbnz	w21, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #0
	ldr	x8, [x19, #8]
	ldr	w9, [sp, #12]
	add	x8, x8, x9, lsl #3
	ldr	x9, [x22]
	cbnz	x9, LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x21, [x8]
	bl	_try_to_freeze
	ldr	x8, [x21]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #16]
	ldr	w1, [x22, #8]
	mov	x0, x21
	blr	x8
	cbnz	x0, LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x19
	bl	_call_void_qop
	tbnz	w23, #0, LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_ktime_get_ns
	str	w0, [x21, #12]
	b	LBB0_4
LBB0_19:
	bl	_kthread_should_stop
	cbnz	w0, LBB0_22
; %bb.20:
Lloh8:
	adrp	x19, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh9:
	ldr	x19, [x19, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_set_current_state
	bl	_schedule
	bl	_kthread_should_stop
	cbz	w0, LBB0_21
LBB0_22:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_wait_finish,4,2                ; @wait_finish
	.comm	_wait_prepare,4,2               ; @wait_prepare
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file io: vb2_dqbuf result: %d\n"

	.comm	_VB2_BUF_STATE_ERROR,8,3        ; @VB2_BUF_STATE_ERROR
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.no_dead_strip	_vb2_thread
.subsections_via_symbols
