	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buffer_setup
_buffer_setup:                          ## @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	16(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r10d
	imull	4(%rax), %r10d
	addl	%r10d, %r10d
	movl	%r10d, (%rdx)
	movl	(%rsi), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_VB_MIN_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movl	(%rdx), %r10d
LBB0_2:
	imull	%eax, %r10d
	movq	_VB_MIN_BUFFERS@GOTPCREL(%rip), %r8
	movq	_VB_MIN_BUFSIZE@GOTPCREL(%rip), %r9
	movl	(%r9), %ecx
	imull	(%r8), %ecx
	cmpl	%ecx, %r10d
	jbe	LBB0_5
## %bb.3:
	decl	%eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rsi)
	movl	(%rdx), %r10d
	imull	%eax, %r10d
	movl	(%r9), %ecx
	imull	(%r8), %ecx
	decl	%eax
	cmpl	%ecx, %r10d
	ja	LBB0_4
LBB0_5:
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdi)
	movq	%rax, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VB_MIN_BUFFERS,4,2             ## @VB_MIN_BUFFERS
	.comm	_VB_MIN_BUFSIZE,4,2             ## @VB_MIN_BUFSIZE
	.comm	_V4L2_FIELD_INTERLACED,8,3      ## @V4L2_FIELD_INTERLACED
	.no_dead_strip	_buffer_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buffer_setup
_buffer_setup:                          ; @buffer_setup
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldp	w9, w8, [x8]
	mul	w8, w9, w8
	lsl	w10, w8, #1
	str	w10, [x2]
	ldr	w9, [x1]
Lloh0:
	adrp	x8, _VB_MIN_BUFFERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VB_MIN_BUFFERS@GOTPAGEOFF]
	cbnz	w9, LBB0_2
; %bb.1:
	ldr	w9, [x8]
	str	w9, [x1]
	ldr	w10, [x2]
LBB0_2:
	mul	w11, w9, w10
	ldr	w12, [x8]
Lloh2:
	adrp	x10, _VB_MIN_BUFSIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VB_MIN_BUFSIZE@GOTPAGEOFF]
	ldr	w13, [x10]
	mul	w12, w13, w12
	cmp	w11, w12
	b.ls	LBB0_5
; %bb.3:
	sub	w9, w9, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x1]
	ldr	w11, [x2]
	mul	w11, w9, w11
	ldr	w12, [x8]
	ldr	w13, [x10]
	mul	w12, w13, w12
	sub	w9, w9, #1
	cmp	w11, w12
	b.hi	LBB0_4
LBB0_5:
Lloh4:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	stp	x8, x8, [x0]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VB_MIN_BUFFERS,4,2             ; @VB_MIN_BUFFERS
	.comm	_VB_MIN_BUFSIZE,4,2             ; @VB_MIN_BUFSIZE
	.comm	_V4L2_FIELD_INTERLACED,8,3      ; @V4L2_FIELD_INTERLACED
	.no_dead_strip	_buffer_setup
.subsections_via_symbols
