	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function programmable_fetch_get_num_lines
_programmable_fetch_get_num_lines:      ## @programmable_fetch_get_num_lines
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	8(%rsi), %rax
	addq	(%rsi), %rax
	movq	%r14, %r15
	subq	%rax, %r15
	jle	LBB0_1
## %bb.2:
	cmpq	%r15, 16(%rbx)
	jge	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn_once
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DPU_DEBUG_VIDENC
	movq	16(%rbx), %r13
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DPU_DEBUG_VIDENC
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DPU_DEBUG_VIDENC
	movq	%r15, %r13
LBB0_5:
	movq	16(%rbx), %rdx
	movq	(%rbx), %rcx
	movq	8(%rbx), %r8
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DPU_DEBUG_VIDENC
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_DPU_DEBUG_VIDENC
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prog fetch is not needed, large vbp+vsw\n"

L_.str.1:                               ## @.str.1
	.asciz	"low vbp+vfp may lead to perf issues in some cases\n"

L_.str.2:                               ## @.str.2
	.asciz	"less vfp than fetch req, using entire vfp\n"

L_.str.3:                               ## @.str.3
	.asciz	"room in vfp for needed prefetch\n"

L_.str.4:                               ## @.str.4
	.asciz	"v_front_porch %u v_back_porch %u vsync_pulse_width %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"wc_lines %u needed_vfp_lines %u actual_vfp_lines %u\n"

	.no_dead_strip	_programmable_fetch_get_num_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function programmable_fetch_get_num_lines
_programmable_fetch_get_num_lines:      ; @programmable_fetch_get_num_lines
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldp	x8, x9, [x1]
	add	x8, x9, x8
	subs	x23, x22, x8
	b.le	LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cmp	x8, x23
	b.ge	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn_once
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DPU_DEBUG_VIDENC
	ldr	x21, [x20, #16]
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DPU_DEBUG_VIDENC
	mov	x21, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DPU_DEBUG_VIDENC
	mov	x21, x23
LBB0_5:
	ldp	x10, x8, [x20, #8]
	ldr	x9, [x20]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_DPU_DEBUG_VIDENC
	stp	x23, x21, [sp, #8]
	str	x22, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_DPU_DEBUG_VIDENC
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prog fetch is not needed, large vbp+vsw\n"

l_.str.1:                               ; @.str.1
	.asciz	"low vbp+vfp may lead to perf issues in some cases\n"

l_.str.2:                               ; @.str.2
	.asciz	"less vfp than fetch req, using entire vfp\n"

l_.str.3:                               ; @.str.3
	.asciz	"room in vfp for needed prefetch\n"

l_.str.4:                               ; @.str.4
	.asciz	"v_front_porch %u v_back_porch %u vsync_pulse_width %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"wc_lines %u needed_vfp_lines %u actual_vfp_lines %u\n"

	.no_dead_strip	_programmable_fetch_get_num_lines
.subsections_via_symbols
