	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jinit_downsampler              ## -- Begin function jinit_downsampler
	.p2align	4, 0x90
_jinit_downsampler:                     ## @jinit_downsampler
	.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, %r12
	movq	48(%rdi), %rax
	movq	(%rax), %rbx
	movq	_JPOOL_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_my_downsampler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SIZEOF
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	*%rbx
	movq	%rax, %r14
	movq	%rax, 40(%r12)
	movq	_start_pass_downsample@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_sep_downsample@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	cmpq	$0, 32(%r12)
	je	LBB0_2
## %bb.1:
	movq	_JERR_CCIR601_NOTIMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ERREXIT
LBB0_2:
	cmpl	$0, (%r12)
	jle	LBB0_18
## %bb.3:
	movq	24(%r12), %r15
	xorl	%ebx, %ebx
	movq	_JERR_FRACT_SAMPLE_NOTIMPL@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_fullsize_downsample@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_18
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,8), %ecx
	movl	4(%r12), %eax
	cmpl	%eax, %ecx
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15,%rbx,8), %edx
	cmpl	8(%r12), %edx
	je	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	(%rcx,%rcx), %edx
	cmpl	%eax, %edx
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15,%rbx,8), %edx
	movl	8(%r12), %esi
	cmpl	%esi, %edx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_h2v1_downsample@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	%edx, %edx
	cmpl	%esi, %edx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_h2v2_downsample@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %eax
	cltd
	idivl	4(%r15,%rbx,8)
	testl	%edx, %edx
	je	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ERREXIT
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_int_downsample@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_JPOOL_IMAGE,4,2                ## @JPOOL_IMAGE
	.comm	_my_downsampler,4,2             ## @my_downsampler
	.comm	_start_pass_downsample,4,2      ## @start_pass_downsample
	.comm	_sep_downsample,4,2             ## @sep_downsample
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_JERR_CCIR601_NOTIMPL,4,2       ## @JERR_CCIR601_NOTIMPL
	.comm	_fullsize_downsample,4,2        ## @fullsize_downsample
	.comm	_h2v1_downsample,4,2            ## @h2v1_downsample
	.comm	_h2v2_downsample,4,2            ## @h2v2_downsample
	.comm	_int_downsample,4,2             ## @int_downsample
	.comm	_JERR_FRACT_SAMPLE_NOTIMPL,4,2  ## @JERR_FRACT_SAMPLE_NOTIMPL
	.comm	_JTRC_SMOOTH_NOTIMPL,4,2        ## @JTRC_SMOOTH_NOTIMPL
	.comm	_fullsize_smooth_downsample,4,2 ## @fullsize_smooth_downsample
	.comm	_h2v2_smooth_downsample,4,2     ## @h2v2_smooth_downsample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jinit_downsampler              ; -- Begin function jinit_downsampler
	.p2align	2
_jinit_downsampler:                     ; @jinit_downsampler
	.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, #48]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _JPOOL_IMAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JPOOL_IMAGE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _my_downsampler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _my_downsampler@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SIZEOF
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	blr	x21
	mov	x20, x0
Lloh6:
	adrp	x8, _start_pass_downsample@GOTPAGE
Lloh7:
	ldr	x8, [x8, _start_pass_downsample@GOTPAGEOFF]
	str	x0, [x19, #40]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _sep_downsample@GOTPAGE
Lloh10:
	ldr	x9, [x9, _sep_downsample@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x0, #8]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _JERR_CCIR601_NOTIMPL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _JERR_CCIR601_NOTIMPL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ERREXIT
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.3:
	mov	x21, #0
	ldr	x8, [x19, #24]
	add	x22, x8, #4
Lloh18:
	adrp	x23, _fullsize_downsample@GOTPAGE
Lloh19:
	ldr	x23, [x23, _fullsize_downsample@GOTPAGEOFF]
Lloh20:
	adrp	x24, _h2v1_downsample@GOTPAGE
Lloh21:
	ldr	x24, [x24, _h2v1_downsample@GOTPAGEOFF]
Lloh22:
	adrp	x25, _h2v2_downsample@GOTPAGE
Lloh23:
	ldr	x25, [x25, _h2v2_downsample@GOTPAGEOFF]
Lloh24:
	adrp	x26, _int_downsample@GOTPAGE
Lloh25:
	ldr	x26, [x26, _int_downsample@GOTPAGEOFF]
Lloh26:
	adrp	x27, _JERR_FRACT_SAMPLE_NOTIMPL@GOTPAGE
Lloh27:
	ldr	x27, [x27, _JERR_FRACT_SAMPLE_NOTIMPL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x20]
	str	w8, [x9, x21, lsl #2]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x22, x22, #8
	cmp	x21, x8
	b.ge	LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x22, #-4]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x22]
	ldr	w11, [x19, #8]
	cmp	w10, w11
	b.eq	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, w8, lsl #1
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x22]
	ldr	w11, [x19, #8]
	cmp	w10, w11
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24]
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w11, w10, lsl #1
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	sdiv	w10, w9, w8
	msub	w8, w10, w8, w9
	cbnz	w8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbz	w8, LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	bl	_ERREXIT
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26]
	b	LBB0_5
LBB0_18:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_JPOOL_IMAGE,4,2                ; @JPOOL_IMAGE
	.comm	_my_downsampler,4,2             ; @my_downsampler
	.comm	_start_pass_downsample,4,2      ; @start_pass_downsample
	.comm	_sep_downsample,4,2             ; @sep_downsample
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_JERR_CCIR601_NOTIMPL,4,2       ; @JERR_CCIR601_NOTIMPL
	.comm	_fullsize_downsample,4,2        ; @fullsize_downsample
	.comm	_h2v1_downsample,4,2            ; @h2v1_downsample
	.comm	_h2v2_downsample,4,2            ; @h2v2_downsample
	.comm	_int_downsample,4,2             ; @int_downsample
	.comm	_JERR_FRACT_SAMPLE_NOTIMPL,4,2  ; @JERR_FRACT_SAMPLE_NOTIMPL
	.comm	_JTRC_SMOOTH_NOTIMPL,4,2        ; @JTRC_SMOOTH_NOTIMPL
	.comm	_fullsize_smooth_downsample,4,2 ; @fullsize_smooth_downsample
	.comm	_h2v2_smooth_downsample,4,2     ; @h2v2_smooth_downsample
.subsections_via_symbols
