	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_buffer_setup
_vpif_buffer_setup:                     ## @vpif_buffer_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r8
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%r8,%rdi,8), %rcx
	jne	LBB0_3
## %bb.1:
	movq	_config_params@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	(%rax), %rax
	movl	(%rdi,%rax,4), %eax
	movl	%eax, (%rdx)
	movl	8(%rcx), %eax
	cmpl	%eax, (%rsi)
	jae	LBB0_3
## %bb.2:
	movl	%eax, (%rsi)
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_V4L2_MEMORY_MMAP,8,3           ## @V4L2_MEMORY_MMAP
	.comm	_config_params,16,3             ## @config_params
	.no_dead_strip	_vpif_buffer_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_buffer_setup
_vpif_buffer_setup:                     ; @vpif_buffer_setup
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x10, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh4:
	ldr	x11, [x11, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	x9, [x9, x10, lsl #3]
	cmp	x11, x9
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, _config_params@GOTPAGE
Lloh7:
	ldr	x9, [x9, _config_params@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x8, [x8]
	ldr	w8, [x10, x8, lsl #2]
	str	w8, [x2]
	ldr	w10, [x1]
	ldr	w8, [x9, #8]
	cmp	w10, w8
	b.hs	LBB0_3
; %bb.2:
	str	w8, [x1]
LBB0_3:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_V4L2_MEMORY_MMAP,8,3           ; @V4L2_MEMORY_MMAP
	.comm	_config_params,16,3             ; @config_params
	.no_dead_strip	_vpif_buffer_setup
.subsections_via_symbols
