	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dwb_program_horz_scalar        ## -- Begin function dwb_program_horz_scalar
	.p2align	4, 0x90
_dwb_program_horz_scalar:               ## @dwb_program_horz_scalar
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	callq	_dc_fixpt_from_int
	xorl	%edi, %edi
	callq	_dc_fixpt_from_int
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_dc_fixpt_from_fraction
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_dc_fixpt_floor
	movl	$-1, %ecx
	cmpl	$8, %eax
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_dc_fixpt_u3d19
	movl	%eax, %ecx
	shll	$5, %ecx
LBB0_2:
	movq	%r15, %rax
	shrq	$32, %rax
	movq	%rax, %rbx
	movq	_WBSCL_HORZ_FILTER_SCALE_RATIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WBSCL_H_SCALE_RATIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	callq	_REG_UPDATE
	movq	_WBSCL_TAP_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_WBSCL_H_NUM_OF_TAPS_Y_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-1(%r15), %edx
	callq	_REG_UPDATE
	movl	(%r14), %edi
	movq	_WBSCL_H_NUM_OF_TAPS_CBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-1(%rbx), %edx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	callq	_REG_UPDATE
	leal	1(%r15), %esi
	movl	%r12d, %edi
	callq	_dc_fixpt_add_int
	movl	%eax, %edi
	movl	$2, %esi
	callq	_dc_fixpt_div_int
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_dc_fixpt_sub_int
	movl	%eax, %edi
	callq	_dc_fixpt_s4d19
	movl	%r12d, %edi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	movl	%eax, %r12d
	shrl	$19, %r12d
	andl	$31, %r12d
	shll	$5, %r14d
	andl	$16777184, %r14d                ## imm = 0xFFFFE0
	movl	$2, %esi
	callq	_dc_fixpt_mul_int
	leal	1(%rbx), %esi
	movl	%eax, %edi
	callq	_dc_fixpt_add_int
	movl	%eax, %edi
	movl	$2, %esi
	callq	_dc_fixpt_div_int
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_dc_fixpt_sub_int
	movl	%eax, %ebx
	movl	$1, %edi
	movl	$4, %esi
	callq	_dc_fixpt_from_fraction
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dc_fixpt_add
	movl	%eax, %edi
	callq	_dc_fixpt_s4d19
	movl	%eax, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	shrl	$19, %r15d
	andl	$31, %r15d
	shll	$5, %r13d
	andl	$16777184, %r13d                ## imm = 0xFFFFE0
	movq	_WBSCL_HORZ_FILTER_INIT_Y_RGB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_WBSCL_H_INIT_INT_Y_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_REG_UPDATE
	movl	(%rbx), %edi
	movq	_WBSCL_H_INIT_FRAC_Y_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_REG_UPDATE
	movq	_WBSCL_HORZ_FILTER_INIT_CBCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_WBSCL_H_INIT_INT_CBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_REG_UPDATE
	movl	(%rbx), %edi
	movq	_WBSCL_H_INIT_FRAC_CBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	callq	_REG_UPDATE
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_wbscl_get_filter_coeffs_16p
	movq	%rax, %r14
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	addl	%edi, %edi
	callq	_dc_fixpt_from_int
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_wbscl_get_filter_coeffs_16p
	movq	%rax, %r15
	movq	_WBSCL_COEF_LUMA_HORZ_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %rcx
	callq	_wbscl_set_scaler_filter
	movq	_WBSCL_COEF_CHROMA_HORZ_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rcx
	callq	_wbscl_set_scaler_filter
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WBSCL_HORZ_FILTER_SCALE_RATIO,4,2 ## @WBSCL_HORZ_FILTER_SCALE_RATIO
	.comm	_WBSCL_H_SCALE_RATIO,4,2        ## @WBSCL_H_SCALE_RATIO
	.comm	_WBSCL_TAP_CONTROL,4,2          ## @WBSCL_TAP_CONTROL
	.comm	_WBSCL_H_NUM_OF_TAPS_Y_RGB,4,2  ## @WBSCL_H_NUM_OF_TAPS_Y_RGB
	.comm	_WBSCL_H_NUM_OF_TAPS_CBCR,4,2   ## @WBSCL_H_NUM_OF_TAPS_CBCR
	.comm	_WBSCL_HORZ_FILTER_INIT_Y_RGB,4,2 ## @WBSCL_HORZ_FILTER_INIT_Y_RGB
	.comm	_WBSCL_H_INIT_INT_Y_RGB,4,2     ## @WBSCL_H_INIT_INT_Y_RGB
	.comm	_WBSCL_H_INIT_FRAC_Y_RGB,4,2    ## @WBSCL_H_INIT_FRAC_Y_RGB
	.comm	_WBSCL_HORZ_FILTER_INIT_CBCR,4,2 ## @WBSCL_HORZ_FILTER_INIT_CBCR
	.comm	_WBSCL_H_INIT_INT_CBCR,4,2      ## @WBSCL_H_INIT_INT_CBCR
	.comm	_WBSCL_H_INIT_FRAC_CBCR,4,2     ## @WBSCL_H_INIT_FRAC_CBCR
	.comm	_WBSCL_COEF_LUMA_HORZ_FILTER,4,2 ## @WBSCL_COEF_LUMA_HORZ_FILTER
	.comm	_WBSCL_COEF_CHROMA_HORZ_FILTER,4,2 ## @WBSCL_COEF_CHROMA_HORZ_FILTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dwb_program_horz_scalar        ; -- Begin function dwb_program_horz_scalar
	.p2align	2
