	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function programmable_fetch_config
_programmable_fetch_config:             ## @programmable_fetch_config
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$0, -40(%rbp)
	movq	$0, -48(%rbp)
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_programmable_fetch_get_num_lines
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_get_vertical_total
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_get_horizontal_total
	subl	%r15d, %ebx
	imull	%eax, %ebx
	incl	%ebx
	movl	$1, -48(%rbp)
	movl	%ebx, -44(%rbp)
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_DPU_DEBUG_VIDENC
	movl	(%r12), %edi
	callq	_spin_lock_irqsave
	movq	8(%r12), %rdi
	leaq	-48(%rbp), %rsi
	callq	*(%rdi)
	movl	(%r12), %edi
	callq	_spin_unlock_irqrestore
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vfp_fetch_lines %u vfp_fetch_start_vsync_counter %u\n"

	.no_dead_strip	_programmable_fetch_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function programmable_fetch_config
_programmable_fetch_config:             ; @programmable_fetch_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #8]
	str	xzr, [sp]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_programmable_fetch_get_num_lines
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_get_vertical_total
	mov	x22, x0
	mov	x0, x20
	bl	_get_horizontal_total
	sub	w8, w22, w21
	orr	w9, wzr, #0x1
	madd	w3, w8, w0, w9
	mov	w8, #1
	stp	w8, w3, [sp]
	b	LBB0_4
LBB0_3:
	mov	w3, #0
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_DPU_DEBUG_VIDENC
	ldr	w0, [x19]
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	mov	x1, sp
	blr	x8
	ldr	w0, [x19]
	bl	_spin_unlock_irqrestore
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vfp_fetch_lines %u vfp_fetch_start_vsync_counter %u\n"

	.no_dead_strip	_programmable_fetch_config
.subsections_via_symbols
