	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scaler_argb8888_vert           ## -- Begin function scaler_argb8888_vert
	.p2align	4, 0x90
_scaler_argb8888_vert:                  ## @scaler_argb8888_vert
	.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
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdi), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rsi
	sarl	$2, %edx
	movslq	%edx, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	44(%r15), %rdx
	leaq	(%rsi,%rdx,4), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdx,%rdi,4), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r15), %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movslq	(%rax,%rbx,4), %rax
	movl	16(%r15), %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	imulq	%rax, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%r12d, %edi
	movl	$8, %esi
	callq	__mm_srli_si128
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	__mm_adds_epi16
	movl	%eax, %edi
	movl	$3, %esi
	callq	__mm_srai_epi16
	movl	%eax, %edi
	movl	%eax, %esi
	callq	__mm_packus_epi16
	movl	%eax, %edi
	callq	__mm_cvtsi128_si32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movslq	4(%r15), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rdx,4), %r14
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	__mm_setzero_si128
	movl	%eax, %r12d
	movl	40(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r13,4), %eax
	movl	4(%rcx,%r13,4), %ecx
	movl	%ecx, %edi
	shll	$16, %edi
	addl	%ecx, %edi
	movl	%eax, %esi
	shll	$16, %esi
	addl	%eax, %esi
	callq	__mm_set_epi64x
	movl	%eax, %ebx
	movl	16(%r15), %eax
	sarl	$3, %eax
	cltq
	movl	(%r14,%rax,4), %edi
	movl	(%r14), %esi
	callq	__mm_set_epi64x
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	__mm_mulhi_epi16
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	__mm_adds_epi16
	movl	%eax, %r12d
	addq	$2, %r13
	movl	16(%r15), %ecx
	movl	40(%r15), %eax
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	leaq	(%r14,%rcx,4), %r14
	leal	1(%r13), %ecx
	cmpl	%eax, %ecx
	jl	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%eax, %r13d
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %eax
	movl	%eax, %esi
	shll	$16, %esi
	addl	%eax, %esi
	xorl	%edi, %edi
	callq	__mm_set_epi64x
	movl	%eax, %r13d
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	__mm_set_epi64x
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	__mm_mulhi_epi16
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	__mm_adds_epi16
	movl	%eax, %r12d
	incq	%rbx
	movl	16(%r15), %eax
	sarl	$3, %eax
	cltq
	leaq	(%r14,%rax,4), %r14
	cmpl	%ebx, 40(%r15)
	jg	LBB0_9
	jmp	LBB0_10
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scaler_argb8888_vert           ; -- Begin function scaler_argb8888_vert
	.p2align	2
_scaler_argb8888_vert:                  ; @scaler_argb8888_vert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x24, #0
	ldr	x9, [x0, #8]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x26, [x0, #24]
	sbfx	x27, x2, #2, #30
	ldr	w9, [x0, #4]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x10, [x20, #44]
	add	x26, x26, x10, lsl #2
	add	x19, x19, x27, lsl #2
	cmp	x24, w8, sxtw
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	ldr	x8, [x20, #32]
	ldr	w8, [x8, x24, lsl #2]
	ldr	w9, [x20, #16]
	asr	w9, w9, #3
	mul	w8, w9, w8
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x25, x9, w8, sxtw #2
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	w9, #0
	mov	w8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	asr	w21, w9, #3
	asr	w22, w8, #3
	mov	w0, #0
	bl	_clamp_8bit
	mov	x23, x0
	mov	w0, #0
	bl	_clamp_8bit
	lsl	w8, w0, #16
	orr	w23, w8, w23, lsl #24
	mov	x0, x21
	bl	_clamp_8bit
	orr	w21, w23, w0, lsl #8
	mov	x0, x22
	bl	_clamp_8bit
	orr	w8, w21, w0
	str	w8, [x19, x28, lsl #2]
	add	x28, x28, #1
	ldrsw	x9, [x20, #4]
	add	x25, x25, #4
	cmp	x28, x9
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	w10, [x20, #40]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #0
	mov	w9, #0
	ldr	w11, [x20, #16]
	asr	w11, w11, #3
	sbfiz	x11, x11, #2, #32
	mov	x12, x25
	mov	x13, x26
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w14, [x12]
	lsr	w15, w14, #16
	and	w14, w14, #0xffff
	ldr	w16, [x13], #4
	mul	w15, w15, w16
	add	w9, w9, w15, asr #16
	mul	w14, w14, w16
	add	w8, w8, w14, asr #16
	add	x12, x12, x11
	subs	x10, x10, #1
	b.ne	LBB0_10
	b	LBB0_7
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
