	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Stream_CcittToStream      ## -- Begin function HPDF_Stream_CcittToStream
	.p2align	4, 0x90
_HPDF_Stream_CcittToStream:             ## @HPDF_Stream_CcittToStream
	.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	%r9d, %r12d
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	%edx, %edi
	callq	_HPDF_UNUSED
	movl	$1, %eax
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.1:
	cmpq	$0, 16(%rbp)
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.2:
	movl	%r12d, %eax
	imull	%r15d, %eax
	cltq
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	movl	%r12d, %eax
	jmp	LBB0_4
LBB0_3:
	leal	-1(%r15), %eax
	imull	%r12d, %eax
	cltq
	leaq	(%rbx,%rax,4), %r14
	movslq	%r12d, %rax
	movq	%rax, %rcx
	negq	%rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	negl	%eax
LBB0_4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%r13d, -72(%rbp)
	movl	$16384, %edi                    ## imm = 0x4000
	callq	_malloc
	movq	%rax, -96(%rbp)
	movl	$16384, -104(%rbp)              ## imm = 0x4000
	movq	$0, -80(%rbp)
	movq	%rax, -88(%rbp)
	movq	%rbx, %rdi
	callq	_HPDF_InitCCITTFax3
	movq	_HPDF_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_13
## %bb.5:
	leaq	-104(%rbp), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_HPDF_Fax3SetupState
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.6:
	leaq	-104(%rbp), %rdi
	callq	_HPDF_Fax3PreEncode
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.7:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r13
	cmpq	%r14, %r13
	je	LBB0_10
## %bb.8:
	movslq	-56(%rbp), %r15                 ## 4-byte Folded Reload
	shlq	$2, %r15
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-104(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_HPDF_Fax4Encode
	addq	%r15, %r14
	addq	%r15, %rbx
	cmpq	%r13, %r14
	jne	LBB0_9
LBB0_10:
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_HPDF_Fax4PostEncode
	movq	%rbx, %rdi
	callq	_HPDF_FreeCCITTFax3
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_12:
	leaq	-104(%rbp), %rdi
	callq	_HPDF_FreeCCITTFax3
LBB0_13:
	movl	$1, %eax
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Stream_CcittToStream      ; -- Begin function HPDF_Stream_CcittToStream
	.p2align	2
_HPDF_Stream_CcittToStream:             ; @HPDF_Stream_CcittToStream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x24, x6
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x1
	mov	x20, x0
	mov	x0, x2
	bl	_HPDF_UNUSED
	cbz	w21, LBB0_9
; %bb.1:
	mov	x8, #0
	sub	w9, w21, #1
	mul	w9, w9, w19
	add	x9, x20, w9, sxtw #2
	sub	x8, x8, w19, sxtw
	mul	w10, w19, w21
	sxtw	x10, w10
	cmp	x24, #0
	csel	x24, x9, x20, eq
	csel	x26, x8, x10, eq
	cneg	w25, w19, eq
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	w23, [sp, #40]
	mov	w23, #16384
	mov	w0, #16384
	bl	_malloc
	str	w23, [sp, #8]
	stp	x0, xzr, [sp, #24]
	str	x0, [sp, #16]
	add	x0, sp, #8
	bl	_HPDF_InitCCITTFax3
Lloh0:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.2:
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_HPDF_Fax3SetupState
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	add	x0, sp, #8
	bl	_HPDF_Fax3PreEncode
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	add	x20, x20, x26, lsl #2
	cmp	x20, x24
	b.eq	LBB0_7
; %bb.5:
	mov	x21, #0
	sbfiz	x22, x25, #2, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x24, x21
	add	x0, sp, #8
	mov	x2, x19
	bl	_HPDF_Fax4Encode
	add	x21, x21, x22
	add	x8, x24, x21
	cmp	x8, x20
	b.ne	LBB0_6
LBB0_7:
	add	x0, sp, #8
	bl	_HPDF_Fax4PostEncode
	add	x0, sp, #8
	bl	_HPDF_FreeCCITTFax3
	ldr	w0, [x23]
	b	LBB0_10
LBB0_8:
	add	x0, sp, #8
	bl	_HPDF_FreeCCITTFax3
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
.subsections_via_symbols
