	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbscl_set_scaler_filter
_wbscl_set_scaler_filter:               ## @wbscl_set_scaler_filter
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	_NUM_PHASES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	jge	LBB0_1
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rcx, %r13
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rdx), %ecx
	shrl	$31, %ecx
	leal	(%rdx,%rcx), %esi
	incl	%esi
	sarl	%esi
	cmpl	$2, %esi
	movl	$1, %ecx
	cmovll	%ecx, %esi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movslq	%edx, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,8), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_NUM_PHASES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	1(%rsi), %rcx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movslq	%edx, %rdx
	addq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	cmpq	%rdx, %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r13,%r14,8), %r12
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-8(%r13,%r14,8), %r15
	movq	_WBSCL_COEF_RAM_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WBSCL_COEF_RAM_TAP_PAIR_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WBSCL_COEF_RAM_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_WBSCL_COEF_RAM_FILTER_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	movl	%ebx, %ecx
	movq	-48(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_REG_SET_3
	addq	$16, %rsp
	movq	_WBSCL_COEF_RAM_TAP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WBSCL_COEF_RAM_EVEN_TAP_COEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WBSCL_COEF_RAM_EVEN_TAP_COEF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_WBSCL_COEF_RAM_ODD_TAP_COEF@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_WBSCL_COEF_RAM_ODD_TAP_COEF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	movq	%r15, %rcx
	movl	$1, %r9d
	pushq	$1
	pushq	%rax
	pushq	%r12
	pushq	%r10
	callq	_REG_SET_4
	addq	$32, %rsp
	incq	%rbx
	addq	$2, %r14
	cmpq	%rbx, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_PHASES,4,2                 ## @NUM_PHASES
	.comm	_WBSCL_COEF_RAM_SELECT,4,2      ## @WBSCL_COEF_RAM_SELECT
	.comm	_WBSCL_COEF_RAM_TAP_PAIR_IDX,4,2 ## @WBSCL_COEF_RAM_TAP_PAIR_IDX
	.comm	_WBSCL_COEF_RAM_PHASE,4,2       ## @WBSCL_COEF_RAM_PHASE
	.comm	_WBSCL_COEF_RAM_FILTER_TYPE,4,2 ## @WBSCL_COEF_RAM_FILTER_TYPE
	.comm	_WBSCL_COEF_RAM_TAP_DATA,4,2    ## @WBSCL_COEF_RAM_TAP_DATA
	.comm	_WBSCL_COEF_RAM_EVEN_TAP_COEF,4,2 ## @WBSCL_COEF_RAM_EVEN_TAP_COEF
	.comm	_WBSCL_COEF_RAM_EVEN_TAP_COEF_EN,4,2 ## @WBSCL_COEF_RAM_EVEN_TAP_COEF_EN
	.comm	_WBSCL_COEF_RAM_ODD_TAP_COEF,4,2 ## @WBSCL_COEF_RAM_ODD_TAP_COEF
	.comm	_WBSCL_COEF_RAM_ODD_TAP_COEF_EN,4,2 ## @WBSCL_COEF_RAM_ODD_TAP_COEF_EN
	.no_dead_strip	_wbscl_set_scaler_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbscl_set_scaler_filter
_wbscl_set_scaler_filter:               ; @wbscl_set_scaler_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _NUM_PHASES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_PHASES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w8, #1
	b.ge	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x22, #0
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	add	w9, w11, #1
	add	w10, w11, #2
	cmp	w9, #0
	csinc	w9, w10, w11, lt
	asr	w9, w9, #1
	sxtw	x27, w11
	cmp	w9, #1
	csinc	w9, w9, wzr, gt
	sbfiz	x10, x11, #3, #32
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	lsl	x28, x9, #1
	mov	w21, #1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh3:
	adrp	x8, _NUM_PHASES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_PHASES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	cmp	x22, w9, sxtw
	add	x22, x22, #1
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x19, x19, x9
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, #0
	mov	w23, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x8, x19, x26, lsl #3
	ldr	x24, [x8, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x25, [x19, x26, lsl #3]
Lloh6:
	adrp	x8, _WBSCL_COEF_RAM_SELECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WBSCL_COEF_RAM_SELECT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _WBSCL_COEF_RAM_TAP_PAIR_IDX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WBSCL_COEF_RAM_TAP_PAIR_IDX@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _WBSCL_COEF_RAM_PHASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WBSCL_COEF_RAM_PHASE@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
Lloh15:
	adrp	x8, _WBSCL_COEF_RAM_FILTER_TYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WBSCL_COEF_RAM_FILTER_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
	mov	w1, #0
	mov	x3, x23
	mov	x5, x22
	mov	x7, x20
	bl	_REG_SET_3
Lloh18:
	adrp	x8, _WBSCL_COEF_RAM_TAP_DATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WBSCL_COEF_RAM_TAP_DATA@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _WBSCL_COEF_RAM_EVEN_TAP_COEF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WBSCL_COEF_RAM_EVEN_TAP_COEF@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _WBSCL_COEF_RAM_EVEN_TAP_COEF_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WBSCL_COEF_RAM_EVEN_TAP_COEF_EN@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
Lloh27:
	adrp	x8, _WBSCL_COEF_RAM_ODD_TAP_COEF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WBSCL_COEF_RAM_ODD_TAP_COEF@GOTPAGEOFF]
Lloh29:
	ldr	w6, [x8]
Lloh30:
	adrp	x8, _WBSCL_COEF_RAM_ODD_TAP_COEF_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WBSCL_COEF_RAM_ODD_TAP_COEF_EN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	stp	w8, w21, [sp]
	mov	w1, #0
	mov	x3, x25
	mov	w5, #1
	mov	x7, x24
	bl	_REG_SET_4
	add	w23, w23, #1
	add	x26, x26, #2
	cmp	x28, x26
	b.eq	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x26, #1
	cmp	x8, x27
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x24, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_PHASES,4,2                 ; @NUM_PHASES
	.comm	_WBSCL_COEF_RAM_SELECT,4,2      ; @WBSCL_COEF_RAM_SELECT
	.comm	_WBSCL_COEF_RAM_TAP_PAIR_IDX,4,2 ; @WBSCL_COEF_RAM_TAP_PAIR_IDX
	.comm	_WBSCL_COEF_RAM_PHASE,4,2       ; @WBSCL_COEF_RAM_PHASE
	.comm	_WBSCL_COEF_RAM_FILTER_TYPE,4,2 ; @WBSCL_COEF_RAM_FILTER_TYPE
	.comm	_WBSCL_COEF_RAM_TAP_DATA,4,2    ; @WBSCL_COEF_RAM_TAP_DATA
	.comm	_WBSCL_COEF_RAM_EVEN_TAP_COEF,4,2 ; @WBSCL_COEF_RAM_EVEN_TAP_COEF
	.comm	_WBSCL_COEF_RAM_EVEN_TAP_COEF_EN,4,2 ; @WBSCL_COEF_RAM_EVEN_TAP_COEF_EN
	.comm	_WBSCL_COEF_RAM_ODD_TAP_COEF,4,2 ; @WBSCL_COEF_RAM_ODD_TAP_COEF
	.comm	_WBSCL_COEF_RAM_ODD_TAP_COEF_EN,4,2 ; @WBSCL_COEF_RAM_ODD_TAP_COEF_EN
	.no_dead_strip	_wbscl_set_scaler_filter
.subsections_via_symbols
