	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_cntl                        ## -- Begin function pe_cntl
	.p2align	4, 0x90
_pe_cntl:                               ## @pe_cntl
	.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_1
## %bb.3:
	cmpl	$128, %esi
	je	LBB0_7
## %bb.4:
	cmpl	$129, %esi
	jne	LBB0_1
## %bb.5:
	movq	_LIBPE_F_FD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rdi)
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_7:
	movl	(%rdi), %eax
	movq	_PE_C_WRITE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	callq	_libpe_load_all_sections
	testl	%eax, %eax
	js	LBB0_10
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_LIBPE_F_FD_DONE,4,2            ## @LIBPE_F_FD_DONE
	.comm	_PE_C_WRITE,4,2                 ## @PE_C_WRITE
	.comm	_EACCES,4,2                     ## @EACCES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_cntl                        ; -- Begin function pe_cntl
	.p2align	2
_pe_cntl:                               ; @pe_cntl
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w1, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _LIBPE_F_FD_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBPE_F_FD_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
	b	LBB0_10
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
LBB0_6:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x0]
Lloh8:
	adrp	x9, _PE_C_WRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PE_C_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _EACCES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	bl	_libpe_load_all_sections
	tbnz	w0, #31, LBB0_6
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_LIBPE_F_FD_DONE,4,2            ; @LIBPE_F_FD_DONE
	.comm	_PE_C_WRITE,4,2                 ; @PE_C_WRITE
	.comm	_EACCES,4,2                     ; @EACCES
.subsections_via_symbols
