	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_write_ppf
_vc4_write_ppf:                         ## @vc4_write_ppf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movl	%esi, %eax
	movq	%rdi, %r14
	shll	$16, %eax
	cltd
	idivl	%ecx
	movq	_SCALER_PPF_AGC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_SCALER_PPF_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_VC4_SET_FIELD
	movl	%eax, %r15d
	movq	_SCALER_PPF_IPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vc4_dlist_write                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_PPF_AGC,4,2             ## @SCALER_PPF_AGC
	.comm	_SCALER_PPF_SCALE,4,2           ## @SCALER_PPF_SCALE
	.comm	_SCALER_PPF_IPHASE,4,2          ## @SCALER_PPF_IPHASE
	.no_dead_strip	_vc4_write_ppf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_write_ppf
_vc4_write_ppf:                         ; @vc4_write_ppf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _SCALER_PPF_AGC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCALER_PPF_AGC@GOTPAGEOFF]
	lsl	w9, w1, #16
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _SCALER_PPF_SCALE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCALER_PPF_SCALE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sdiv	w0, w9, w2
	bl	_VC4_SET_FIELD
	orr	w20, w0, w20
Lloh6:
	adrp	x8, _SCALER_PPF_IPHASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCALER_PPF_IPHASE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_VC4_SET_FIELD
	orr	w1, w20, w0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vc4_dlist_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALER_PPF_AGC,4,2             ; @SCALER_PPF_AGC
	.comm	_SCALER_PPF_SCALE,4,2           ; @SCALER_PPF_SCALE
	.comm	_SCALER_PPF_IPHASE,4,2          ; @SCALER_PPF_IPHASE
	.no_dead_strip	_vc4_write_ppf
.subsections_via_symbols
