	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opp1_set_spatial_dither
_opp1_set_spatial_dither:               ## @opp1_set_spatial_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), %rax
	movl	(%rax), %edi
	movq	_FMT_SPATIAL_DITHER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_SPATIAL_DITHER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FMT_SPATIAL_DITHER_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_FMT_TEMPORAL_DITHER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_FMT_HIGHPASS_RANDOM_ENABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %r11d
	movq	_FMT_FRAME_RANDOM_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_FMT_RGB_RANDOM_ENABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	subq	$8, %rsp
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%r13
	pushq	$0
	pushq	%rax
	pushq	$0
	pushq	%r11
	pushq	$0
	pushq	%r10
	pushq	$0
	callq	_REG_UPDATE_7
	addq	$80, %rsp
	cmpl	$1, (%rbx)
	jne	LBB0_4
## %bb.1:
	cmpl	$2, 4(%rbx)
	jae	LBB0_2
## %bb.8:
	movq	_FMT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$15, %edx
	movl	$2, %r8d
	jmp	LBB0_5
LBB0_4:
	movq	_FMT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	jmp	LBB0_5
LBB0_2:
	jne	LBB0_6
## %bb.3:
	movq	_FMT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$3, %edx
	movl	$1, %r8d
LBB0_5:
	callq	_REG_UPDATE_2
	movq	_FMT_BIT_DEPTH_CONTROL@GOTPCREL(%rip), %r13
	movq	_FMT_DITHER_RAND_R_SEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FMT_RAND_R_SEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	32(%rbx), %ecx
	xorl	%esi, %esi
	callq	_REG_SET
	movq	_FMT_DITHER_RAND_G_SEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FMT_RAND_G_SEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	28(%rbx), %ecx
	xorl	%esi, %esi
	callq	_REG_SET
	movq	_FMT_DITHER_RAND_B_SEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FMT_RAND_B_SEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	24(%rbx), %ecx
	xorl	%esi, %esi
	callq	_REG_SET
	movl	(%r13), %edi
	movq	_FMT_SPATIAL_DITHER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %edx
	movq	_FMT_SPATIAL_DITHER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	16(%rbx), %r8d
	movq	_FMT_SPATIAL_DITHER_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%rbx), %r13d
	movl	4(%rbx), %r10d
	movl	(%r14), %r11d
	movl	12(%rbx), %r14d
	movl	(%r15), %r15d
	movl	(%r12), %eax
	movl	8(%rbx), %ebx
	subq	$8, %rsp
	pushq	%rbx
	pushq	%rax
	pushq	%r13
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_REG_UPDATE_6
	addq	$72, %rsp
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	addq	$8, %rsp
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_FMT_BIT_DEPTH_CONTROL,4,2      ## @FMT_BIT_DEPTH_CONTROL
	.comm	_FMT_SPATIAL_DITHER_EN,4,2      ## @FMT_SPATIAL_DITHER_EN
	.comm	_FMT_SPATIAL_DITHER_MODE,4,2    ## @FMT_SPATIAL_DITHER_MODE
	.comm	_FMT_SPATIAL_DITHER_DEPTH,4,2   ## @FMT_SPATIAL_DITHER_DEPTH
	.comm	_FMT_TEMPORAL_DITHER_EN,4,2     ## @FMT_TEMPORAL_DITHER_EN
	.comm	_FMT_HIGHPASS_RANDOM_ENABLE,4,2 ## @FMT_HIGHPASS_RANDOM_ENABLE
	.comm	_FMT_FRAME_RANDOM_ENABLE,4,2    ## @FMT_FRAME_RANDOM_ENABLE
	.comm	_FMT_RGB_RANDOM_ENABLE,4,2      ## @FMT_RGB_RANDOM_ENABLE
	.comm	_FMT_CONTROL,4,2                ## @FMT_CONTROL
	.comm	_FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX,4,2 ## @FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX
	.comm	_FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP,4,2 ## @FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP
	.comm	_FMT_DITHER_RAND_R_SEED,4,2     ## @FMT_DITHER_RAND_R_SEED
	.comm	_FMT_RAND_R_SEED,4,2            ## @FMT_RAND_R_SEED
	.comm	_FMT_DITHER_RAND_G_SEED,4,2     ## @FMT_DITHER_RAND_G_SEED
	.comm	_FMT_RAND_G_SEED,4,2            ## @FMT_RAND_G_SEED
	.comm	_FMT_DITHER_RAND_B_SEED,4,2     ## @FMT_DITHER_RAND_B_SEED
	.comm	_FMT_RAND_B_SEED,4,2            ## @FMT_RAND_B_SEED
	.no_dead_strip	_opp1_set_spatial_dither
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opp1_set_spatial_dither
_opp1_set_spatial_dither:               ; @opp1_set_spatial_dither
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	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_SPATIAL_DITHER_EN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FMT_SPATIAL_DITHER_EN@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x22, _FMT_SPATIAL_DITHER_MODE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _FMT_SPATIAL_DITHER_MODE@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh6:
	adrp	x23, _FMT_SPATIAL_DITHER_DEPTH@GOTPAGE
Lloh7:
	ldr	x23, [x23, _FMT_SPATIAL_DITHER_DEPTH@GOTPAGEOFF]
	ldr	w5, [x23]
Lloh8:
	adrp	x8, _FMT_TEMPORAL_DITHER_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FMT_TEMPORAL_DITHER_EN@GOTPAGEOFF]
Lloh10:
	ldr	w7, [x8]