_dwb_program_horz_scalar:               ; @dwb_program_horz_scalar
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w0, #0
	bl	_dc_fixpt_from_int
	mov	w0, #0
	bl	_dc_fixpt_from_int
	mov	x0, x22
	mov	x1, x21
	bl	_dc_fixpt_from_fraction
	mov	w22, w0
	mov	x0, x22
	bl	_dc_fixpt_floor
	cmp	w0, #8
	b.ne	LBB0_2
; %bb.1:
	mov	w23, #-1
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_dc_fixpt_u3d19
	lsl	w23, w0, #5
LBB0_3:
	lsr	x21, x20, #32
Lloh0:
	adrp	x8, _WBSCL_HORZ_FILTER_SCALE_RATIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WBSCL_HORZ_FILTER_SCALE_RATIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _WBSCL_H_SCALE_RATIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WBSCL_H_SCALE_RATIO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_REG_UPDATE
Lloh6:
	adrp	x24, _WBSCL_TAP_CONTROL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _WBSCL_TAP_CONTROL@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh8:
	adrp	x8, _WBSCL_H_NUM_OF_TAPS_Y_RGB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WBSCL_H_NUM_OF_TAPS_Y_RGB@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	sub	w2, w20, #1
	bl	_REG_UPDATE
	ldr	w0, [x24]
Lloh11:
	adrp	x8, _WBSCL_H_NUM_OF_TAPS_CBCR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WBSCL_H_NUM_OF_TAPS_CBCR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	sub	w2, w21, #1
	bl	_REG_UPDATE
	add	w1, w20, #1
	mov	x0, x22
	bl	_dc_fixpt_add_int
	mov	w0, w0
	mov	w1, #2
	bl	_dc_fixpt_div_int
	mov	w0, w0
	mov	x1, x20
	bl	_dc_fixpt_sub_int
	mov	w0, w0
	bl	_dc_fixpt_s4d19
	ubfx	w25, w0, #19, #5
	ubfiz	w24, w0, #5, #19
	mov	x0, x22
	mov	w1, #2
	bl	_dc_fixpt_mul_int
	add	w1, w21, #1
	mov	w0, w0
	bl	_dc_fixpt_add_int
	mov	w0, w0
	mov	w1, #2
	bl	_dc_fixpt_div_int
	mov	w0, w0
	mov	x1, x21
	bl	_dc_fixpt_sub_int
	mov	x26, x0
	mov	w0, #1
	mov	w1, #4
	bl	_dc_fixpt_from_fraction
	mov	w8, w26
	mov	w1, w0
	mov	x0, x8
	bl	_dc_fixpt_add
	mov	w0, w0
	bl	_dc_fixpt_s4d19
	ubfx	w26, w0, #19, #5
	ubfiz	w27, w0, #5, #19
