	.file	"extr_pdf-object.c_pdf_dict_put_val_null.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"not a dict (%s)"
.LC1:
	.string	"index out of bounds"
	.text
	.p2align 4
	.globl	pdf_dict_put_val_null
	.type	pdf_dict_put_val_null, @function
pdf_dict_put_val_null:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rbx, edx
	call	RESOLVE@PLT
	mov	rdi, rbp
	call	OBJ_IS_DICT@PLT
	test	eax, eax
	je	.L8
.L2:
	test	ebx, ebx
	js	.L5
	mov	rdi, rbp
	call	DICT@PLT
	cmp	DWORD PTR [rax], ebx
	jg	.L4
.L5:
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	fz_throw@PLT
.L4:
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r12
	call	prepare_object_for_alteration@PLT
	mov	rdi, rbp
	call	DICT@PLT
	mov	rdi, r12
	mov	rax, QWORD PTR 8[rax]
	mov	esi, DWORD PTR [rax+rbx*4]
	call	pdf_drop_obj@PLT
	mov	rdi, rbp
	call	DICT@PLT
	mov	edx, DWORD PTR PDF_NULL[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR [rax+rbx*4], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	pdf_objkindstr@PLT
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r12
	mov	ecx, eax
	xor	eax, eax
	call	fz_throw@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pdf_dict_put_val_null, .-pdf_dict_put_val_null
	.comm	PDF_NULL,4,4
	.comm	FZ_ERROR_GENERIC,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-object.c_pdf_dict_put_val_null.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"not a dict (%s)\000"
	.align	2
.LC1:
	.ascii	"index out of bounds\000"
	.text
	.align	2
	.global	pdf_dict_put_val_null
	.syntax unified
	.arm
	.fpu softvfp
	.type	pdf_dict_put_val_null, %function
pdf_dict_put_val_null:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	mov	r0, r1
	mov	r5, r2
	bl	RESOLVE
	mov	r0, r4
	bl	OBJ_IS_DICT
	cmp	r0, #0
	beq	.L8
.L2:
	cmp	r5, #0
	blt	.L5
	mov	r0, r4
	bl	DICT
	ldr	r3, [r0]
	cmp	r3, r5
	bgt	.L4
.L5:
	ldr	r3, .L9
	mov	r0, r6
	ldr	r2, .L9+4
	ldr	r1, [r3]
	bl	fz_throw
.L4:
	mov	r2, #0
	mov	r1, r4
	mov	r0, r6
	bl	prepare_object_for_alteration
	mov	r0, r4
	bl	DICT
	ldr	r3, [r0, #4]
	mov	r0, r6
	ldr	r1, [r3, r5, lsl #2]
	bl	pdf_drop_obj
	mov	r0, r4
	bl	DICT
	ldr	r2, .L9+8
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	str	r2, [r3, r5, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9
	mov	r0, r4
	ldr	r7, [r3]
	bl	pdf_objkindstr
	mov	r1, r7
	mov	r3, r0
	ldr	r2, .L9+12
	mov	r0, r6
	bl	fz_throw
	b	.L2
.L10:
	.align	2
.L9:
	.word	FZ_ERROR_GENERIC
	.word	.LC1
	.word	PDF_NULL
	.word	.LC0
	.size	pdf_dict_put_val_null, .-pdf_dict_put_val_null
	.comm	PDF_NULL,4,4
	.comm	FZ_ERROR_GENERIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
