	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Get3DStreamType
_Get3DStreamType:                       ## @Get3DStreamType
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	$4, -52(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_HPDF_Stream_Read
	movq	_HPDF_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.2:
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_HPDF_Stream_Seek
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.3:
	movq	_u3d@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_HPDF_MemCmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_prc@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	-48(%rbp), %rdi
	movl	$3, %edx
	callq	_HPDF_MemCmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	_HPDF_INVALID_U3D_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_1:
	movl	(%rbx), %edi
	callq	_HPDF_Error_GetCode
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movq	(%r15), %rax
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_U3D_Get3DStreamType\n"

	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.comm	_HPDF_SEEK_SET,4,2              ## @HPDF_SEEK_SET
	.comm	_u3d,8,3                        ## @u3d
	.comm	_prc,8,3                        ## @prc
	.comm	_HPDF_INVALID_U3D_DATA,8,3      ## @HPDF_INVALID_U3D_DATA
	.no_dead_strip	_Get3DStreamType
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Get3DStreamType
_Get3DStreamType:                       ; @Get3DStreamType
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	w8, #4
	str	w8, [sp, #4]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_HPDF_Stream_Read
Lloh5:
	adrp	x21, _HPDF_OK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
Lloh7:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_HPDF_Stream_Seek
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
Lloh10:
	adrp	x20, _u3d@GOTPAGE
Lloh11:
	ldr	x20, [x20, _u3d@GOTPAGEOFF]
	ldr	x1, [x20]
	add	x0, sp, #8
	mov	w2, #4
	bl	_HPDF_MemCmp
	cbz	x0, LBB0_8
; %bb.3:
Lloh12:
	adrp	x20, _prc@GOTPAGE
Lloh13:
	ldr	x20, [x20, _prc@GOTPAGEOFF]
	ldr	x1, [x20]
	add	x0, sp, #8
	mov	w2, #3
	bl	_HPDF_MemCmp
	cbz	x0, LBB0_8
; %bb.4:
Lloh14:
	adrp	x8, _HPDF_INVALID_U3D_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HPDF_INVALID_U3D_DATA@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
	bl	_HPDF_Error_GetCode
LBB0_6:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	x0, [x21]
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_U3D_Get3DStreamType\n"

	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_HPDF_SEEK_SET,4,2              ; @HPDF_SEEK_SET
	.comm	_u3d,8,3                        ; @u3d
	.comm	_prc,8,3                        ; @prc
	.comm	_HPDF_INVALID_U3D_DATA,8,3      ; @HPDF_INVALID_U3D_DATA
	.no_dead_strip	_Get3DStreamType
.subsections_via_symbols
