	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function scaler_gen_filter
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_scaler_gen_filter
	.p2align	4, 0x90
_scaler_gen_filter:                     ## @scaler_gen_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	movl	$-32768, %r12d                  ## imm = 0x8000
	cmpl	$130, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$131, %eax
	jne	LBB0_21
## %bb.4:
	movl	$2, %esi
	jmp	LBB0_8
LBB0_5:
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_6
## %bb.7:
	cltd
	idivl	%ecx
	movl	%eax, %edi
	callq	_next_pow2
	movl	%eax, %r12d
	leal	(,%r12,8), %esi
	shll	$18, %r12d
	xorl	$-32768, %r12d                  ## imm = 0x8000
	jmp	LBB0_8
LBB0_2:
	movl	$1, %esi
	jmp	LBB0_8
LBB0_6:
	movl	$-294912, %r12d                 ## imm = 0xFFFB8000
	movl	$8, %esi
LBB0_8:
	movl	%esi, 48(%rbx)
	movl	%esi, 52(%rbx)
	movl	%esi, 24(%rbx)
	movl	%esi, 28(%rbx)
	imull	8(%rbx), %esi
	movl	$4, %edi
	callq	_calloc
	movq	%rax, 64(%rbx)
	movl	8(%rbx), %esi
	movl	$4, %edi
	callq	_calloc
	movq	%rax, 56(%rbx)
	movl	12(%rbx), %esi
	imull	28(%rbx), %esi
	movl	$4, %edi
	callq	_calloc
	movq	%rax, 40(%rbx)
	movl	12(%rbx), %esi
	movl	$4, %edi
	callq	_calloc
	movq	%rax, 32(%rbx)
	cmpq	$0, 64(%rbx)
	je	LBB0_21
## %bb.9:
	cmpq	$0, 40(%rbx)
	je	LBB0_21
## %bb.10:
	leaq	48(%rbx), %r15
	leaq	24(%rbx), %r14
	movl	(%rbx), %edi
	movl	4(%rbx), %r11d
	movl	%r11d, %eax
	shll	$16, %eax
	movl	8(%rbx), %esi
	cltd
	idivl	%esi
	movl	%eax, %r8d
	movl	16(%rbx), %ecx
	movl	%ecx, %eax
	shll	$16, %eax
	movl	12(%rbx), %r10d
	cltd
	idivl	%r10d
	movl	%eax, %r13d
	cmpl	$129, %edi
	je	LBB0_15
## %bb.11:
	cmpl	$131, %edi
	je	LBB0_14
## %bb.12:
	cmpl	$130, %edi
	jne	LBB0_20
## %bb.13:
	shll	$15, %r11d
	movl	%r11d, %eax
	cltd
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	leal	-32768(%rax), %r9d
	shll	$15, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%r10d
                                        ## kill: def $eax killed $eax def $rax
	leal	-32768(%rax), %r12d
	movq	%r15, %rdi
	movl	%r9d, %edx
	movl	%r8d, %ecx
	callq	_gen_filter_point_sub
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_gen_filter_point_sub
	movq	_scaler_argb8888_point_special@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	jmp	LBB0_20
LBB0_21:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	shll	$15, %r11d
	movl	%r11d, %eax
	cltd
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	leal	-32768(%rax), %r9d
	shll	$15, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%r10d
                                        ## kill: def $eax killed $eax def $rax
	leal	-32768(%rax), %r12d
	movq	%r15, %rdi
	movl	%r9d, %edx
	movl	%r8d, %ecx
	callq	_gen_filter_bilinear_sub
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_gen_filter_bilinear_sub
	jmp	LBB0_20
LBB0_15:
	movl	%r11d, %eax
	shll	$15, %eax
	cltd
	idivl	%esi
	movl	%eax, %r9d
	addl	%r12d, %r9d
	shll	$15, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%r10d
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	cmpl	%esi, %r11d
	jle	LBB0_17
## %bb.16:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%esi, %xmm0
	cvtsi2sd	%r11d, %xmm1
	divsd	%xmm1, %xmm0
LBB0_17:
	addl	%eax, %r12d
	movq	%r15, %rdi
	movl	%r9d, %edx
	movl	%r8d, %ecx
	callq	_gen_filter_sinc_sub
	movl	12(%rbx), %esi
	movl	16(%rbx), %eax
	cmpl	%esi, %eax
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jle	LBB0_19
## %bb.18:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%esi, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
LBB0_19:
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_gen_filter_sinc_sub
LBB0_20:
	movl	8(%rbx), %esi
	xorps	%xmm0, %xmm0
	cvtsi2sdl	4(%rbx), %xmm0
	movq	%r15, %rdi
	callq	_fixup_filter_sub
	movl	12(%rbx), %esi
	xorps	%xmm0, %xmm0
	cvtsi2sdl	16(%rbx), %xmm0
	movq	%r14, %rdi
	callq	_fixup_filter_sub
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_validate_filter                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_scaler_argb8888_point_special,4,2 ## @scaler_argb8888_point_special
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scaler_gen_filter              ; -- Begin function scaler_gen_filter
	.p2align	2
