	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_ctm_commit
_vc4_ctm_commit:                        ## @vc4_ctm_commit
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %edi
	callq	_to_vc4_ctm_state
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	8(%rax), %r12
	movq	_SCALER_OLEDCOEF2@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_vc4_ctm_s31_32_to_s0_9
	movq	_SCALER_OLEDCOEF2_R_TO_R@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	12(%rax), %edi
	callq	_vc4_ctm_s31_32_to_s0_9
	movq	_SCALER_OLEDCOEF2_R_TO_G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movq	(%r12), %rax
	movl	24(%rax), %edi
	callq	_vc4_ctm_s31_32_to_s0_9
	movq	_SCALER_OLEDCOEF2_R_TO_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_HVS_WRITE
	movq	_SCALER_OLEDCOEF1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_vc4_ctm_s31_32_to_s0_9
	movq	_SCALER_OLEDCOEF1_G_TO_R@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	16(%rax), %edi
	callq	_vc4_ctm_s31_32_to_s0_9
	movq	_SCALER_OLEDCOEF1_G_TO_G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movq	(%r12), %rax
	movl	28(%rax), %edi
	callq	_vc4_ctm_s31_32_to_s0_9
	movq	_SCALER_OLEDCOEF1_G_TO_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_HVS_WRITE
	movq	_SCALER_OLEDCOEF0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r12), %rax
	movl	8(%rax), %edi
	callq	_vc4_ctm_s31_32_to_s0_9
	movq	_SCALER_OLEDCOEF0_B_TO_R@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	20(%rax), %edi
	callq	_vc4_ctm_s31_32_to_s0_9
	movq	_SCALER_OLEDCOEF0_B_TO_G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movq	(%r12), %rax
	movl	32(%rax), %edi
	callq	_vc4_ctm_s31_32_to_s0_9
	movq	_SCALER_OLEDCOEF0_B_TO_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_HVS_WRITE
	movq	(%r14), %rdi
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	movq	_SCALER_OLEDOFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SCALER_OLEDOFFS_DISPFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HVS_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_OLEDCOEF2,4,2           ## @SCALER_OLEDCOEF2
	.comm	_SCALER_OLEDCOEF2_R_TO_R,4,2    ## @SCALER_OLEDCOEF2_R_TO_R
	.comm	_SCALER_OLEDCOEF2_R_TO_G,4,2    ## @SCALER_OLEDCOEF2_R_TO_G
	.comm	_SCALER_OLEDCOEF2_R_TO_B,4,2    ## @SCALER_OLEDCOEF2_R_TO_B
	.comm	_SCALER_OLEDCOEF1,4,2           ## @SCALER_OLEDCOEF1
	.comm	_SCALER_OLEDCOEF1_G_TO_R,4,2    ## @SCALER_OLEDCOEF1_G_TO_R
	.comm	_SCALER_OLEDCOEF1_G_TO_G,4,2    ## @SCALER_OLEDCOEF1_G_TO_G
	.comm	_SCALER_OLEDCOEF1_G_TO_B,4,2    ## @SCALER_OLEDCOEF1_G_TO_B
	.comm	_SCALER_OLEDCOEF0,4,2           ## @SCALER_OLEDCOEF0
	.comm	_SCALER_OLEDCOEF0_B_TO_R,4,2    ## @SCALER_OLEDCOEF0_B_TO_R
	.comm	_SCALER_OLEDCOEF0_B_TO_G,4,2    ## @SCALER_OLEDCOEF0_B_TO_G
	.comm	_SCALER_OLEDCOEF0_B_TO_B,4,2    ## @SCALER_OLEDCOEF0_B_TO_B
	.comm	_SCALER_OLEDOFFS,4,2            ## @SCALER_OLEDOFFS
	.comm	_SCALER_OLEDOFFS_DISPFIFO,4,2   ## @SCALER_OLEDOFFS_DISPFIFO
	.no_dead_strip	_vc4_ctm_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_ctm_commit
