	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HPDF_Fax3Encode2DRow
_HPDF_Fax3Encode2DRow:                  ## @HPDF_Fax3Encode2DRow
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpb	$0, (%rsi)
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_finddiff
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	cmpb	$0, (%r15)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	js	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_finddiff
	movq	%rax, %r14
	jmp	LBB0_6
LBB0_4:
	xorl	%r14d, %r14d
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rax
	sarq	$3, %rax
	movzbl	(%r15,%rax), %eax
	movl	%r14d, %ecx
	notb	%cl
	andb	$7, %cl
	movzbl	%cl, %edx
	xorl	%ecx, %ecx
	btl	%edx, %eax
	setb	%cl
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_finddiff2
	cmpq	%rbx, %rax
	jge	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_passcode@GOTPCREL(%rip), %rsi
	callq	_putcode
	cmpq	%r12, %r13
	jl	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	subq	%rbx, %r14
	leal	3(%r14), %eax
	cmpl	$7, %eax
	jae	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	addl	$3, %r14d
	shlq	$2, %r14
	movq	_vcodes@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_putcode
	movq	%rbx, %r13
	cmpq	%r12, %r13
	jl	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rax
	sarq	$3, %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movzbl	(%rdi,%rax), %eax
	movl	%ebx, %ecx
	notb	%cl
	andb	$7, %cl
	movzbl	%cl, %edx
	xorl	%ecx, %ecx
	btl	%edx, %eax
	setb	%cl
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_finddiff2
	movq	%rax, %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_horizcode@GOTPCREL(%rip), %rsi
	callq	_putcode
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rax
	addq	%rbx, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdx, %rax
	sarq	$3, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rcx,%rax), %eax
	movl	%edx, %ecx
	notb	%cl
	andb	$7, %cl
	movzbl	%cl, %ecx
	btl	%ecx, %eax
	jae	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rsi
	subq	%rdx, %rsi
	movq	_TIFFFaxBlackCodes@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_putspan
	movq	%r13, %rsi
	subq	%rbx, %rsi
	movq	_TIFFFaxWhiteCodes@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rsi
	subq	%rdx, %rsi
	movq	_TIFFFaxWhiteCodes@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_putspan
	movq	%r13, %rsi
	subq	%rbx, %rsi
	movq	_TIFFFaxBlackCodes@GOTPCREL(%rip), %rax
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_putspan
	cmpq	%r12, %r13
	jge	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rbx
	sarq	$3, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movzbl	(%r15,%rbx), %eax
	movl	%r13d, %ecx
	notb	%cl
	andb	$7, %cl
	movzbl	%cl, %r14d
	xorl	%ecx, %ecx
	btl	%r14d, %eax
	setb	%cl
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_finddiff
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movzbl	(%r15,%rbx), %eax
	xorl	%ecx, %ecx
	btl	%r14d, %eax
	setae	%cl
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_finddiff
	movzbl	(%r15,%rbx), %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	btl	%r14d, %edx
	setb	%cl
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_finddiff
	movq	%rax, %r14
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_18:
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_horizcode,4,2                  ## @horizcode
	.comm	_TIFFFaxWhiteCodes,4,2          ## @TIFFFaxWhiteCodes
	.comm	_TIFFFaxBlackCodes,4,2          ## @TIFFFaxBlackCodes
	.comm	_vcodes,8,3                     ## @vcodes
	.comm	_passcode,4,2                   ## @passcode
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
	.no_dead_strip	_HPDF_Fax3Encode2DRow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HPDF_Fax3Encode2DRow
_HPDF_Fax3Encode2DRow:                  ; @HPDF_Fax3Encode2DRow
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldrsb	w8, [x1]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_finddiff
	mov	x25, x0
	ldrsb	w8, [x20]
	tbnz	w8, #31, LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_finddiff
	mov	x27, x0
	b	LBB0_5
LBB0_3:
	mov	x25, #0
	ldrsb	w8, [x20]
	tbz	w8, #31, LBB0_2
