	.file	"extr_pe_flag.c_pe_flag_opt_header.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pe_flag_opt_header
	.type	pe_flag_opt_header, @function
pe_flag_opt_header:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L2
	cmp	QWORD PTR PE_C_SET[rip], rsi
	je	.L3
	cmp	QWORD PTR PE_C_CLR[rip], rsi
	jne	.L2
	mov	eax, DWORD PTR PE_F_DIRTY[rip]
	not	eax
	test	eax, edx
	jne	.L2
	mov	eax, DWORD PTR LIBPE_F_DIRTY_OPT_HEADER[rip]
	not	eax
	and	DWORD PTR [rdi], eax
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR PE_F_DIRTY[rip]
	not	eax
	test	eax, edx
	jne	.L2
	mov	eax, DWORD PTR LIBPE_F_DIRTY_OPT_HEADER[rip]
	or	DWORD PTR [rdi], eax
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR errno[rip], eax
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	pe_flag_opt_header, .-pe_flag_opt_header
	.comm	errno,4,4
	.comm	PE_F_DIRTY,4,4
	.comm	PE_C_SET,8,8
	.comm	PE_C_CLR,8,8
	.comm	LIBPE_F_DIRTY_OPT_HEADER,4,4
	.comm	EINVAL,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_pe_flag.c_pe_flag_opt_header.c"
	.text
	.align	2
	.global	pe_flag_opt_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	pe_flag_opt_header, %function
pe_flag_opt_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	subs	r3, r0, #0
	beq	.L2
	ldr	r0, .L14
	ldr	r0, [r0]
	cmp	r0, r1
	beq	.L3
	ldr	r0, .L14+4
	ldr	r0, [r0]
	cmp	r0, r1
	bne	.L2
	ldr	r1, .L14+8
	ldr	r0, [r1]
	bics	r0, r2, r0
	bne	.L2
	ldr	r1, .L14+12
	ldr	r2, [r3]
	ldr	r1, [r1]
	bic	r2, r2, r1
	str	r2, [r3]
	bx	lr
.L3:
	ldr	r1, .L14+8
	ldr	r0, [r1]
	bics	r0, r2, r0
	bne	.L2
	ldr	r1, .L14+12
	ldr	r2, [r3]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3]
	bx	lr
.L2:
	ldr	r2, .L14+16
	ldr	r3, .L14+20
	ldr	r2, [r2]
	mvn	r0, #0
	str	r2, [r3]
	bx	lr
.L15:
	.align	2
.L14:
	.word	PE_C_SET
	.word	PE_C_CLR
	.word	PE_F_DIRTY
	.word	LIBPE_F_DIRTY_OPT_HEADER
	.word	EINVAL
	.word	errno
	.size	pe_flag_opt_header, .-pe_flag_opt_header
	.comm	errno,4,4
	.comm	PE_F_DIRTY,4,4
	.comm	PE_C_SET,4,4
	.comm	PE_C_CLR,4,4
	.comm	LIBPE_F_DIRTY_OPT_HEADER,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
