	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsc_set_v_coef
_gsc_set_v_coef:                        ## @gsc_set_v_coef
	.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
	movq	_GSC_SC_UP_MAX_RATIO@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jae	LBB0_1
## %bb.2:
	movq	_GSC_SC_DOWN_RATIO_7_8@GOTPCREL(%rip), %rax
	movl	$1, %r9d
	cmpq	%rsi, (%rax)
	jae	LBB0_7
## %bb.3:
	movq	_GSC_SC_DOWN_RATIO_6_8@GOTPCREL(%rip), %rax
	movl	$2, %r9d
	cmpq	%rsi, (%rax)
	jae	LBB0_7
## %bb.4:
	movq	_GSC_SC_DOWN_RATIO_5_8@GOTPCREL(%rip), %rax
	movl	$3, %r9d
	cmpq	%rsi, (%rax)
	jae	LBB0_7
## %bb.5:
	movq	_GSC_SC_DOWN_RATIO_4_8@GOTPCREL(%rip), %rax
	movl	$4, %r9d
	cmpq	%rsi, (%rax)
	jae	LBB0_7
## %bb.6:
	movq	_GSC_SC_DOWN_RATIO_3_8@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	cmpq	%rsi, (%rax)
	adcq	$5, %r9
	jmp	LBB0_7
LBB0_1:
	xorl	%r9d, %r9d
LBB0_7:
	movq	_GSC_COEF_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.8:
	movq	_GSC_COEF_V_4T@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	movq	_GSC_COEF_DEPTH@GOTPCREL(%rip), %r13
	movq	_v_coef_4t@GOTPCREL(%rip), %r12
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_GSC_COEF_PHASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_18
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	testl	%eax, %eax
	jle	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r14
	movslq	%eax, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_16
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r12), %rax
	movq	(%rax,%r9,8), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_GSC_VCOEF
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_gsc_write
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	incl	%ebx
	movl	(%r13), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_GSC_COEF_V_4T@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSC_SC_UP_MAX_RATIO,8,3        ## @GSC_SC_UP_MAX_RATIO
	.comm	_GSC_SC_DOWN_RATIO_7_8,8,3      ## @GSC_SC_DOWN_RATIO_7_8
	.comm	_GSC_SC_DOWN_RATIO_6_8,8,3      ## @GSC_SC_DOWN_RATIO_6_8
	.comm	_GSC_SC_DOWN_RATIO_5_8,8,3      ## @GSC_SC_DOWN_RATIO_5_8
	.comm	_GSC_SC_DOWN_RATIO_4_8,8,3      ## @GSC_SC_DOWN_RATIO_4_8
	.comm	_GSC_SC_DOWN_RATIO_3_8,8,3      ## @GSC_SC_DOWN_RATIO_3_8
	.comm	_GSC_COEF_PHASE,4,2             ## @GSC_COEF_PHASE
	.comm	_GSC_COEF_V_4T,4,2              ## @GSC_COEF_V_4T
	.comm	_GSC_COEF_DEPTH,4,2             ## @GSC_COEF_DEPTH
	.comm	_v_coef_4t,8,3                  ## @v_coef_4t
	.no_dead_strip	_gsc_set_v_coef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsc_set_v_coef
_gsc_set_v_coef:                        ; @gsc_set_v_coef
	.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
Lloh0:
	adrp	x8, _GSC_SC_UP_MAX_RATIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSC_SC_UP_MAX_RATIO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.hs	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _GSC_SC_DOWN_RATIO_7_8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSC_SC_DOWN_RATIO_7_8@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.hs	LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _GSC_SC_DOWN_RATIO_6_8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GSC_SC_DOWN_RATIO_6_8@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x1
	b.hs	LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _GSC_SC_DOWN_RATIO_5_8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GSC_SC_DOWN_RATIO_5_8@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x1
	b.hs	LBB0_9
; %bb.4:
Lloh12:
	adrp	x8, _GSC_SC_DOWN_RATIO_4_8@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSC_SC_DOWN_RATIO_4_8@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x1
	b.hs	LBB0_10
; %bb.5:
Lloh15:
	adrp	x8, _GSC_SC_DOWN_RATIO_3_8@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GSC_SC_DOWN_RATIO_3_8@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x1
	mov	w8, #5
	cinc	x23, x8, lo
	b	LBB0_11
LBB0_6:
	mov	x23, #0
	b	LBB0_11
LBB0_7:
	mov	w23, #1
	b	LBB0_11
LBB0_8:
	mov	w23, #2
	b	LBB0_11
LBB0_9:
	mov	w23, #3
	b	LBB0_11
LBB0_10:
	mov	w23, #4
LBB0_11:
Lloh18:
	adrp	x24, _GSC_COEF_PHASE@GOTPAGE
Lloh19:
	ldr	x24, [x24, _GSC_COEF_PHASE@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.12:
	mov	x19, #0
Lloh20:
	adrp	x25, _GSC_COEF_V_4T@GOTPAGE
Lloh21:
	ldr	x25, [x25, _GSC_COEF_V_4T@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh22:
	adrp	x26, _GSC_COEF_DEPTH@GOTPAGE
Lloh23:
	ldr	x26, [x26, _GSC_COEF_DEPTH@GOTPAGEOFF]
Lloh24:
	adrp	x27, _v_coef_4t@GOTPAGE
Lloh25:
	ldr	x27, [x27, _v_coef_4t@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x24]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x19, x19, #1
	cmp	x19, w9, sxtw
	b.ge	LBB0_22
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x20, #0
	ldr	w9, [x26]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_13
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	w21, #0
LBB0_20:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x27]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w22, [x8, x20, lsl #2]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_GSC_VCOEF
	mov	x1, x0
	mov	x0, x22
	bl	_gsc_write
	add	w21, w21, #1
	ldr	w9, [x26]
	cmp	w21, w9
	b.lt	LBB0_20
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x25]
	b	LBB0_17
LBB0_22:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GSC_SC_UP_MAX_RATIO,8,3        ; @GSC_SC_UP_MAX_RATIO
	.comm	_GSC_SC_DOWN_RATIO_7_8,8,3      ; @GSC_SC_DOWN_RATIO_7_8
	.comm	_GSC_SC_DOWN_RATIO_6_8,8,3      ; @GSC_SC_DOWN_RATIO_6_8
	.comm	_GSC_SC_DOWN_RATIO_5_8,8,3      ; @GSC_SC_DOWN_RATIO_5_8
	.comm	_GSC_SC_DOWN_RATIO_4_8,8,3      ; @GSC_SC_DOWN_RATIO_4_8
	.comm	_GSC_SC_DOWN_RATIO_3_8,8,3      ; @GSC_SC_DOWN_RATIO_3_8
	.comm	_GSC_COEF_PHASE,4,2             ; @GSC_COEF_PHASE
	.comm	_GSC_COEF_V_4T,4,2              ; @GSC_COEF_V_4T
	.comm	_GSC_COEF_DEPTH,4,2             ; @GSC_COEF_DEPTH
	.comm	_v_coef_4t,8,3                  ; @v_coef_4t
	.no_dead_strip	_gsc_set_v_coef
.subsections_via_symbols
