	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_DictStream_New            ## -- Begin function HPDF_DictStream_New
	.p2align	4, 0x90
_HPDF_DictStream_New:                   ## @HPDF_DictStream_New
	.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
	movl	%esi, %r15d
	movl	%edi, %r14d
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r12
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_HPDF_Xref_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_HPDF_Number_New
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r13
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_HPDF_Xref_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_HPDF_Dict_Add
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.5:
	movq	_HPDF_STREAM_BUF_SIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_HPDF_MemStream_New
	movl	%eax, (%r12)
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmoveq	%rcx, %r12
	movq	%r12, %rbx
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %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	"Length"

	.comm	_HPDF_STREAM_BUF_SIZ,4,2        ## @HPDF_STREAM_BUF_SIZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_DictStream_New            ; -- Begin function HPDF_DictStream_New
	.p2align	2
_HPDF_DictStream_New:                   ; @HPDF_DictStream_New
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_HPDF_Xref_Add
Lloh0:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_HPDF_Number_New
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_HPDF_Xref_Add
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_HPDF_Dict_Add
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _HPDF_STREAM_BUF_SIZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_STREAM_BUF_SIZ@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_HPDF_MemStream_New
	str	w0, [x19]
	cmp	w0, #0
	csel	x0, xzr, x19, eq
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Length"

	.comm	_HPDF_STREAM_BUF_SIZ,4,2        ; @HPDF_STREAM_BUF_SIZ
.subsections_via_symbols
