	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dither
_set_dither:                            ## @set_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%esi, %r12d
	addl	$-128, %edx
	cmpl	$4, %edx
	jae	LBB0_1
## %bb.2:
	movslq	%edx, %rax
	leaq	l_switch.table.set_dither(%rip), %rcx
	movl	(%rcx,%rax,4), %r13d
	cmpl	$132, %ebx
	je	LBB0_4
LBB0_5:
	cmpl	$133, %ebx
	jne	LBB0_7
## %bb.6:
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	cmpl	$132, %ebx
	jne	LBB0_5
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
LBB0_8:
	movq	_DCP_SPATIAL_DITHER_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DCP_SPATIAL_DITHER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DCP_SPATIAL_DITHER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DCP_SPATIAL_DITHER_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_DCP_FRAME_RANDOM_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	_DCP_RGB_RANDOM_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_DCP_HIGHPASS_RANDOM_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%esi, %esi
	movl	%r12d, %ecx
	movl	%r13d, %r9d
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	%rbx
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r11
	pushq	%r14
	pushq	%r10
	callq	_REG_SET_6
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCP_SPATIAL_DITHER_CNTL,4,2    ## @DCP_SPATIAL_DITHER_CNTL
	.comm	_DCP_SPATIAL_DITHER_EN,4,2      ## @DCP_SPATIAL_DITHER_EN
	.comm	_DCP_SPATIAL_DITHER_MODE,4,2    ## @DCP_SPATIAL_DITHER_MODE
	.comm	_DCP_SPATIAL_DITHER_DEPTH,4,2   ## @DCP_SPATIAL_DITHER_DEPTH
	.comm	_DCP_FRAME_RANDOM_ENABLE,4,2    ## @DCP_FRAME_RANDOM_ENABLE
	.comm	_DCP_RGB_RANDOM_ENABLE,4,2      ## @DCP_RGB_RANDOM_ENABLE
	.comm	_DCP_HIGHPASS_RANDOM_ENABLE,4,2 ## @DCP_HIGHPASS_RANDOM_ENABLE
	.no_dead_strip	_set_dither
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.set_dither
l_switch.table.set_dither:
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dither
_set_dither:                            ; @set_dither
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x6
	mov	x21, x5
	mov	x20, x4
	mov	x24, x3
	mov	x19, x1
	sub	w8, w2, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.set_dither@PAGE
Lloh1:
	add	x9, x9, l_switch.table.set_dither@PAGEOFF
	ldr	w23, [x9, w8, sxtw #2]
	cmp	w24, #132
	b.ne	LBB0_3
	b	LBB0_6
LBB0_2:
	bl	_BREAK_TO_DEBUGGER
	mov	w23, #0
	cmp	w24, #132
	b.eq	LBB0_6
LBB0_3:
	cmp	w24, #133
	b.ne	LBB0_5
; %bb.4:
	mov	w7, #1
	b	LBB0_7
LBB0_5:
	bl	_BREAK_TO_DEBUGGER
LBB0_6:
	mov	w7, #0
LBB0_7:
Lloh2:
	adrp	x8, _DCP_SPATIAL_DITHER_CNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DCP_SPATIAL_DITHER_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _DCP_SPATIAL_DITHER_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DCP_SPATIAL_DITHER_EN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _DCP_SPATIAL_DITHER_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCP_SPATIAL_DITHER_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _DCP_SPATIAL_DITHER_DEPTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DCP_SPATIAL_DITHER_DEPTH@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
Lloh14:
	adrp	x8, _DCP_FRAME_RANDOM_ENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DCP_FRAME_RANDOM_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _DCP_RGB_RANDOM_ENABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DCP_RGB_RANDOM_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _DCP_HIGHPASS_RANDOM_ENABLE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _DCP_HIGHPASS_RANDOM_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	stp	w10, w22, [sp, #16]
	stp	w9, w21, [sp, #8]
	stp	w8, w20, [sp]
	mov	w1, #0
	mov	x3, x19
	mov	x5, x23
	bl	_REG_SET_6
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DCP_SPATIAL_DITHER_CNTL,4,2    ; @DCP_SPATIAL_DITHER_CNTL
	.comm	_DCP_SPATIAL_DITHER_EN,4,2      ; @DCP_SPATIAL_DITHER_EN
	.comm	_DCP_SPATIAL_DITHER_MODE,4,2    ; @DCP_SPATIAL_DITHER_MODE
	.comm	_DCP_SPATIAL_DITHER_DEPTH,4,2   ; @DCP_SPATIAL_DITHER_DEPTH
	.comm	_DCP_FRAME_RANDOM_ENABLE,4,2    ; @DCP_FRAME_RANDOM_ENABLE
	.comm	_DCP_RGB_RANDOM_ENABLE,4,2      ; @DCP_RGB_RANDOM_ENABLE
	.comm	_DCP_HIGHPASS_RANDOM_ENABLE,4,2 ; @DCP_HIGHPASS_RANDOM_ENABLE
	.no_dead_strip	_set_dither
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.set_dither
l_switch.table.set_dither:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	0                               ; 0x0

.subsections_via_symbols
