	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_temporal_dither
_set_temporal_dither:                   ## @set_temporal_dither
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_FMT_BIT_DEPTH_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_FMT_TEMPORAL_DITHER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_TEMPORAL_DITHER_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	_FMT_TEMPORAL_DITHER_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %r9d
	movl	$0, (%rsp)
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_3
	movl	(%r14), %edi
	movq	_FMT_TEMPORAL_DITHER_DEPTH@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_FMT_TEMPORAL_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_2
	movl	(%r14), %edi
	movq	_FMT_25FRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_50FRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FMT_75FRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_3
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movl	8(%rbx), %edx
	cmpl	$2, %edx
	jne	LBB0_2
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	(%r13), %ecx
	movl	(%r15), %r9d
	movl	$0, (%rsp)
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_3
	movq	_FMT_TEMPORAL_DITHER_PATTERN_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	_FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_S_MATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	_FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_T_MATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
LBB0_4:
	movl	(%r14), %edi
	movq	_FMT_TEMPORAL_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	callq	_REG_UPDATE
	movl	(%r14), %edi
	movq	_FMT_25FRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_50FRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%rbx), %r8d
	movq	_FMT_75FRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	16(%rbx), %edx
	movl	20(%rbx), %eax
	movl	%eax, (%rsp)
	callq	_REG_UPDATE_3
	movl	(%r14), %edi
	movq	_FMT_TEMPORAL_DITHER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FMT_BIT_DEPTH_CONTROL,4,2      ## @FMT_BIT_DEPTH_CONTROL
	.comm	_FMT_TEMPORAL_DITHER_EN,4,2     ## @FMT_TEMPORAL_DITHER_EN
	.comm	_FMT_TEMPORAL_DITHER_RESET,4,2  ## @FMT_TEMPORAL_DITHER_RESET
	.comm	_FMT_TEMPORAL_DITHER_OFFSET,4,2 ## @FMT_TEMPORAL_DITHER_OFFSET
	.comm	_FMT_TEMPORAL_DITHER_DEPTH,4,2  ## @FMT_TEMPORAL_DITHER_DEPTH
	.comm	_FMT_TEMPORAL_LEVEL,4,2         ## @FMT_TEMPORAL_LEVEL
	.comm	_FMT_25FRC_SEL,4,2              ## @FMT_25FRC_SEL
	.comm	_FMT_50FRC_SEL,4,2              ## @FMT_50FRC_SEL
	.comm	_FMT_75FRC_SEL,4,2              ## @FMT_75FRC_SEL
	.comm	_FMT_TEMPORAL_DITHER_PATTERN_CONTROL,4,2 ## @FMT_TEMPORAL_DITHER_PATTERN_CONTROL
	.comm	_FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_S_MATRIX,4,2 ## @FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_S_MATRIX
	.comm	_FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_T_MATRIX,4,2 ## @FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_T_MATRIX
	.no_dead_strip	_set_temporal_dither
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_temporal_dither
_set_temporal_dither:                   ; @set_temporal_dither
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x20, _FMT_BIT_DEPTH_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FMT_BIT_DEPTH_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _FMT_TEMPORAL_DITHER_EN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FMT_TEMPORAL_DITHER_EN@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x26, _FMT_TEMPORAL_DITHER_RESET@GOTPAGE
Lloh5:
	ldr	x26, [x26, _FMT_TEMPORAL_DITHER_RESET@GOTPAGEOFF]
	ldr	w3, [x26]
Lloh6:
	adrp	x27, _FMT_TEMPORAL_DITHER_OFFSET@GOTPAGE
Lloh7:
	ldr	x27, [x27, _FMT_TEMPORAL_DITHER_OFFSET@GOTPAGEOFF]
	ldr	w5, [x27]
	mov	w2, #0
	mov	w4, #0
	mov	w6, #0
	bl	_REG_UPDATE_3
	ldr	w0, [x20]
Lloh8:
	adrp	x28, _FMT_TEMPORAL_DITHER_DEPTH@GOTPAGE
