	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_vout_allocate_vrfb_buffers
_omap_vout_allocate_vrfb_buffers:       ## @omap_vout_allocate_vrfb_buffers
	.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
	cmpl	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movslq	%edx, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_memset
	incq	%rbx
	movl	(%r14), %eax
	movl	$0, %edi
	cmpq	%rax, %rbx
	jae	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	leaq	(,%rbx,8), %rsi
	addq	16(%r12), %rsi
	callq	_omap_vout_alloc_buffer
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%rax, %rdi
	cmpl	$-1, %r15d
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rdx
	xorl	%edi, %edi
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, %rbx
	jl	LBB0_8
	jmp	LBB0_14
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_14
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.10:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%r15,8), %rdi
	movl	(%r12), %esi
	callq	_omap_vout_free_buffer
	movq	8(%r12), %rcx
	movq	$0, (%rcx,%r15,8)
	movq	16(%r12), %rax
	movq	$0, (%rax,%r15,8)
	incq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_11
LBB0_12:
	movl	$0, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_14:
	movl	%edi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_MEMORY_MMAP,8,3           ## @V4L2_MEMORY_MMAP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_omap_vout_allocate_vrfb_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_vout_allocate_vrfb_buffers
_omap_vout_allocate_vrfb_buffers:       ; @omap_vout_allocate_vrfb_buffers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x1]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	sxtw	x23, w21
Lloh0:
	adrp	x24, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x0, LBB0_11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20]
	mov	x0, x8
	mov	w1, #0
	bl	_memset
	add	x22, x22, #1
	ldr	w8, [x19]
	cmp	x22, x8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	ldr	x8, [x20, #16]
	lsl	x25, x22, #3
	add	x1, x8, x25
	bl	_omap_vout_alloc_buffer
	ldr	x9, [x20, #8]
	str	x0, [x9, x25]
	mov	x8, x0
	cmn	w21, #1
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x0
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	ldr	x10, [x24]
	cmp	x8, x10
	ccmp	x22, x23, #8, eq
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	b	LBB0_2
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	cbz	w22, LBB0_14
; %bb.12:
	mov	x21, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	x23, x21, #3
	ldr	x0, [x9, x23]
	ldr	w1, [x20]
	bl	_omap_vout_free_buffer
	ldp	x9, x8, [x20, #8]
	str	xzr, [x9, x23]
	str	xzr, [x8, x23]
	add	x21, x21, #1
	cmp	x22, x21
	b.ne	LBB0_13
LBB0_14:
	str	wzr, [x19]
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_MEMORY_MMAP,8,3           ; @V4L2_MEMORY_MMAP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_omap_vout_allocate_vrfb_buffers
.subsections_via_symbols
