	.file	"extr_pdf-layer.c_pdf_select_layer_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unknown Layer config (None known!)"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Illegal Layer config"
.LC2:
	.string	"No default Layer config"
	.text
	.p2align 4
	.globl	pdf_select_layer_config
	.type	pdf_select_layer_config, @function
pdf_select_layer_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR OCProperties[rip]
	mov	r12, QWORD PTR [rsi]
	mov	DWORD PTR 28[rsp], edx
	call	PDF_NAME@PLT
	mov	edi, DWORD PTR Root[rip]
	mov	r14d, eax
	call	PDF_NAME@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	r15d, eax
	call	pdf_trailer@PLT
	mov	edx, r15d
	mov	rdi, rbp
	mov	rsi, rax
	call	pdf_dict_get@PLT
	mov	edx, r14d
	mov	rdi, rbp
	mov	rsi, rax
	call	pdf_dict_get@PLT
	mov	r13, rax
	test	rax, rax
	je	.L32
	mov	edi, DWORD PTR Configs[rip]
	call	PDF_NAME@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_dict_get@PLT
	mov	edx, DWORD PTR 28[rsp]
	mov	rdi, rbp
	mov	rsi, rax
	call	pdf_array_get@PLT
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	je	.L33
.L4:
	mov	esi, DWORD PTR 16[r12]
	mov	rdi, rbp
	call	pdf_drop_obj@PLT
	mov	edi, DWORD PTR Intent[rip]
	call	PDF_NAME@PLT
	mov	rbx, QWORD PTR 16[rsp]
	mov	rdi, rbp
	mov	edx, eax
	mov	rsi, rbx
	call	pdf_dict_get@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	pdf_keep_obj@PLT
	mov	edi, DWORD PTR BaseState[rip]
	mov	DWORD PTR 16[r12], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 4[rsp], eax
	call	PDF_NAME@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_dict_get@PLT
	mov	edi, DWORD PTR Unchanged[rip]
	mov	r13, rax
	call	PDF_NAME@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_name_eq@PLT
	test	rax, rax
	je	.L34
.L7:
	mov	edi, DWORD PTR ON[rip]
	call	PDF_NAME@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_dict_get@PLT
	mov	rdi, rbp
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	call	pdf_array_len@PLT
	mov	DWORD PTR 24[rsp], eax
	test	eax, eax
	jle	.L12
	mov	eax, DWORD PTR 4[rsp]
	xor	r14d, r14d
	sub	eax, 1
	lea	r13, 8[0+rax*8]
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, r14d
	mov	rdi, rbp
	call	pdf_array_get@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	rbx, rax
	test	edx, edx
	jle	.L15
	xor	r15d, r15d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	add	r15, 8
	cmp	r13, r15
	je	.L15
.L16:
	mov	rax, QWORD PTR 8[r12]
	mov	rdx, rbx
	mov	rdi, rbp
	mov	esi, DWORD PTR 4[rax+r15]
	call	pdf_objcmp_resolve@PLT
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR 8[r12]
	mov	DWORD PTR [rax+r15], 1
.L15:
	add	r14d, 1
	cmp	DWORD PTR 24[rsp], r14d
	jne	.L17
.L12:
	mov	edi, DWORD PTR OFF[rip]
	call	PDF_NAME@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_dict_get@PLT
	mov	rdi, rbp
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	call	pdf_array_len@PLT
	mov	DWORD PTR 24[rsp], eax
	test	eax, eax
	jle	.L18
	mov	eax, DWORD PTR 4[rsp]
	xor	r14d, r14d
	sub	eax, 1
	lea	r13, 8[0+rax*8]
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, r14d
	mov	rdi, rbp
	call	pdf_array_get@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jle	.L21
	xor	r15d, r15d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	add	r15, 8
	cmp	r13, r15
	je	.L21
.L22:
	mov	rax, QWORD PTR 8[r12]
	mov	rdx, rbx
	mov	rdi, rbp
	mov	esi, DWORD PTR 4[rax+r15]
	call	pdf_objcmp_resolve@PLT
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR 8[r12]
	mov	DWORD PTR [rax+r15], 0
.L21:
	add	r14d, 1
	cmp	DWORD PTR 24[rsp], r14d
	jne	.L23
