	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_videobuf_setup
_vpfe_videobuf_setup:                   ## @vpfe_videobuf_setup
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_debug@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	8(%rbx), %r13
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movl	12(%rbx), %r9d
	movl	%r9d, (%r14)
	movq	(%rbx), %rax
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_config_params@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, 12(%rbx)
	jbe	LBB0_3
## %bb.2:
	movl	%eax, (%r14)
	movl	%eax, %r9d
LBB0_3:
	movl	(%r15), %r8d
	movq	_config_params@GOTPCREL(%rip), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %r8d
	jae	LBB0_5
## %bb.4:
	movl	%eax, (%r15)
	movl	(%r14), %r9d
	movl	%eax, %r8d
LBB0_5:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpfe_buffer_setup\n"

	.comm	_V4L2_MEMORY_MMAP,8,3           ## @V4L2_MEMORY_MMAP
	.comm	_config_params,8,2              ## @config_params
L_.str.1:                               ## @.str.1
	.asciz	"count=%d, size=%d\n"

	.no_dead_strip	_vpfe_videobuf_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_videobuf_setup
_vpfe_videobuf_setup:                   ; @vpfe_videobuf_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	ldr	x8, [x0]
	ldr	x23, [x8]
Lloh0:
	adrp	x22, _debug@GOTPAGE
Lloh1:
	ldr	x22, [x22, _debug@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x19, x23, #8
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	ldr	w8, [x23, #12]
	str	w8, [x20]
	ldr	x10, [x23]
Lloh4:
	adrp	x9, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x9]
Lloh7:
	adrp	x9, _config_params@GOTPAGE
Lloh8:
	ldr	x9, [x9, _config_params@GOTPAGEOFF]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.1:
	ldr	w11, [x23, #12]
	ldr	w10, [x9]
	cmp	w11, w10
	b.ls	LBB0_3
; %bb.2:
	str	w10, [x20]
	mov	x8, x10
LBB0_3:
	ldr	w10, [x21]
	ldr	w9, [x9, #4]
	cmp	w10, w9
	b.hs	LBB0_5
; %bb.4:
	str	w9, [x21]
	ldr	w8, [x20]
	mov	x10, x9
LBB0_5:
	ldr	w1, [x22]
	stp	x10, x8, [sp]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpfe_buffer_setup\n"

	.comm	_V4L2_MEMORY_MMAP,8,3           ; @V4L2_MEMORY_MMAP
	.comm	_config_params,8,2              ; @config_params
l_.str.1:                               ; @.str.1
	.asciz	"count=%d, size=%d\n"

	.no_dead_strip	_vpfe_videobuf_setup
.subsections_via_symbols