_vc4_ctm_commit:                        ; @vc4_ctm_commit
	.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
	ldr	w0, [x0]
	bl	_to_vc4_ctm_state
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _SCALER_OLEDCOEF2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCALER_OLEDCOEF2@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_vc4_ctm_s31_32_to_s0_9
Lloh3:
	adrp	x8, _SCALER_OLEDCOEF2_R_TO_R@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCALER_OLEDCOEF2_R_TO_R@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x21, x0
	ldr	x8, [x22]
	ldr	w0, [x8, #12]
	bl	_vc4_ctm_s31_32_to_s0_9
Lloh6:
	adrp	x8, _SCALER_OLEDCOEF2_R_TO_G@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCALER_OLEDCOEF2_R_TO_G@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w21, w0, w21
	ldr	x8, [x22]
	ldr	w0, [x8, #24]
	bl	_vc4_ctm_s31_32_to_s0_9
Lloh9:
	adrp	x8, _SCALER_OLEDCOEF2_R_TO_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCALER_OLEDCOEF2_R_TO_B@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w1, w21, w0
	mov	x0, x20
	bl	_HVS_WRITE
Lloh12:
	adrp	x8, _SCALER_OLEDCOEF1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCALER_OLEDCOEF1@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	bl	_vc4_ctm_s31_32_to_s0_9
Lloh15:
	adrp	x8, _SCALER_OLEDCOEF1_G_TO_R@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SCALER_OLEDCOEF1_G_TO_R@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x21, x0
	ldr	x8, [x22]
	ldr	w0, [x8, #16]
	bl	_vc4_ctm_s31_32_to_s0_9
Lloh18:
	adrp	x8, _SCALER_OLEDCOEF1_G_TO_G@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCALER_OLEDCOEF1_G_TO_G@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w21, w0, w21
	ldr	x8, [x22]
	ldr	w0, [x8, #28]
	bl	_vc4_ctm_s31_32_to_s0_9
Lloh21:
	adrp	x8, _SCALER_OLEDCOEF1_G_TO_B@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SCALER_OLEDCOEF1_G_TO_B@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w1, w21, w0
	mov	x0, x20
	bl	_HVS_WRITE
Lloh24:
	adrp	x8, _SCALER_OLEDCOEF0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SCALER_OLEDCOEF0@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
	ldr	x8, [x22]
	ldr	w0, [x8, #8]
	bl	_vc4_ctm_s31_32_to_s0_9
Lloh27:
	adrp	x8, _SCALER_OLEDCOEF0_B_TO_R@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SCALER_OLEDCOEF0_B_TO_R@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x21, x0
	ldr	x8, [x22]
	ldr	w0, [x8, #20]
	bl	_vc4_ctm_s31_32_to_s0_9
Lloh30:
	adrp	x8, _SCALER_OLEDCOEF0_B_TO_G@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SCALER_OLEDCOEF0_B_TO_G@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w21, w0, w21
	ldr	x8, [x22]
	ldr	w0, [x8, #32]
	bl	_vc4_ctm_s31_32_to_s0_9
Lloh33:
	adrp	x8, _SCALER_OLEDCOEF0_B_TO_B@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SCALER_OLEDCOEF0_B_TO_B@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w1, w21, w0
	mov	x0, x20
	bl	_HVS_WRITE
	ldr	x0, [x19]
	b	LBB0_3
LBB0_2:
	mov	x0, #0
LBB0_3:
Lloh36:
	adrp	x8, _SCALER_OLEDOFFS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SCALER_OLEDOFFS@GOTPAGEOFF]
Lloh38:
	ldr	w19, [x8]
Lloh39:
	adrp	x8, _SCALER_OLEDOFFS_DISPFIFO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SCALER_OLEDOFFS_DISPFIFO@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	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	_HVS_WRITE
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALER_OLEDCOEF2,4,2           ; @SCALER_OLEDCOEF2
	.comm	_SCALER_OLEDCOEF2_R_TO_R,4,2    ; @SCALER_OLEDCOEF2_R_TO_R
	.comm	_SCALER_OLEDCOEF2_R_TO_G,4,2    ; @SCALER_OLEDCOEF2_R_TO_G
	.comm	_SCALER_OLEDCOEF2_R_TO_B,4,2    ; @SCALER_OLEDCOEF2_R_TO_B
	.comm	_SCALER_OLEDCOEF1,4,2           ; @SCALER_OLEDCOEF1
	.comm	_SCALER_OLEDCOEF1_G_TO_R,4,2    ; @SCALER_OLEDCOEF1_G_TO_R
	.comm	_SCALER_OLEDCOEF1_G_TO_G,4,2    ; @SCALER_OLEDCOEF1_G_TO_G
	.comm	_SCALER_OLEDCOEF1_G_TO_B,4,2    ; @SCALER_OLEDCOEF1_G_TO_B
	.comm	_SCALER_OLEDCOEF0,4,2           ; @SCALER_OLEDCOEF0
	.comm	_SCALER_OLEDCOEF0_B_TO_R,4,2    ; @SCALER_OLEDCOEF0_B_TO_R
	.comm	_SCALER_OLEDCOEF0_B_TO_G,4,2    ; @SCALER_OLEDCOEF0_B_TO_G
	.comm	_SCALER_OLEDCOEF0_B_TO_B,4,2    ; @SCALER_OLEDCOEF0_B_TO_B
	.comm	_SCALER_OLEDOFFS,4,2            ; @SCALER_OLEDOFFS
	.comm	_SCALER_OLEDOFFS_DISPFIFO,4,2   ; @SCALER_OLEDOFFS_DISPFIFO
	.no_dead_strip	_vc4_ctm_commit
.subsections_via_symbols
