	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resample_linear
_resample_linear:                       ## @resample_linear
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	32(%rsi), %r11d
	movl	%r11d, %eax
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r8d
	incl	%ebx
	imull	%r11d, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r8d
	jge	LBB0_15
## %bb.1:
	movq	(%rdi), %rcx
	movq	(%rsi), %rax
	movq	16(%rsi), %r14
	movl	24(%rsi), %r13d
	movl	36(%rsi), %edx
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	40(%rsi), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	28(%rsi), %ecx
	movslq	8(%rsi), %rdx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	decl	%ecx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	decl	%r11d
	movslq	%r8d, %rsi
	movq	%rdx, %rcx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	imulq	%rsi, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%r11d, -84(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	-104(%rbp), %rcx                ## 8-byte Folded Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	%eax, -72(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	imull	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	testl	%edi, %edi
	movl	%r11d, %ecx
	movl	$0, %esi
	cmovsl	%esi, %ecx
	movl	%r15d, %r13d
	imull	%r15d, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	imull	(%r14,%rax,4), %ebx
	imull	4(%r14,%rax,4), %edx
	leal	-1(%r8), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	addl	%ebx, %edi
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	addl	%edx, %edi
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%r8d, %ecx
	sarl	%cl, %edi
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	callq	_av_clip_uint8
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	cmpq	%r12, -96(%rbp)                 ## 8-byte Folded Reload
	movl	-84(%rbp), %r11d                ## 4-byte Reload
	je	LBB0_14
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %eax
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	shll	%cl, %eax
	addl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	movl	%edx, %ecx
	sarl	%cl, %esi
	movl	4(%rax), %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	movq	_SUB_PIXELS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	-1(%rbx), %edx
	movl	%edx, %r10d
	movq	_SUB_PIXEL_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%esi, %eax
	movl	%r8d, %ecx
	sarl	%cl, %eax
	andl	%edi, %r10d
	sarl	%cl, %edi
	movl	%edi, %ecx
	movl	%r13d, %r15d
	imull	%r13d, %ecx
	movl	%ebx, %r9d
	subl	%r10d, %r9d
	movl	-80(%rbp), %r13d                ## 4-byte Reload
	cmpl	%r13d, %eax
	jae	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	andl	%esi, %edx
	subl	%edx, %ebx
	cmpl	%r11d, %edi
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	addl	%eax, %ecx
	movslq	%ecx, %rcx
	movl	(%r14,%rcx,4), %esi
	imull	%ebx, %esi
	movl	4(%r14,%rcx,4), %eax
	imull	%edx, %eax
	addl	%esi, %eax
	movl	%r15d, %r13d
	addl	%r15d, %ecx
	movslq	%ecx, %rcx
	imull	(%r14,%rcx,4), %ebx
	imull	%r9d, %eax
	imull	4(%r14,%rcx,4), %edx
	addl	%ebx, %edx
	imull	%r10d, %edx
	addl	%r8d, %r8d
	leal	-1(%r8), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	addl	%eax, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	testl	%eax, %eax
	movl	%r13d, %eax
	movl	$0, %edx
	cmovsl	%edx, %eax
	cmpl	%r11d, %edi
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	addl	%ecx, %eax
	cltq
	imull	(%r14,%rax,4), %r9d
	movl	%r15d, %r13d
	addl	%r15d, %eax
	cltq
	imull	(%r14,%rax,4), %r10d
	leal	-1(%r8), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	addl	%r9d, %edi
	addl	%r10d, %edi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	testl	%edi, %edi
	movl	%r11d, %ecx
	cmovsl	%edx, %ecx
	movl	%r15d, %r13d
	imull	%r15d, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movl	(%r14,%rax,4), %edi
	jmp	LBB0_13
LBB0_15:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUB_PIXELS,4,2                 ## @SUB_PIXELS
	.comm	_SUB_PIXEL_BITS,4,2             ## @SUB_PIXEL_BITS
	.no_dead_strip	_resample_linear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resample_linear
_resample_linear:                       ; @resample_linear
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	w8, [x1, #32]
	mul	w10, w8, w2
	sdiv	w9, w10, w3
	add	w10, w8, w10
	sdiv	w10, w10, w3
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w9, w10
	b.ge	LBB0_13
; %bb.1:
	ldr	x11, [x0]
	ldr	x10, [x1]
	ldr	x21, [x1, #16]
	ldp	w22, w23, [x1, #36]
	str	x11, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x11, [x11]
	ldr	w11, [x11]
	str	w11, [sp, #12]                  ; 4-byte Folded Spill
	ldp	w25, w26, [x1, #24]
	ldrsw	x11, [x1, #8]
	sub	w27, w26, #1
	sub	w28, w8, #1
	sxtw	x8, w9
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	mul	x8, x11, x8
	add	x19, x10, x8, lsl #2
	lsl	x8, x11, #2
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x9, x9, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x19, x19, x8
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	cmp	w8, w9
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w26, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	lsl	w8, w8, w23
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	mul	w20, w8, w9
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	w13, #0
	csel	w8, wzr, w28, lt
	madd	w8, w8, w25, w11
	ldr	w0, [x21, w8, sxtw #2]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	bl	_av_clip_uint8
	str	w0, [x19, x24, lsl #2]
	add	x24, x24, #1
	cmp	x26, x24
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	w8, w24, w22
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	add	w8, w8, w20
	ldr	x8, [x9, w8, sxtw #3]
	ldp	w9, w8, [x8]
	asr	w11, w9, w22
	asr	w10, w8, w23
Lloh0:
	adrp	x8, _SUB_PIXELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUB_PIXELS@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x8]
	sub	w16, w12, #1
	and	w9, w16, w10
Lloh3:
	adrp	x8, _SUB_PIXEL_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUB_PIXEL_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w17, w11, w8
	asr	w13, w10, w8
	mul	w14, w13, w25
	sxtw	x15, w17
	sub	w10, w12, w9
	cmp	w17, w27
	b.hs	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	and	w11, w16, w11
	sub	w12, w12, w11
	cmp	w13, w28
	b.hs	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x13, x15, w14, sxtw
	add	x14, x21, x13, lsl #2
	ldp	w15, w14, [x14]
	mul	w15, w15, w12
	madd	w14, w14, w11, w15
	add	w13, w13, w25
	add	x13, x21, w13, sxtw #2
	ldp	w15, w13, [x13]
	mul	w12, w15, w12
	madd	w11, w13, w11, w12
	lsl	w8, w8, #1
	sub	w12, w8, #1
	mov	w13, #1
	lsl	w12, w13, w12
	madd	w10, w14, w10, w12
	madd	w9, w11, w9, w10
	asr	w0, w9, w8
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w15, #0
	csel	w11, wzr, w27, lt
	cmp	w13, w28
	b.hs	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w11, w11, w14
	add	w12, w11, w25
	ldr	w11, [x21, w11, sxtw #2]
	ldr	w12, [x21, w12, sxtw #2]
	sub	w13, w8, #1
	mov	w14, #1
	lsl	w13, w14, w13
	madd	w10, w11, w10, w13
	madd	w9, w12, w9, w10
	asr	w0, w9, w8
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w13, #0
	csel	w9, wzr, w28, lt
	mul	w9, w9, w25
	add	x9, x15, w9, sxtw
	add	x9, x21, x9, lsl #2
	ldp	w10, w9, [x9]
	sub	w13, w8, #1
	mov	w14, #1
	lsl	w13, w14, w13
	madd	w10, w10, w12, w13
	madd	w9, w9, w11, w10
	asr	w0, w9, w8
	b	LBB0_6
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SUB_PIXELS,4,2                 ; @SUB_PIXELS
	.comm	_SUB_PIXEL_BITS,4,2             ; @SUB_PIXEL_BITS
	.no_dead_strip	_resample_linear
.subsections_via_symbols
