	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Image_Load1BitImageFromMem ## -- Begin function HPDF_Image_Load1BitImageFromMem
	.p2align	4, 0x90
_HPDF_Image_Load1BitImageFromMem:       ## @HPDF_Image_Load1BitImageFromMem
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r14d
	movq	_HPDF_OK@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_HPDF_DictStream_New
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r14
	movq	_HPDF_OSUBCLASS_XOBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %rbx
	addq	%r15, %rbx
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_HPDF_Dict_AddName
	addq	%rbx, %rax
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.2:
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	callq	_HPDF_Dict_AddName
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.3:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %ebx
	movl	%r12d, %edx
	callq	_HPDF_Dict_AddNumber
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.4:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_HPDF_Dict_AddNumber
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.5:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_HPDF_Dict_AddNumber
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.6:
	movl	16(%rbp), %eax
	movl	(%r14), %esi
	movl	%eax, (%rsp)
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_HPDF_Stream_CcittToStream
	cmpq	(%r13), %rax
	cmovneq	%r15, %r14
	jmp	LBB0_13
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	movq	%r14, %rax
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Image_Load1BitImage\n"

	.comm	_HPDF_OSUBCLASS_XOBJECT,4,2     ## @HPDF_OSUBCLASS_XOBJECT
L_.str.1:                               ## @.str.1
	.asciz	"Type"

L_.str.2:                               ## @.str.2
	.asciz	"XObject"

L_.str.3:                               ## @.str.3
	.asciz	"Subtype"

L_.str.4:                               ## @.str.4
	.asciz	"Image"

L_.str.5:                               ## @.str.5
	.asciz	"ColorSpace"

L_.str.6:                               ## @.str.6
	.asciz	"DeviceGray"

L_.str.7:                               ## @.str.7
	.asciz	"Width"

L_.str.8:                               ## @.str.8
	.asciz	"Height"

L_.str.9:                               ## @.str.9
	.asciz	"BitsPerComponent"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Image_Load1BitImageFromMem ; -- Begin function HPDF_Image_Load1BitImageFromMem
	.p2align	2
_HPDF_Image_Load1BitImageFromMem:       ; @HPDF_Image_Load1BitImageFromMem
	.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, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x25, x0
Lloh0:
	adrp	x26, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HPDF_OK@GOTPAGEOFF]
	ldr	x27, [x26]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x0, x25
	mov	x1, x24
	bl	_HPDF_DictStream_New
	cbz	x0, LBB0_8
; %bb.1:
	mov	x24, x0
Lloh4:
	adrp	x8, _HPDF_OSUBCLASS_XOBJECT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_OSUBCLASS_XOBJECT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_HPDF_Dict_AddName
	add	x25, x0, x27
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh13:
	adrp	x2, l_.str.4@PAGE
Lloh14:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_HPDF_Dict_AddName
	ldr	x8, [x26]
	add	x9, x25, x0
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.2:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh17:
	adrp	x2, l_.str.6@PAGE
Lloh18:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x24
	bl	_HPDF_Dict_AddName
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x24
	mov	x2, x22
	bl	_HPDF_Dict_AddNumber
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x24
	mov	x2, x21
	bl	_HPDF_Dict_AddNumber
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
Lloh23:
	adrp	x1, l_.str.9@PAGE
Lloh24:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x24
	mov	w2, #1
	bl	_HPDF_Dict_AddNumber
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x24]
	mov	x0, x23
	mov	x2, #0
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	bl	_HPDF_Stream_CcittToStream
	ldr	x8, [x26]
	cmp	x0, x8
	csel	x0, x24, xzr, eq
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Image_Load1BitImage\n"

	.comm	_HPDF_OSUBCLASS_XOBJECT,4,2     ; @HPDF_OSUBCLASS_XOBJECT
l_.str.1:                               ; @.str.1
	.asciz	"Type"

l_.str.2:                               ; @.str.2
	.asciz	"XObject"

l_.str.3:                               ; @.str.3
	.asciz	"Subtype"

l_.str.4:                               ; @.str.4
	.asciz	"Image"

l_.str.5:                               ; @.str.5
	.asciz	"ColorSpace"

l_.str.6:                               ; @.str.6
	.asciz	"DeviceGray"

l_.str.7:                               ; @.str.7
	.asciz	"Width"

l_.str.8:                               ; @.str.8
	.asciz	"Height"

l_.str.9:                               ; @.str.9
	.asciz	"BitsPerComponent"

.subsections_via_symbols
