	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_ovl_get_fifo_size
_dispc_ovl_get_fifo_size:               ## @dispc_ovl_get_fifo_size
	.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
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	(%rdi), %r10
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
LBB0_10:
	testb	$1, %r8b
	je	LBB0_13
## %bb.11:
	cmpl	%esi, (%r10,%rcx,4)
	jne	LBB0_13
## %bb.12:
	movq	8(%rdi), %rdx
	addl	(%rdx,%rcx,8), %eax
LBB0_13:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %r9
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%r10,%rcx,4)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdi), %rdx
	addl	(%rdx,%rcx,8), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%esi, 4(%r10,%rcx,4)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdi), %rdx
	addl	8(%rdx,%rcx,8), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dispc_ovl_get_fifo_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_ovl_get_fifo_size
_dispc_ovl_get_fifo_size:               ; @dispc_ovl_get_fifo_size
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x10, #0
	mov	w8, #0
	ldr	x11, [x0]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10, lsl #2]
	cmp	w12, w1
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x0, #8]
	ldr	x12, [x12, x10, lsl #3]
	add	w8, w8, w12
	b	LBB0_2
LBB0_5:
	mov	x0, x8
	ret
LBB0_6:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dispc_ovl_get_fifo_size
.subsections_via_symbols
