	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fill_vb2_buffer
___fill_vb2_buffer:                     ## @__fill_vb2_buffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_vb2_v4l2_buffer
	movq	8(%r14), %rdx
	cmpl	$0, 8(%rdx)
	jne	LBB0_2
## %bb.1:
	movq	$0, 16(%r14)
LBB0_2:
	movl	(%r14), %r8d
	testq	%r8, %r8
	je	LBB0_7
## %bb.3:
	movq	(%rdx), %rdx
	movq	_VB2_MEMORY_MMAP@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rax), %rax
	shlq	$4, %r8
	xorl	%edi, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rax,%rdi), %ecx
	movl	%ecx, 4(%rbx,%rdi)
	movl	(%rax,%rdi), %ecx
	movl	%ecx, (%rbx,%rdi)
	addq	$16, %rdi
	cmpq	%rdi, %r8
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rdx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%rax,%rdi), %ecx
	movl	%ecx, 12(%rbx,%rdi)
	movl	8(%rax,%rdi), %ecx
	movl	%ecx, 8(%rbx,%rdi)
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_MEMORY_MMAP,8,3            ## @VB2_MEMORY_MMAP
	.no_dead_strip	___fill_vb2_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fill_vb2_buffer
___fill_vb2_buffer:                     ; @__fill_vb2_buffer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_to_vb2_v4l2_buffer
	ldr	x9, [x20, #8]
	ldr	w8, [x9, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
	b	LBB0_7
LBB0_2:
	str	xzr, [x20, #16]
	ldr	w8, [x20]
	cbz	w8, LBB0_7
LBB0_3:
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _VB2_MEMORY_MMAP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VB2_MEMORY_MMAP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x11, [x0]
	add	x11, x11, #8
	add	x12, x19, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	d0, [x11, #-8]
	stur	d0, [x12, #-8]
	add	x11, x11, #16
	add	x12, x12, #16
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	d0, [x11]
	str	d0, [x12]
	b	LBB0_4
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_MEMORY_MMAP,8,3            ; @VB2_MEMORY_MMAP
	.no_dead_strip	___fill_vb2_buffer
.subsections_via_symbols
