	.file	"extr_archive_check_magic.c___archive_check_magic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PROGRAMMER ERROR: Function "
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	" invoked with invalid archive handle.\n"
	.align 8
.LC2:
	.string	"PROGRAMMER ERROR: Function '%s' invoked on '%s' archive object, which is not supported."
	.align 8
.LC3:
	.string	"INTERNAL ERROR: Function '%s' invoked with archive structure in state '%s', should be in state '%s'"
	.text
	.p2align 4
	.globl	__archive_check_magic
	.type	__archive_check_magic, @function
__archive_check_magic:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 144
	.cfi_def_cfa_offset 192
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	call	archive_handle_type_name@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
.L2:
	cmp	DWORD PTR [rbx], r12d
	jne	.L11
	mov	edx, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR ARCHIVE_OK[rip]
	test	edx, r13d
	je	.L12
.L1:
	mov	rcx, QWORD PTR 136[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 144
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR ARCHIVE_STATE_FATAL[rip]
	cmp	rax, rdx
	je	.L6
	lea	rdi, 64[rsp]
	mov	esi, r13d
	call	write_all_states@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, rsp
	mov	ebp, eax
	call	write_all_states@PLT
	mov	r9d, ebp
	mov	rcx, r14
	mov	esi, -1
	movsx	r8, eax
	lea	rdx, .LC3[rip]
	mov	rdi, rbx
	xor	eax, eax
	call	archive_set_error@PLT
	mov	rax, QWORD PTR ARCHIVE_STATE_FATAL[rip]
.L6:
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR ARCHIVE_FATAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r8, rbp
	mov	rcx, r14
	lea	rdx, .LC2[rip]
	mov	rdi, rbx
	mov	esi, -1
	xor	eax, eax
	call	archive_set_error@PLT
	mov	rax, QWORD PTR ARCHIVE_STATE_FATAL[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR ARCHIVE_FATAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	mov	rdi, r14
	call	errmsg@PLT
	lea	rdi, .LC1[rip]
	call	errmsg@PLT
	xor	eax, eax
	call	diediedie@PLT
	jmp	.L2
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__archive_check_magic, .-__archive_check_magic
	.comm	ARCHIVE_STATE_FATAL,8,8
	.comm	ARCHIVE_OK,4,4
	.comm	ARCHIVE_FATAL,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_archive_check_magic.c___archive_check_magic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PROGRAMMER ERROR: Function \000"
	.align	2
.LC1:
	.ascii	" invoked with invalid archive handle.\012\000"
	.align	2
.LC2:
	.ascii	"PROGRAMMER ERROR: Function '%s' invoked on '%s' arc"
	.ascii	"hive object, which is not supported.\000"
	.align	2
.LC3:
	.ascii	"INTERNAL ERROR: Function '%s' invoked with archive "
	.ascii	"structure in state '%s', should be in state '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__archive_check_magic
	.syntax unified
	.arm
	.fpu softvfp
	.type	__archive_check_magic, %function
__archive_check_magic:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r3
	ldr	r3, .L14
	sub	sp, sp, #144
	mov	r4, r0
	ldr	r0, [r0]
	mov	r6, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #140]
	mov	r3,#0
	bl	archive_handle_type_name
	subs	r5, r0, #0
	beq	.L10
.L2:
	ldr	r1, [r4]
	cmp	r1, r6
	bne	.L11
	ldr	r1, [r4, #4]
	tst	r1, r8
	beq	.L12
	ldr	r3, .L14+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #140]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #144
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r5, .L14+8
	ldr	r3, [r5]
	cmp	r3, r1
	beq	.L6
	add	r0, sp, #12
	bl	write_all_states
	mov	r1, r8
	mov	r6, r0
	add	r0, sp, #76
	bl	write_all_states
	mov	r3, r7
	str	r0, [sp, #4]
	mvn	r1, #0
	mov	r0, r4
	ldr	r2, .L14+12
	str	r6, [sp]
	bl	archive_set_error
	ldr	r3, [r5]
.L6:
	ldr	r2, .L14+16
	str	r3, [r4, #4]
	ldr	r0, [r2]
	b	.L1
.L11:
	mov	r3, r7
	ldr	r2, .L14+20
	mvn	r1, #0
	mov	r0, r4
	str	r5, [sp]
	bl	archive_set_error
	ldr	r3, .L14+8
	ldr	r2, .L14+16
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [r4, #4]
	b	.L1
.L10:
	ldr	r0, .L14+24
	bl	errmsg
	mov	r0, r7
	bl	errmsg
	ldr	r0, .L14+28
	bl	errmsg
	bl	diediedie
	b	.L2
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC4
	.word	ARCHIVE_OK
	.word	ARCHIVE_STATE_FATAL
	.word	.LC3
	.word	ARCHIVE_FATAL
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	__archive_check_magic, .-__archive_check_magic
	.comm	ARCHIVE_STATE_FATAL,4,4
	.comm	ARCHIVE_OK,4,4
	.comm	ARCHIVE_FATAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
