	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_write_scaling_parameters
_vc4_write_scaling_parameters:          ## @vc4_write_scaling_parameters
	.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	%esi, %r14d
	callq	_to_vc4_plane_state
	movq	%rax, %rbx
	movq	(%rax), %rcx
	movslq	%r14d, %r14
	movq	_VC4_SCALING_PPF@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%rax, (%rcx,%r14,8)
	jne	LBB0_2
## %bb.1:
	movq	40(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movl	32(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vc4_write_ppf
	movq	(%r15), %rax
LBB0_2:
	movq	8(%rbx), %rcx
	cmpq	%rax, (%rcx,%r14,8)
	jne	LBB0_4
## %bb.3:
	movq	24(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vc4_write_ppf
	movq	%rbx, %rdi
	movl	$-1061109568, %esi              ## imm = 0xC0C0C0C0
	callq	_vc4_dlist_write
LBB0_4:
	movq	(%rbx), %rcx
	movq	_VC4_SCALING_TPZ@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%rax, (%rcx,%r14,8)
	jne	LBB0_6
## %bb.5:
	movq	40(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movl	32(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vc4_write_tpz
	movq	(%r15), %rax
LBB0_6:
	movq	8(%rbx), %rcx
	cmpq	%rax, (%rcx,%r14,8)
	jne	LBB0_7
## %bb.8:
	movq	24(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vc4_write_tpz
	movq	%rbx, %rdi
	movl	$-1061109568, %esi              ## imm = 0xC0C0C0C0
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vc4_dlist_write                ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC4_SCALING_PPF,8,3            ## @VC4_SCALING_PPF
	.comm	_VC4_SCALING_TPZ,8,3            ## @VC4_SCALING_TPZ
	.no_dead_strip	_vc4_write_scaling_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_write_scaling_parameters
_vc4_write_scaling_parameters:          ; @vc4_write_scaling_parameters
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_to_vc4_plane_state
	mov	x19, x0
	ldr	x8, [x0]
	sxtw	x21, w20
	ldr	x9, [x8, w20, sxtw #3]
Lloh0:
	adrp	x20, _VC4_SCALING_PPF@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VC4_SCALING_PPF@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w2, [x19, #32]
	mov	x0, x19
	bl	_vc4_write_ppf
	ldr	x8, [x20]
LBB0_2:
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x21, lsl #3]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #24]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_vc4_write_ppf
	mov	x0, x19
	mov	w1, #-1061109568
	bl	_vc4_dlist_write
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x8, x21, lsl #3]
Lloh2:
	adrp	x20, _VC4_SCALING_TPZ@GOTPAGE
Lloh3:
	ldr	x20, [x20, _VC4_SCALING_TPZ@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #40]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w2, [x19, #32]
	mov	x0, x19
	bl	_vc4_write_tpz
	ldr	x8, [x20]
LBB0_6:
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x21, lsl #3]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #24]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_vc4_write_tpz
	mov	x0, x19
	mov	w1, #-1061109568
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vc4_dlist_write
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VC4_SCALING_PPF,8,3            ; @VC4_SCALING_PPF
	.comm	_VC4_SCALING_TPZ,8,3            ; @VC4_SCALING_TPZ
	.no_dead_strip	_vc4_write_scaling_parameters
.subsections_via_symbols
