	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jinit_upsampler                ## -- Begin function jinit_upsampler
	.p2align	4, 0x90
_jinit_upsampler:                       ## @jinit_upsampler
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	movq	8(%rax), %rbx
	movq	_JPOOL_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_my_upsampler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SIZEOF
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	*%rbx
	movq	%rax, %r14
	movq	%rax, 56(%r15)
	movq	_start_pass_upsample@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_sep_upsample@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	cmpq	$0, 48(%r15)
	je	LBB0_2
## %bb.1:
	movq	_JERR_CCIR601_NOTIMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ERREXIT
LBB0_2:
	cmpq	$0, 40(%r15)
	je	LBB0_3
## %bb.4:
	cmpl	$2, (%r15)
	setge	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%r15)
	jg	LBB0_6
	jmp	LBB0_33
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$0, 4(%r15)
	jle	LBB0_33
LBB0_6:
	movq	32(%r15), %r12
	addq	$12, %r12
	xorl	%r13d, %r13d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movslq	4(%r15), %rax
	addq	$20, %r12
	cmpq	%rax, %r13
	jge	LBB0_33
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%r12), %ecx
	movl	-12(%r12), %eax
	imull	%ecx, %eax
	movl	(%r15), %ebx
	movl	8(%r15), %esi
	cltd
	idivl	%ebx
	movl	%eax, %edi
	imull	-4(%r12), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%ebx
	movl	%eax, %ecx
	movl	12(%r15), %r8d
	movq	(%r14), %rax
	movl	%ecx, (%rax,%r13,4)
	cmpl	$0, 4(%r12)
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpl	%esi, %edi
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r8d, %ecx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_fullsize_upsample@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_noop_upsample@GOTPCREL(%rip), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rax), %eax
	movq	32(%r14), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testl	%ebx, %ebx
	jne	LBB0_31
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	leal	(%rdi,%rdi), %eax
	cmpl	%esi, %eax
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r8d, %ecx
	jne	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$3, (%r12)
	jl	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_h2v1_fancy_upsample@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%esi, %eax
	jne	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	leal	(%rcx,%rcx), %eax
	cmpl	%r8d, %eax
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$3, (%r12)
	jl	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_h2v2_fancy_upsample@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%r14), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	%rbx, 40(%r14)
	testl	%ebx, %ebx
	jne	LBB0_31
	jmp	LBB0_32
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_h2v1_upsample@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%esi, %eax
	cltd
	idivl	%edi
	testl	%edx, %edx
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %esi
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_28
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_JERR_FRACT_SAMPLE_NOTIMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ERREXIT
	testl	%ebx, %ebx
	jne	LBB0_31
	jmp	LBB0_32
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_h2v2_upsample@GOTPCREL(%rip), %rax
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rax), %eax
	movq	32(%r14), %rcx
	movl	%eax, (%rcx,%r13,4)
	testl	%ebx, %ebx
	je	LBB0_32
LBB0_31:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %rdi
	movq	24(%r15), %rax
	movq	(%rax), %r14
	movq	_JPOOL_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	8(%r15), %rsi
	callq	_jround_up
	movl	12(%r15), %ecx
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	*%r14
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%r13,4)
	jmp	LBB0_32
LBB0_28:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_int_upsample@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	32(%r14), %rdx
	movl	%ecx, (%rdx,%r13,4)
	movslq	%esi, %rcx
	movq	24(%r14), %rdx
	movq	%rcx, (%rdx,%r13,8)
	cltq
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%r13,8)
	testl	%ebx, %ebx
	jne	LBB0_31
	jmp	LBB0_32
LBB0_33:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JPOOL_IMAGE,4,2                ## @JPOOL_IMAGE
	.comm	_my_upsampler,4,2               ## @my_upsampler
	.comm	_start_pass_upsample,4,2        ## @start_pass_upsample
	.comm	_sep_upsample,4,2               ## @sep_upsample
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_JERR_CCIR601_NOTIMPL,4,2       ## @JERR_CCIR601_NOTIMPL
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_noop_upsample,4,2              ## @noop_upsample
	.comm	_fullsize_upsample,4,2          ## @fullsize_upsample
	.comm	_h2v1_fancy_upsample,4,2        ## @h2v1_fancy_upsample
	.comm	_h2v1_upsample,4,2              ## @h2v1_upsample
	.comm	_h2v2_fancy_upsample,4,2        ## @h2v2_fancy_upsample
	.comm	_h2v2_upsample,4,2              ## @h2v2_upsample
	.comm	_int_upsample,4,2               ## @int_upsample
	.comm	_JERR_FRACT_SAMPLE_NOTIMPL,4,2  ## @JERR_FRACT_SAMPLE_NOTIMPL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jinit_upsampler                ; -- Begin function jinit_upsampler
	.p2align	2
_jinit_upsampler:                       ; @jinit_upsampler
	.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	x19, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8, #8]
Lloh0:
	adrp	x22, _JPOOL_IMAGE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _JPOOL_IMAGE@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh2:
	adrp	x8, _my_upsampler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _my_upsampler@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_SIZEOF
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	blr	x21
	mov	x20, x0
Lloh5:
	adrp	x8, _start_pass_upsample@GOTPAGE
