	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_write_tpz
_vc4_write_tpz:                         ## @vc4_write_tpz
	.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, %r15
	shll	$16, %eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	movl	$-1, %eax
	cltd
	idivl	%edi
	movl	%eax, %r14d
	movq	_SCALER_TPZ0_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movq	_SCALER_TPZ0_IPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vc4_dlist_write
	movq	_SCALER_TPZ1_RECIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_VC4_SET_FIELD
	movq	%r15, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vc4_dlist_write                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_TPZ0_SCALE,4,2          ## @SCALER_TPZ0_SCALE
	.comm	_SCALER_TPZ0_IPHASE,4,2         ## @SCALER_TPZ0_IPHASE
	.comm	_SCALER_TPZ1_RECIP,4,2          ## @SCALER_TPZ1_RECIP
	.no_dead_strip	_vc4_write_tpz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_write_tpz
_vc4_write_tpz:                         ; @vc4_write_tpz
	.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	x19, x0
	lsl	w8, w1, #16
	sdiv	w0, w8, w2
	mov	w8, #-1
Lloh0:
	adrp	x9, _SCALER_TPZ0_SCALE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCALER_TPZ0_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	sdiv	w20, w8, w0
	bl	_VC4_SET_FIELD
	mov	x21, x0
Lloh3:
	adrp	x8, _SCALER_TPZ0_IPHASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCALER_TPZ0_IPHASE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_VC4_SET_FIELD
	orr	w1, w0, w21
	mov	x0, x19
	bl	_vc4_dlist_write
Lloh6:
	adrp	x8, _SCALER_TPZ1_RECIP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCALER_TPZ1_RECIP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_VC4_SET_FIELD
	mov	x1, x0
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALER_TPZ0_SCALE,4,2          ; @SCALER_TPZ0_SCALE
	.comm	_SCALER_TPZ0_IPHASE,4,2         ; @SCALER_TPZ0_IPHASE
	.comm	_SCALER_TPZ1_RECIP,4,2          ; @SCALER_TPZ1_RECIP
	.no_dead_strip	_vc4_write_tpz
.subsections_via_symbols