Lloh14:
	adrp	x28, _WBSCL_HORZ_FILTER_INIT_Y_RGB@GOTPAGE
Lloh15:
	ldr	x28, [x28, _WBSCL_HORZ_FILTER_INIT_Y_RGB@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh16:
	adrp	x8, _WBSCL_H_INIT_INT_Y_RGB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WBSCL_H_INIT_INT_Y_RGB@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x25
	bl	_REG_UPDATE
	ldr	w0, [x28]
Lloh19:
	adrp	x8, _WBSCL_H_INIT_FRAC_Y_RGB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WBSCL_H_INIT_FRAC_Y_RGB@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_REG_UPDATE
Lloh22:
	adrp	x24, _WBSCL_HORZ_FILTER_INIT_CBCR@GOTPAGE
Lloh23:
	ldr	x24, [x24, _WBSCL_HORZ_FILTER_INIT_CBCR@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh24:
	adrp	x8, _WBSCL_H_INIT_INT_CBCR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WBSCL_H_INIT_INT_CBCR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x2, x26
	bl	_REG_UPDATE
	ldr	w0, [x24]
Lloh27:
	adrp	x8, _WBSCL_H_INIT_FRAC_CBCR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WBSCL_H_INIT_FRAC_CBCR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x27
	bl	_REG_UPDATE
	mov	x0, x20
	mov	x1, x22
	bl	_wbscl_get_filter_coeffs_16p
	mov	x22, x0
	lsl	w0, w23, #1
	bl	_dc_fixpt_from_int
	mov	w1, w0
	mov	x0, x21
	bl	_wbscl_get_filter_coeffs_16p
	mov	x23, x0
Lloh30:
	adrp	x8, _WBSCL_COEF_LUMA_HORZ_FILTER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WBSCL_COEF_LUMA_HORZ_FILTER@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	bl	_wbscl_set_scaler_filter
Lloh33:
	adrp	x8, _WBSCL_COEF_CHROMA_HORZ_FILTER@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WBSCL_COEF_CHROMA_HORZ_FILTER@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x23
	bl	_wbscl_set_scaler_filter
	mov	w0, #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
	ret
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WBSCL_HORZ_FILTER_SCALE_RATIO,4,2 ; @WBSCL_HORZ_FILTER_SCALE_RATIO
	.comm	_WBSCL_H_SCALE_RATIO,4,2        ; @WBSCL_H_SCALE_RATIO
	.comm	_WBSCL_TAP_CONTROL,4,2          ; @WBSCL_TAP_CONTROL
	.comm	_WBSCL_H_NUM_OF_TAPS_Y_RGB,4,2  ; @WBSCL_H_NUM_OF_TAPS_Y_RGB
	.comm	_WBSCL_H_NUM_OF_TAPS_CBCR,4,2   ; @WBSCL_H_NUM_OF_TAPS_CBCR
	.comm	_WBSCL_HORZ_FILTER_INIT_Y_RGB,4,2 ; @WBSCL_HORZ_FILTER_INIT_Y_RGB
	.comm	_WBSCL_H_INIT_INT_Y_RGB,4,2     ; @WBSCL_H_INIT_INT_Y_RGB
	.comm	_WBSCL_H_INIT_FRAC_Y_RGB,4,2    ; @WBSCL_H_INIT_FRAC_Y_RGB
	.comm	_WBSCL_HORZ_FILTER_INIT_CBCR,4,2 ; @WBSCL_HORZ_FILTER_INIT_CBCR
	.comm	_WBSCL_H_INIT_INT_CBCR,4,2      ; @WBSCL_H_INIT_INT_CBCR
	.comm	_WBSCL_H_INIT_FRAC_CBCR,4,2     ; @WBSCL_H_INIT_FRAC_CBCR
	.comm	_WBSCL_COEF_LUMA_HORZ_FILTER,4,2 ; @WBSCL_COEF_LUMA_HORZ_FILTER
	.comm	_WBSCL_COEF_CHROMA_HORZ_FILTER,4,2 ; @WBSCL_COEF_CHROMA_HORZ_FILTER
.subsections_via_symbols