Lloh9:
	ldr	x28, [x28, _FMT_TEMPORAL_DITHER_DEPTH@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh10:
	adrp	x22, _FMT_TEMPORAL_LEVEL@GOTPAGE
Lloh11:
	ldr	x22, [x22, _FMT_TEMPORAL_LEVEL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	w2, #0
	mov	w4, #0
	bl	_REG_UPDATE_2
	ldr	w0, [x20]
Lloh12:
	adrp	x23, _FMT_25FRC_SEL@GOTPAGE
Lloh13:
	ldr	x23, [x23, _FMT_25FRC_SEL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh14:
	adrp	x24, _FMT_50FRC_SEL@GOTPAGE
Lloh15:
	ldr	x24, [x24, _FMT_50FRC_SEL@GOTPAGEOFF]
	ldr	w3, [x24]
Lloh16:
	adrp	x25, _FMT_75FRC_SEL@GOTPAGE
Lloh17:
	ldr	x25, [x25, _FMT_75FRC_SEL@GOTPAGEOFF]
	ldr	w5, [x25]
	mov	w2, #0
	mov	w4, #0
	mov	w6, #0
	bl	_REG_UPDATE_3
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x19, #8]
	cmp	w2, #2
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x20]
	ldr	w1, [x28]
	ldr	w3, [x26]
	ldr	w5, [x27]
	mov	w4, #0
	mov	w6, #0
	bl	_REG_UPDATE_3
Lloh18:
	adrp	x26, _FMT_TEMPORAL_DITHER_PATTERN_CONTROL@GOTPAGE
Lloh19:
	ldr	x26, [x26, _FMT_TEMPORAL_DITHER_PATTERN_CONTROL@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_REG
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x26]
	mov	w1, #0
	bl	_REG_WRITE
Lloh20:
	adrp	x8, _FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_S_MATRIX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_S_MATRIX@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_REG_WRITE
Lloh23:
	adrp	x8, _FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_T_MATRIX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_T_MATRIX@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_REG_WRITE
LBB0_5:
	ldr	w0, [x20]
	ldr	w1, [x22]
	ldr	w2, [x19, #12]
	bl	_REG_UPDATE
	ldr	w0, [x20]
	ldr	w1, [x23]
	ldr	w3, [x24]
	ldp	w6, w4, [x19, #20]
	ldr	w5, [x25]
	ldr	w2, [x19, #16]
	bl	_REG_UPDATE_3
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	w2, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_REG_UPDATE
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FMT_BIT_DEPTH_CONTROL,4,2      ; @FMT_BIT_DEPTH_CONTROL
	.comm	_FMT_TEMPORAL_DITHER_EN,4,2     ; @FMT_TEMPORAL_DITHER_EN
	.comm	_FMT_TEMPORAL_DITHER_RESET,4,2  ; @FMT_TEMPORAL_DITHER_RESET
	.comm	_FMT_TEMPORAL_DITHER_OFFSET,4,2 ; @FMT_TEMPORAL_DITHER_OFFSET
	.comm	_FMT_TEMPORAL_DITHER_DEPTH,4,2  ; @FMT_TEMPORAL_DITHER_DEPTH
	.comm	_FMT_TEMPORAL_LEVEL,4,2         ; @FMT_TEMPORAL_LEVEL
	.comm	_FMT_25FRC_SEL,4,2              ; @FMT_25FRC_SEL
	.comm	_FMT_50FRC_SEL,4,2              ; @FMT_50FRC_SEL
	.comm	_FMT_75FRC_SEL,4,2              ; @FMT_75FRC_SEL
	.comm	_FMT_TEMPORAL_DITHER_PATTERN_CONTROL,4,2 ; @FMT_TEMPORAL_DITHER_PATTERN_CONTROL
	.comm	_FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_S_MATRIX,4,2 ; @FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_S_MATRIX
	.comm	_FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_T_MATRIX,4,2 ; @FMT_TEMPORAL_DITHER_PROGRAMMABLE_PATTERN_T_MATRIX
	.no_dead_strip	_set_temporal_dither
.subsections_via_symbols