.L18:
	mov	eax, DWORD PTR 28[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	mov	DWORD PTR 4[r12], eax
	call	drop_ui@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	mov	rdx, QWORD PTR 8[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	load_ui@PLT
.L32:
	.cfi_restore_state
	test	ebx, ebx
	je	.L1
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	fz_throw@PLT
	mov	edi, DWORD PTR Configs[rip]
	call	PDF_NAME@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_dict_get@PLT
	mov	edx, ebx
	mov	rdi, rbp
	mov	rsi, rax
	call	pdf_array_get@PLT
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	jne	.L4
.L6:
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	call	fz_throw@PLT
	jmp	.L5
.L34:
	mov	edi, DWORD PTR OFF[rip]
	call	PDF_NAME@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_name_eq@PLT
	test	rax, rax
	je	.L35
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jle	.L7
	mov	rdx, QWORD PTR 8[r12]
	lea	ecx, -1[rax]
	lea	rax, 8[rdx]
	lea	rcx, [rax+rcx*8]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L36:
	add	rax, 8
.L10:
	mov	DWORD PTR [rdx], 0
	mov	rdx, rax
	cmp	rax, rcx
	jne	.L36
	jmp	.L7
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L33:
	.cfi_restore_state
	mov	esi, DWORD PTR 28[rsp]
	test	esi, esi
	jne	.L6
.L5:
	mov	edi, DWORD PTR D[rip]
	call	PDF_NAME@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_dict_get@PLT
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	jne	.L4
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	call	fz_throw@PLT
	jmp	.L4
.L35:
	mov	ecx, DWORD PTR 4[rsp]
	test	ecx, ecx
	jle	.L7
	mov	eax, DWORD PTR 4[rsp]
	mov	rdx, QWORD PTR 8[r12]
	lea	ecx, -1[rax]
	lea	rax, 8[rdx]
	lea	rcx, [rax+rcx*8]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L37:
	add	rax, 8
.L11:
	mov	DWORD PTR [rdx], 1
	mov	rdx, rax
	cmp	rax, rcx
	jne	.L37
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	pdf_select_layer_config, .-pdf_select_layer_config
	.comm	Unchanged,4,4
	.comm	Root,4,4
	.comm	ON,4,4
	.comm	OFF,4,4
	.comm	OCProperties,4,4
	.comm	Intent,4,4
	.comm	FZ_ERROR_GENERIC,4,4
	.comm	D,4,4
	.comm	Configs,4,4
	.comm	BaseState,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pdf-layer.c_pdf_select_layer_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown Layer config (None known!)\000"
	.align	2
.LC1:
	.ascii	"Illegal Layer config\000"
	.align	2
.LC2:
	.ascii	"No default Layer config\000"
	.text
	.align	2
	.global	pdf_select_layer_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	pdf_select_layer_config, %function
pdf_select_layer_config:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r8, r2
	mov	r4, r0
	ldr	r5, [r1]
	str	r2, [sp, #4]
	bl	pdf_trailer
	ldr	r3, .L38
	mov	r6, r0
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	ldr	r3, .L38+4
	mov	r6, r0
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	subs	r6, r0, #0
	beq	.L35
	ldr	r3, .L38+8
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	ldr	r2, [sp, #4]
	mov	r1, r0
	mov	r0, r4
	bl	pdf_array_get
	subs	r10, r0, #0
	beq	.L36
.L4:
	ldr	r1, [r5, #12]
	mov	r0, r4
	bl	pdf_drop_obj
	ldr	r3, .L38+12
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r10
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	mov	r1, r0
	mov	r0, r4
	bl	pdf_keep_obj
	ldr	r3, .L38+16
	str	r0, [r5, #12]
	ldr	r0, [r3]
	ldr	r6, [r5]
	bl	PDF_NAME
	mov	r1, r10
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	ldr	r3, .L38+20
	mov	r8, r0
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r8
	mov	r2, r0
	mov	r0, r4
	bl	pdf_name_eq
	ldr	r3, .L38+24
	subs	r7, r0, #0
	str	r3, [sp, #8]
	beq	.L32
.L7:
	ldr	r3, .L38+28
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r10
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	mov	r8, r0
	mov	r0, r4
	mov	r1, r8
	bl	pdf_array_len
	subs	fp, r0, #0
	ble	.L12
	mov	r7, #0
	str	r10, [sp, #12]
.L17:
	mov	r2, r7
	mov	r1, r8
	mov	r0, r4
	bl	pdf_array_get
	cmp	r6, #0
	mov	r10, r0
	ble	.L15
	mov	r9, #0
	b	.L16
.L14:
	cmp	r6, r9
	beq	.L15
.L16:
	ldr	r3, [r5, #8]
	mov	r2, r10
	add	r3, r3, r9, lsl #3
	ldr	r1, [r3, #4]
	mov	r0, r4
	bl	pdf_objcmp_resolve
	cmp	r0, #0
	lsl	r3, r9, #3
	add	r9, r9, #1
	bne	.L14
	mov	r1, #1
	ldr	r2, [r5, #8]
	str	r1, [r2, r3]
.L15:
	add	r7, r7, #1
	cmp	fp, r7
	bne	.L17
	ldr	r10, [sp, #12]
.L12:
	ldr	r3, [sp, #8]
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r10
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	mov	r8, r0
	mov	r0, r4
	mov	r1, r8
	bl	pdf_array_len
	subs	fp, r0, #0
	ble	.L18
	mov	r7, #0
	str	r10, [sp, #8]
.L23:
	mov	r2, r7
	mov	r1, r8
	mov	r0, r4
	bl	pdf_array_get
	cmp	r6, #0
	mov	r10, r0
	ble	.L21
	mov	r9, #0
	b	.L22
.L20:
	cmp	r6, r9
	beq	.L21
.L22:
	ldr	r3, [r5, #8]
	mov	r2, r10
	add	r3, r3, r9, lsl #3
	ldr	r1, [r3, #4]
	mov	r0, r4
	bl	pdf_objcmp_resolve
	cmp	r0, #0
	lsl	r3, r9, #3
	add	r9, r9, #1
	bne	.L20
	ldr	r2, [r5, #8]
	str	r0, [r2, r3]
.L21:
	add	r7, r7, #1
	cmp	fp, r7
	bne	.L23
	ldr	r10, [sp, #8]
.L18:
	ldr	r3, [sp, #4]
	mov	r1, r5
	str	r3, [r5, #4]
	mov	r0, r4
	bl	drop_ui
	mov	r3, r10
	mov	r2, r8
	mov	r1, r5
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	load_ui
.L35:
	cmp	r8, #0
	beq	.L1
	ldr	r7, .L38+32
	ldr	r2, .L38+36
	ldr	r1, [r7]
	mov	r0, r4
	bl	fz_throw
	ldr	r3, .L38+8
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	mov	r2, r8
	mov	r1, r0
	mov	r0, r4
	bl	pdf_array_get
	subs	r10, r0, #0
	bne	.L4
.L6:
	mov	r0, r4
	ldr	r1, [r7]
	ldr	r2, .L38+40
	bl	fz_throw
	b	.L5
.L32:
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r8
	mov	r2, r0
	mov	r0, r4
	bl	pdf_name_eq
	subs	r3, r0, #0
	beq	.L37
	cmp	r6, #0
	ble	.L7
	mov	r2, r7
	ldr	r3, [r5, #8]
.L10:
	str	r2, [r3, r7, lsl #3]
	add	r7, r7, #1
	cmp	r6, r7
	bne	.L10
	b	.L7
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	ldrne	r7, .L38+32
	bne	.L6
.L5:
	ldr	r3, .L38+44
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	subs	r10, r0, #0
	bne	.L4
	ldr	r3, .L38+32
	mov	r0, r4
	ldr	r2, .L38+48
	ldr	r1, [r3]
	bl	fz_throw
	b	.L4
.L37:
	cmp	r6, #0
	movgt	r1, #1
	ldrgt	r2, [r5, #8]
	ble	.L7
.L11:
	str	r1, [r2, r3, lsl #3]
	add	r3, r3, #1
	cmp	r6, r3
	bne	.L11
	b	.L7
.L39:
	.align	2
.L38:
	.word	Root
	.word	OCProperties
	.word	Configs
	.word	Intent
	.word	BaseState
	.word	Unchanged
	.word	OFF
	.word	ON
	.word	FZ_ERROR_GENERIC
	.word	.LC0
	.word	.LC1
	.word	D
	.word	.LC2
	.size	pdf_select_layer_config, .-pdf_select_layer_config
	.comm	Unchanged,4,4
	.comm	Root,4,4
	.comm	ON,4,4
	.comm	OFF,4,4
	.comm	OCProperties,4,4
	.comm	Intent,4,4
	.comm	FZ_ERROR_GENERIC,4,4
	.comm	D,4,4
	.comm	Configs,4,4
	.comm	BaseState,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