_scaler_gen_filter:                     ; @scaler_gen_filter
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_14
; %bb.3:
	mov	w23, #-32768
	mov	w8, #2
	b	LBB0_8
LBB0_4:
	ldp	w8, w9, [x19, #4]
	cmp	w8, w9
	b.le	LBB0_7
; %bb.5:
	sdiv	w0, w8, w9
	bl	_next_pow2
	lsl	w8, w0, #3
	mov	w9, #-32768
	sub	w23, w9, w0, lsl #18
	b	LBB0_8
LBB0_6:
	mov	w23, #-32768
	mov	w8, #1
	b	LBB0_8
LBB0_7:
	mov	w23, #32768
	movk	w23, #65531, lsl #16
	mov	w8, #8
LBB0_8:
	mov	x21, x19
	stp	w8, w8, [x21, #48]!
	mov	x20, x21
	str	w8, [x20, #-24]!
	stur	w8, [x21, #-20]
	ldur	w9, [x21, #-40]
	mul	w1, w9, w8
	mov	w0, #4
	bl	_calloc
	str	x0, [x21, #16]
	ldur	w1, [x21, #-40]
	mov	w0, #4
	bl	_calloc
	str	x0, [x21, #8]
	ldur	w8, [x21, #-20]
	ldur	w9, [x21, #-36]
	mul	w1, w9, w8
	mov	w0, #4
	bl	_calloc
	stur	x0, [x21, #-8]
	ldur	w1, [x21, #-36]
	mov	w0, #4
	bl	_calloc
	stur	x0, [x21, #-16]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_14
; %bb.9:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_14
; %bb.10:
	ldp	w11, w8, [x19]
	lsl	w10, w8, #16
	ldp	w1, w9, [x19, #8]
	sdiv	w3, w10, w1
	ldr	w10, [x19, #16]
	lsl	w12, w10, #16
	sdiv	w22, w12, w9
	cmp	w11, #129
	b.eq	LBB0_16
; %bb.11:
	cmp	w11, #131
	b.eq	LBB0_15
; %bb.12:
	cmp	w11, #130
	b.ne	LBB0_21
; %bb.13:
	lsl	w8, w8, #15
	sdiv	w8, w8, w1
	sub	w2, w8, #8, lsl #12             ; =32768
	lsl	w8, w10, #15
	sdiv	w8, w8, w9
	sub	w23, w8, #8, lsl #12            ; =32768
	mov	x0, x21
	bl	_gen_filter_point_sub
	ldr	w1, [x19, #12]
	mov	x0, x20
	mov	x2, x23
	mov	x3, x22
	bl	_gen_filter_point_sub
Lloh0:
	adrp	x8, _scaler_argb8888_point_special@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scaler_argb8888_point_special@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	b	LBB0_21
LBB0_14:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_15:
	lsl	w8, w8, #15
	sdiv	w8, w8, w1
	sub	w2, w8, #8, lsl #12             ; =32768
	lsl	w8, w10, #15
	sdiv	w8, w8, w9
	sub	w23, w8, #8, lsl #12            ; =32768
	mov	x0, x21
	bl	_gen_filter_bilinear_sub
	ldr	w1, [x19, #12]
	mov	x0, x20
	mov	x2, x23
	mov	x3, x22
	bl	_gen_filter_bilinear_sub
	b	LBB0_21
LBB0_16:
	lsl	w11, w8, #15
	sdiv	w11, w11, w1
	add	w2, w23, w11
	lsl	w10, w10, #15
	sdiv	w9, w10, w9
	add	w23, w23, w9
	fmov	d8, #1.00000000
	fmov	d0, #1.00000000
	cmp	w8, w1
	b.le	LBB0_18
; %bb.17:
	scvtf	d0, w1
	scvtf	d1, w8
	fdiv	d0, d0, d1
LBB0_18:
	mov	x0, x21
	bl	_gen_filter_sinc_sub
	ldp	w1, w8, [x19, #12]
	cmp	w8, w1
	b.le	LBB0_20
; %bb.19:
	scvtf	d0, w1
	scvtf	d1, w8
	fdiv	d8, d0, d1
LBB0_20:
	mov	x0, x20
	mov	x2, x23
	mov	x3, x22
	fmov	d0, d8
	bl	_gen_filter_sinc_sub
LBB0_21:
	ldr	w1, [x19, #8]
	ldr	s0, [x19, #4]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	mov	x0, x21
	bl	_fixup_filter_sub
	ldr	w1, [x19, #12]
	ldr	s0, [x19, #16]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	mov	x0, x20
	bl	_fixup_filter_sub
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_validate_filter
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_scaler_argb8888_point_special,4,2 ; @scaler_argb8888_point_special
.subsections_via_symbols
