	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_EmbeddedFile_New          ## -- Begin function HPDF_EmbeddedFile_New
	.p2align	4, 0x90
_HPDF_EmbeddedFile_New:                 ## @HPDF_EmbeddedFile_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_HPDF_OK@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_HPDF_Xref_Add
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.2:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_HPDF_DictStream_New
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %rbx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_HPDF_FileReader_New
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r13
	movq	8(%rbx), %rdi
	callq	_HPDF_Stream_Free
	movq	%r13, 8(%rbx)
	movq	_HPDF_STREAM_FILTER_FLATE_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	%r14d, %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	%r14d, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_HPDF_String_New
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %r14
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_HPDF_Dict_AddName
	movq	%rax, %rbx
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r15
	addq	%rbx, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_HPDF_Dict_Add
	addq	%rbx, %rax
	xorl	%r13d, %r13d
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmoveq	%r12, %r13
	jmp	LBB0_12
LBB0_11:
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r13, %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
	.comm	_HPDF_STREAM_FILTER_FLATE_DECODE,4,2 ## @HPDF_STREAM_FILTER_FLATE_DECODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Type"

L_.str.1:                               ## @.str.1
	.asciz	"F"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_EmbeddedFile_New          ; -- Begin function HPDF_EmbeddedFile_New
	.p2align	2
_HPDF_EmbeddedFile_New:                 ; @HPDF_EmbeddedFile_New
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HPDF_OK@GOTPAGEOFF]
	ldr	x25, [x24]
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_HPDF_Xref_Add
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	bl	_HPDF_DictStream_New
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	bl	_HPDF_FileReader_New
	cbz	x0, LBB0_8
; %bb.4:
	mov	x23, x0
	ldr	x0, [x20, #8]
	bl	_HPDF_Stream_Free
	str	x23, [x20, #8]
Lloh2:
	adrp	x8, _HPDF_STREAM_FILTER_FLATE_DECODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_STREAM_FILTER_FLATE_DECODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x22
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_8
; %bb.5:
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, #0
	bl	_HPDF_String_New
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_HPDF_Dict_AddName
	add	x25, x0, x25
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_HPDF_Dict_Add
	add	x21, x25, x0
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_HPDF_Dict_Add
	add	x21, x21, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_HPDF_Dict_Add
	ldr	x8, [x24]
	add	x9, x21, x0
	cmp	x9, x8
	csel	x0, x19, xzr, eq
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_HPDF_STREAM_FILTER_FLATE_DECODE,4,2 ; @HPDF_STREAM_FILTER_FLATE_DECODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Type"

l_.str.1:                               ; @.str.1
	.asciz	"F"

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

.subsections_via_symbols
