	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __videobuf_read_start
___videobuf_read_start:                 ## @__videobuf_read_start
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$0, -36(%rbp)
	movl	$0, -40(%rbp)
	movq	16(%rdi), %rax
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	*16(%rax)
	movl	-36(%rbp), %eax
	cmpl	$1, %eax
	ja	LBB0_2
## %bb.1:
	movl	$2, -36(%rbp)
	movl	$2, %eax
LBB0_2:
	movq	_VIDEO_MAX_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_4
## %bb.3:
	movl	%ecx, -36(%rbp)
LBB0_4:
	movl	-40(%rbp), %edi
	callq	_PAGE_ALIGN
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %esi
	movq	_V4L2_MEMORY_USERPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	___videobuf_mmap_setup
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	movl	%r14d, -36(%rbp)
	je	LBB0_10
## %bb.6:
	leaq	24(%r12), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_videobuf_next_field
	movq	8(%r12), %rcx
	movq	16(%r12), %r8
	movq	(%rcx,%rbx,8), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	*(%r8)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	incq	%rbx
	movl	-36(%rbp), %eax
	cmpq	%rax, %rbx
	jb	LBB0_7
LBB0_10:
	movl	4(%r12), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	cmpl	$0, -36(%rbp)
	je	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rax,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	*8(%rcx)
	incq	%rbx
	movl	-36(%rbp), %eax
	cmpq	%rax, %rbx
	jb	LBB0_12
LBB0_13:
	movl	4(%r12), %edi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movl	$1, (%r12)
	jmp	LBB0_14
LBB0_8:
	movl	%eax, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_MAX_FRAME,4,2            ## @VIDEO_MAX_FRAME
	.comm	_V4L2_MEMORY_USERPTR,4,2        ## @V4L2_MEMORY_USERPTR
	.no_dead_strip	___videobuf_read_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __videobuf_read_start
___videobuf_read_start:                 ; @__videobuf_read_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [sp, #8]
	ldr	x8, [x0, #16]
	ldr	x8, [x8, #16]
	add	x1, sp, #12
	add	x2, sp, #8
	blr	x8
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.1:
	mov	w8, #2
	str	w8, [sp, #12]
LBB0_2:
Lloh0:
	adrp	x9, _VIDEO_MAX_FRAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VIDEO_MAX_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ls	LBB0_4
; %bb.3:
	str	w9, [sp, #12]
LBB0_4:
	ldr	w0, [sp, #8]
	bl	_PAGE_ALIGN
	mov	x2, x0
	str	w0, [sp, #8]
	ldr	w1, [sp, #12]
Lloh3:
	adrp	x8, _V4L2_MEMORY_USERPTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_MEMORY_USERPTR@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	bl	___videobuf_mmap_setup
	tbnz	w0, #31, LBB0_13
; %bb.5:
	str	w0, [sp, #12]
	cbz	w0, LBB0_9
; %bb.6:
	mov	x21, #0
	add	x20, x19, #24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_videobuf_next_field
	mov	x2, x0
	ldp	x9, x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x1, [x9, x21, lsl #3]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	mov	x1, x20
	bl	_list_add_tail
	add	x21, x21, #1
	ldr	w8, [sp, #12]
	cmp	x21, x8
	b.lo	LBB0_7
LBB0_9:
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_12
; %bb.10:
	mov	x20, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x1, [x9, x20, lsl #3]
	mov	x0, x19
	blr	x8
	add	x20, x20, #1
	ldr	w8, [sp, #12]
	cmp	x20, x8
	b.lo	LBB0_11
LBB0_12:
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_MAX_FRAME,4,2            ; @VIDEO_MAX_FRAME
	.comm	_V4L2_MEMORY_USERPTR,4,2        ; @V4L2_MEMORY_USERPTR
	.no_dead_strip	___videobuf_read_start
.subsections_via_symbols