Lloh11:
	adrp	x24, _FMT_HIGHPASS_RANDOM_ENABLE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _FMT_HIGHPASS_RANDOM_ENABLE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh13:
	adrp	x25, _FMT_FRAME_RANDOM_ENABLE@GOTPAGE
Lloh14:
	ldr	x25, [x25, _FMT_FRAME_RANDOM_ENABLE@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh15:
	adrp	x26, _FMT_RGB_RANDOM_ENABLE@GOTPAGE
Lloh16:
	ldr	x26, [x26, _FMT_RGB_RANDOM_ENABLE@GOTPAGEOFF]
	ldr	w10, [x26]
	stp	w10, wzr, [sp, #20]
	stp	w9, wzr, [sp, #12]
	stp	w8, wzr, [sp, #4]
	str	wzr, [sp]
	mov	w2, #0
	mov	w4, #0
	mov	w6, #0
	bl	_REG_UPDATE_7
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.hs	LBB0_4
; %bb.2:
Lloh17:
	adrp	x8, _FMT_CONTROL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FMT_CONTROL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	w2, #15
	mov	w4, #2
	b	LBB0_6
LBB0_3:
Lloh26:
	adrp	x8, _FMT_CONTROL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FMT_CONTROL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	w2, #0
	mov	w4, #0
	b	LBB0_6
LBB0_4:
	b.ne	LBB0_7
; %bb.5:
Lloh35:
	adrp	x8, _FMT_CONTROL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FMT_CONTROL@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	w2, #3
	mov	w4, #1
LBB0_6:
	bl	_REG_UPDATE_2
Lloh44:
	adrp	x8, _FMT_DITHER_RAND_R_SEED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _FMT_DITHER_RAND_R_SEED@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x8, _FMT_RAND_R_SEED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FMT_RAND_R_SEED@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	ldr	w3, [x19, #32]
	mov	w1, #0
	bl	_REG_SET
Lloh50:
	adrp	x8, _FMT_DITHER_RAND_G_SEED@GOTPAGE
Lloh51:
	ldr	x8, [x8, _FMT_DITHER_RAND_G_SEED@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x8, _FMT_RAND_G_SEED@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FMT_RAND_G_SEED@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	ldr	w3, [x19, #28]
	mov	w1, #0
	bl	_REG_SET
Lloh56:
	adrp	x8, _FMT_DITHER_RAND_B_SEED@GOTPAGE
Lloh57:
	ldr	x8, [x8, _FMT_DITHER_RAND_B_SEED@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
Lloh59:
	adrp	x8, _FMT_RAND_B_SEED@GOTPAGE
Lloh60:
	ldr	x8, [x8, _FMT_RAND_B_SEED@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
	ldr	w3, [x19, #24]
	mov	w1, #0
	bl	_REG_SET
	ldr	w0, [x20]
	ldr	w1, [x21]
	ldr	w3, [x22]
	ldp	w4, w2, [x19, #16]
	ldr	w5, [x23]
	ldr	w7, [x24]
	ldr	w8, [x25]
	ldp	w9, w6, [x19]
	ldr	w10, [x26]
	ldp	w12, w11, [x19, #8]
	stp	w10, w12, [sp, #12]
	stp	w8, w9, [sp, #4]
	str	w11, [sp]
	bl	_REG_UPDATE_6
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_FMT_BIT_DEPTH_CONTROL,4,2      ; @FMT_BIT_DEPTH_CONTROL
	.comm	_FMT_SPATIAL_DITHER_EN,4,2      ; @FMT_SPATIAL_DITHER_EN
	.comm	_FMT_SPATIAL_DITHER_MODE,4,2    ; @FMT_SPATIAL_DITHER_MODE
	.comm	_FMT_SPATIAL_DITHER_DEPTH,4,2   ; @FMT_SPATIAL_DITHER_DEPTH
	.comm	_FMT_TEMPORAL_DITHER_EN,4,2     ; @FMT_TEMPORAL_DITHER_EN
	.comm	_FMT_HIGHPASS_RANDOM_ENABLE,4,2 ; @FMT_HIGHPASS_RANDOM_ENABLE
	.comm	_FMT_FRAME_RANDOM_ENABLE,4,2    ; @FMT_FRAME_RANDOM_ENABLE
	.comm	_FMT_RGB_RANDOM_ENABLE,4,2      ; @FMT_RGB_RANDOM_ENABLE
	.comm	_FMT_CONTROL,4,2                ; @FMT_CONTROL
	.comm	_FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX,4,2 ; @FMT_SPATIAL_DITHER_FRAME_COUNTER_MAX
	.comm	_FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP,4,2 ; @FMT_SPATIAL_DITHER_FRAME_COUNTER_BIT_SWAP
	.comm	_FMT_DITHER_RAND_R_SEED,4,2     ; @FMT_DITHER_RAND_R_SEED
	.comm	_FMT_RAND_R_SEED,4,2            ; @FMT_RAND_R_SEED
	.comm	_FMT_DITHER_RAND_G_SEED,4,2     ; @FMT_DITHER_RAND_G_SEED
	.comm	_FMT_RAND_G_SEED,4,2            ; @FMT_RAND_G_SEED
	.comm	_FMT_DITHER_RAND_B_SEED,4,2     ; @FMT_DITHER_RAND_B_SEED
	.comm	_FMT_RAND_B_SEED,4,2            ; @FMT_RAND_B_SEED
	.no_dead_strip	_opp1_set_spatial_dither
.subsections_via_symbols