Lloh6:
	ldr	x8, [x8, _start_pass_upsample@GOTPAGEOFF]
	str	x0, [x19, #56]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _sep_upsample@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sep_upsample@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
Lloh11:
	adrp	x23, _FALSE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x0, #40]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _JERR_CCIR601_NOTIMPL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _JERR_CCIR601_NOTIMPL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ERREXIT
LBB0_2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w24, gt
	b	LBB0_5
LBB0_4:
	mov	w24, #0
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.6:
	mov	x25, #0
	ldr	x8, [x19, #32]
	add	x26, x8, #12
Lloh16:
	adrp	x27, _TRUE@GOTPAGE
Lloh17:
	ldr	x27, [x27, _TRUE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19, #4]
	add	x26, x26, #20
	cmp	x25, x8
	b.ge	LBB0_30
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x26, #-12]
	ldr	w13, [x19]
	ldur	w8, [x26, #-4]
	mul	w8, w8, w12
	sdiv	w8, w8, w13
	ldp	w10, w9, [x19, #8]
	ldr	x14, [x20]
	str	w8, [x14, x25, lsl #2]
	ldr	w14, [x26, #4]
	cbz	w14, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mul	w11, w12, w11
	sdiv	w11, w11, w13
	ldr	x21, [x27]
	cmp	w11, w10
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh18:
	adrp	x8, _fullsize_upsample@GOTPAGE
Lloh19:
	ldr	x8, [x8, _fullsize_upsample@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh20:
	adrp	x8, _noop_upsample@GOTPAGE
Lloh21:
	ldr	x8, [x8, _noop_upsample@GOTPAGEOFF]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x8]
	ldr	x9, [x20, #32]
	str	w8, [x9, x25, lsl #2]
	ldr	x21, [x23]
	cbnz	w21, LBB0_28
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	lsl	w12, w11, #1
	cmp	w12, w10
	ccmp	w8, w9, #0, eq
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	lsl	w13, w8, #1
	cmp	w12, w10
	ccmp	w13, w9, #0, eq
	b.eq	LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	sdiv	w12, w10, w11
	msub	w10, w12, w11, w10
	cbnz	w10, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	sdiv	w10, w9, w8
	msub	w8, w10, w8, w9
	cbz	w8, LBB0_29
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh22:
	adrp	x8, _JERR_FRACT_SAMPLE_NOTIMPL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _JERR_FRACT_SAMPLE_NOTIMPL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ERREXIT
	cbnz	w21, LBB0_28
	b	LBB0_7
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w24, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26]
	cmp	w8, #3
	b.lt	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh25:
	adrp	x8, _h2v1_fancy_upsample@GOTPAGE
Lloh26:
	ldr	x8, [x8, _h2v1_fancy_upsample@GOTPAGEOFF]
	b	LBB0_27
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh27:
	adrp	x8, _h2v1_upsample@GOTPAGE
Lloh28:
	ldr	x8, [x8, _h2v1_upsample@GOTPAGEOFF]
	b	LBB0_27
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w24, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26]
	cmp	w8, #3
	b.lt	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh29:
	adrp	x8, _h2v2_fancy_upsample@GOTPAGE
Lloh30:
	ldr	x8, [x8, _h2v2_fancy_upsample@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	x9, [x20, #32]
	str	w8, [x9, x25, lsl #2]
	str	x21, [x20, #40]
	cbnz	w21, LBB0_28
	b	LBB0_7
LBB0_26:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh32:
	adrp	x8, _h2v2_upsample@GOTPAGE
Lloh33:
	ldr	x8, [x8, _h2v2_upsample@GOTPAGEOFF]
LBB0_27:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x8]
	ldr	x9, [x20, #32]
	str	w8, [x9, x25, lsl #2]
	cbz	w21, LBB0_7
LBB0_28:                                ;   in Loop: Header=BB0_8 Depth=1
	ldp	x0, x8, [x19, #16]
	ldr	x28, [x8]
	ldr	w21, [x22]
	ldrsw	x1, [x19, #8]
	bl	_jround_up
	mov	x2, x0
	ldr	w3, [x19, #12]
	mov	x0, x19
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	blr	x28
	ldr	x8, [x20, #8]
	str	w0, [x8, x25, lsl #2]
	b	LBB0_7
LBB0_29:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh34:
	adrp	x8, _int_upsample@GOTPAGE
Lloh35:
	ldr	x8, [x8, _int_upsample@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldp	x11, x9, [x20, #24]
	str	w8, [x9, x25, lsl #2]
	sxtw	x8, w12
	lsl	x9, x25, #3
	str	x8, [x11, x9]
	sxtw	x8, w10
	ldr	x10, [x20, #16]
	str	x8, [x10, x9]
	cbnz	w21, LBB0_28
	b	LBB0_7
LBB0_30:
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_JPOOL_IMAGE,4,2                ; @JPOOL_IMAGE
	.comm	_my_upsampler,4,2               ; @my_upsampler
	.comm	_start_pass_upsample,4,2        ; @start_pass_upsample
	.comm	_sep_upsample,4,2               ; @sep_upsample
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_JERR_CCIR601_NOTIMPL,4,2       ; @JERR_CCIR601_NOTIMPL
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_noop_upsample,4,2              ; @noop_upsample
	.comm	_fullsize_upsample,4,2          ; @fullsize_upsample
	.comm	_h2v1_fancy_upsample,4,2        ; @h2v1_fancy_upsample
	.comm	_h2v1_upsample,4,2              ; @h2v1_upsample
	.comm	_h2v2_fancy_upsample,4,2        ; @h2v2_fancy_upsample
	.comm	_h2v2_upsample,4,2              ; @h2v2_upsample
	.comm	_int_upsample,4,2               ; @int_upsample
	.comm	_JERR_FRACT_SAMPLE_NOTIMPL,4,2  ; @JERR_FRACT_SAMPLE_NOTIMPL
.subsections_via_symbols
