	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_flag_data_dir               ## -- Begin function pe_flag_data_dir
	.p2align	4, 0x90
_pe_flag_data_dir:                      ## @pe_flag_data_dir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	_PE_C_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	je	LBB0_3
## %bb.2:
	movq	_PE_C_CLR@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jne	LBB0_4
LBB0_3:
	movq	_PE_F_DIRTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%edx, %ecx
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_LIBPE_F_DIRTY_OPT_HEADER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rsi, %rax
	jne	LBB0_7
## %bb.6:
	orl	%ecx, (%rdi)
	jmp	LBB0_8
LBB0_7:
	notl	%ecx
	andl	%ecx, (%rdi)
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PE_C_SET,8,3                   ## @PE_C_SET
	.comm	_PE_C_CLR,8,3                   ## @PE_C_CLR
	.comm	_PE_F_DIRTY,4,2                 ## @PE_F_DIRTY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_LIBPE_F_DIRTY_OPT_HEADER,4,2   ## @LIBPE_F_DIRTY_OPT_HEADER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_flag_data_dir               ; -- Begin function pe_flag_data_dir
	.p2align	2
_pe_flag_data_dir:                      ; @pe_flag_data_dir
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _PE_C_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PE_C_SET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _PE_C_CLR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PE_C_CLR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _PE_F_DIRTY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PE_F_DIRTY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bics	wzr, w2, w9
	b.eq	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	mov	w0, #-1
	ret
LBB0_4:
Lloh15:
	adrp	x9, _LIBPE_F_DIRTY_OPT_HEADER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LIBPE_F_DIRTY_OPT_HEADER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #0
	ldr	w10, [x0]
	orr	w9, w10, w9
	b	LBB0_7
LBB0_6:
	mov	w8, #0
	ldr	w10, [x0]
	bic	w9, w10, w9
LBB0_7:
	str	w9, [x0]
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PE_C_SET,8,3                   ; @PE_C_SET
	.comm	_PE_C_CLR,8,3                   ; @PE_C_CLR
	.comm	_PE_F_DIRTY,4,2                 ; @PE_F_DIRTY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_LIBPE_F_DIRTY_OPT_HEADER,4,2   ; @LIBPE_F_DIRTY_OPT_HEADER
.subsections_via_symbols