LBB0_4:
	mov	x27, #0
LBB0_5:
	mov	x28, #0
Lloh0:
	adrp	x23, _passcode@GOTPAGE
Lloh1:
	ldr	x23, [x23, _passcode@GOTPAGEOFF]
Lloh2:
	adrp	x24, _horizcode@GOTPAGE
Lloh3:
	ldr	x24, [x24, _horizcode@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	asr	x8, x27, #3
	ldrb	w8, [x20, x8]
	mvn	w9, w27
	and	w9, w9, #0x7
	lsr	w8, w8, w9
	and	w3, w8, #0x1
	mov	x0, x20
	mov	x1, x27
	mov	x2, x19
	bl	_finddiff2
	cmp	x0, x25
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x0
	mov	x0, x22
	mov	x1, x23
	bl	_putcode
	cmp	x26, x19
	b.lt	LBB0_15
	b	LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x8, x27, x25
	add	w9, w8, #3
	cmp	w9, #7
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh4:
	adrp	x9, _vcodes@GOTPAGE
Lloh5:
	ldr	x9, [x9, _vcodes@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	w8, w8, #3
	add	x1, x9, w8, uxtw #2
	mov	x0, x22
	bl	_putcode
	mov	x26, x25
	cmp	x26, x19
	b.lt	LBB0_15
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	asr	x8, x25, #3
	ldrb	w8, [x21, x8]
	mvn	w9, w25
	and	w9, w9, #0x7
	lsr	w8, w8, w9
	and	w3, w8, #0x1
	mov	x0, x21
	mov	x1, x25
	mov	x2, x19
	bl	_finddiff2
	mov	x26, x0
	mov	x0, x22
	mov	x1, x24
	bl	_putcode
	cmn	x28, x25
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	asr	x8, x28, #3
	ldrb	w8, [x21, x8]
	mvn	w9, w28
	and	w9, w9, #0x7
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x1, x25, x28
Lloh7:
	adrp	x8, _TIFFFaxBlackCodes@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TIFFFaxBlackCodes@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_putspan
	sub	x1, x26, x25
Lloh10:
	adrp	x8, _TIFFFaxWhiteCodes@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TIFFFaxWhiteCodes@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x1, x25, x28
Lloh12:
	adrp	x8, _TIFFFaxWhiteCodes@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TIFFFaxWhiteCodes@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_putspan
	sub	x1, x26, x25
Lloh15:
	adrp	x8, _TIFFFaxBlackCodes@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TIFFFaxBlackCodes@GOTPAGEOFF]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x8]
	mov	x0, x22
	bl	_putspan
	cmp	x26, x19
	b.ge	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	asr	x27, x26, #3
	ldrb	w8, [x21, x27]
	mvn	w9, w26
	and	w28, w9, #0x7
	lsr	w8, w8, w28
	and	w3, w8, #0x1
	mov	x0, x21
	mov	x1, x26
	mov	x2, x19
	bl	_finddiff
	mov	x25, x0
	ldrb	w8, [x21, x27]
	mvn	w8, w8
	lsr	w8, w8, w28
	and	w3, w8, #0x1
	mov	x0, x20
	mov	x1, x26
	mov	x2, x19
	bl	_finddiff
	mov	x1, x0
	ldrb	w8, [x21, x27]
	lsr	w8, w8, w28
	and	w3, w8, #0x1
	mov	x0, x20
	mov	x2, x19
	bl	_finddiff
	mov	x27, x0
	mov	x28, x26
	b	LBB0_6
LBB0_16:
Lloh17:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_horizcode,4,2                  ; @horizcode
	.comm	_TIFFFaxWhiteCodes,4,2          ; @TIFFFaxWhiteCodes
	.comm	_TIFFFaxBlackCodes,4,2          ; @TIFFFaxBlackCodes
	.comm	_vcodes,8,3                     ; @vcodes
	.comm	_passcode,4,2                   ; @passcode
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
	.no_dead_strip	_HPDF_Fax3Encode2DRow
.subsections_via_symbols
