	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Catalog_GetViewerPreference ## -- Begin function HPDF_Catalog_GetViewerPreference
	.p2align	4, 0x90
_HPDF_Catalog_GetViewerPreference:      ## @HPDF_Catalog_GetViewerPreference
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	_HPDF_OCLASS_DICT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_HPDF_Dict_GetItem
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_HPDF_OCLASS_BOOLEAN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_HPDF_Dict_GetItem
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_HPDF_HIDE_TOOLBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_HPDF_Dict_GetItem
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_HPDF_HIDE_MENUBAR@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
LBB0_8:
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_HPDF_Dict_GetItem
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_HPDF_HIDE_WINDOW_UI@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
LBB0_11:
	movl	(%r15), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_HPDF_Dict_GetItem
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_HPDF_FIT_WINDOW@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
LBB0_14:
	movl	(%r15), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_HPDF_Dict_GetItem
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.16:
	movq	_HPDF_CENTER_WINDOW@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	jmp	LBB0_17
LBB0_1:
	xorl	%r14d, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Catalog_GetViewerPreference\n"

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

	.comm	_HPDF_OCLASS_DICT,4,2           ## @HPDF_OCLASS_DICT
L_.str.2:                               ## @.str.2
	.asciz	"HideToolbar"

	.comm	_HPDF_OCLASS_BOOLEAN,4,2        ## @HPDF_OCLASS_BOOLEAN
	.comm	_HPDF_HIDE_TOOLBAR,8,3          ## @HPDF_HIDE_TOOLBAR
L_.str.3:                               ## @.str.3
	.asciz	"HideMenubar"

	.comm	_HPDF_HIDE_MENUBAR,8,3          ## @HPDF_HIDE_MENUBAR
L_.str.4:                               ## @.str.4
	.asciz	"HideWindowUI"

	.comm	_HPDF_HIDE_WINDOW_UI,8,3        ## @HPDF_HIDE_WINDOW_UI
L_.str.5:                               ## @.str.5
	.asciz	"FitWindow"

	.comm	_HPDF_FIT_WINDOW,8,3            ## @HPDF_FIT_WINDOW
L_.str.6:                               ## @.str.6
	.asciz	"CenterWindow"

	.comm	_HPDF_CENTER_WINDOW,8,3         ## @HPDF_CENTER_WINDOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Catalog_GetViewerPreference ; -- Begin function HPDF_Catalog_GetViewerPreference
	.p2align	2
_HPDF_Catalog_GetViewerPreference:      ; @HPDF_Catalog_GetViewerPreference
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
Lloh2:
	adrp	x8, _HPDF_OCLASS_DICT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_OCLASS_DICT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_GetItem
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x21, _HPDF_OCLASS_BOOLEAN@GOTPAGE
Lloh8:
	ldr	x21, [x21, _HPDF_OCLASS_BOOLEAN@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_HPDF_Dict_GetItem
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _HPDF_HIDE_TOOLBAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_HIDE_TOOLBAR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_18
LBB0_5:
	mov	w20, #0
LBB0_6:
	ldr	w2, [x21]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_GetItem
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _HPDF_HIDE_MENUBAR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HPDF_HIDE_MENUBAR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	add	w20, w20, w8
LBB0_9:
	ldr	w2, [x21]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_GetItem
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _HPDF_HIDE_WINDOW_UI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HPDF_HIDE_WINDOW_UI@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	add	w20, w20, w8
LBB0_12:
	ldr	w2, [x21]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_GetItem
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x0]
	cbz	x8, LBB0_15
; %bb.14:
Lloh26:
	adrp	x8, _HPDF_FIT_WINDOW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HPDF_FIT_WINDOW@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	add	w20, w20, w8
LBB0_15:
	ldr	w2, [x21]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_GetItem
	cbz	x0, LBB0_18
; %bb.16:
	ldr	x8, [x0]
	cbz	x8, LBB0_18
; %bb.17:
Lloh31:
	adrp	x8, _HPDF_CENTER_WINDOW@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HPDF_CENTER_WINDOW@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	add	w20, w20, w8
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Catalog_GetViewerPreference\n"

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

	.comm	_HPDF_OCLASS_DICT,4,2           ; @HPDF_OCLASS_DICT
l_.str.2:                               ; @.str.2
	.asciz	"HideToolbar"

	.comm	_HPDF_OCLASS_BOOLEAN,4,2        ; @HPDF_OCLASS_BOOLEAN
	.comm	_HPDF_HIDE_TOOLBAR,8,3          ; @HPDF_HIDE_TOOLBAR
l_.str.3:                               ; @.str.3
	.asciz	"HideMenubar"

	.comm	_HPDF_HIDE_MENUBAR,8,3          ; @HPDF_HIDE_MENUBAR
l_.str.4:                               ; @.str.4
	.asciz	"HideWindowUI"

	.comm	_HPDF_HIDE_WINDOW_UI,8,3        ; @HPDF_HIDE_WINDOW_UI
l_.str.5:                               ; @.str.5
	.asciz	"FitWindow"

	.comm	_HPDF_FIT_WINDOW,8,3            ; @HPDF_FIT_WINDOW
l_.str.6:                               ; @.str.6
	.asciz	"CenterWindow"

	.comm	_HPDF_CENTER_WINDOW,8,3         ; @HPDF_CENTER_WINDOW
.subsections_via_symbols
