	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_flag_buffer                 ## -- Begin function pe_flag_buffer
	.p2align	4, 0x90
_pe_flag_buffer:                        ## @pe_flag_buffer
	.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:
	cmpq	%rsi, %rax
	jne	LBB0_7
## %bb.6:
	orl	(%rdi), %edx
	jmp	LBB0_8
LBB0_7:
	notl	%edx
	andl	(%rdi), %edx
LBB0_8:
	movl	%edx, (%rdi)
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_flag_buffer                 ; -- Begin function pe_flag_buffer
	.p2align	2
_pe_flag_buffer:                        ; @pe_flag_buffer
	.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:
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x0]
	orr	w9, w8, w2
	b	LBB0_7
LBB0_6:
	ldr	w8, [x0]
	bic	w9, w8, w2
LBB0_7:
	str	w9, [x0]
	mov	w0, #0
	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
	.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
.subsections_via_symbols
