	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moea_calc_wimg
_moea_calc_wimg:                        ## @moea_calc_wimg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	_VM_MEMATTR_DEFAULT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_6
LBB0_1:
	movq	_PTE_I@GOTPCREL(%rip), %rcx
	movq	_PTE_G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_pregions_sz@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.2:
	movq	_pregions@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	shlq	$4, %r8
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %r8
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi), %rcx
	cmpq	%rdi, %rcx
	jg	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	8(%rdx,%rsi), %rcx
	cmpq	%rdi, %rcx
	jle	LBB0_3
	jmp	LBB0_11
LBB0_6:
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_1
## %bb.7:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_PTE_I@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	movq	_PTE_M@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	popq	%rbp
	retq
LBB0_12:
	movq	_PTE_W@GOTPCREL(%rip), %rcx
	movq	_PTE_M@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_PTE_I@GOTPCREL(%rip), %rcx
	movq	_PTE_G@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_8
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_VM_MEMATTR_DEFAULT,4,2         ## @VM_MEMATTR_DEFAULT
	.comm	_PTE_I,4,2                      ## @PTE_I
	.comm	_PTE_G,4,2                      ## @PTE_G
	.comm	_PTE_M,4,2                      ## @PTE_M
	.comm	_PTE_W,4,2                      ## @PTE_W
	.comm	_pregions_sz,4,2                ## @pregions_sz
	.comm	_pregions,8,3                   ## @pregions
	.no_dead_strip	_moea_calc_wimg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moea_calc_wimg
_moea_calc_wimg:                        ; @moea_calc_wimg
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _VM_MEMATTR_DEFAULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VM_MEMATTR_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_6
LBB0_1:
Lloh3:
	adrp	x9, _PTE_I@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PTE_I@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _PTE_G@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PTE_G@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w0, w10, w9
Lloh9:
	adrp	x9, _pregions_sz@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pregions_sz@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.2:
Lloh12:
	adrp	x10, _pregions@GOTPAGE
Lloh13:
	ldr	x10, [x10, _pregions@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	add	x10, x10, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x8
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x10]
	add	x11, x12, x11
	cmp	x11, x8
	b.le	LBB0_3
	b	LBB0_10
LBB0_6:
	sub	w9, w1, #128
	cmp	w9, #5
	b.hi	LBB0_1
; %bb.7:
Lloh15:
	adrp	x8, lJTI0_0@PAGE
Lloh16:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh17:
	adrp	x8, _PTE_I@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PTE_I@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_9:
	ret
LBB0_10:
Lloh20:
	adrp	x8, _PTE_M@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PTE_M@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ret
LBB0_11:
Lloh23:
	adrp	x8, _PTE_W@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PTE_W@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _PTE_M@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PTE_M@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh28:
	adrp	x8, _PTE_I@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PTE_I@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _PTE_G@GOTPAGE
Lloh32:
	ldr	x9, [x9, _PTE_G@GOTPAGEOFF]
LBB0_13:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
                                        ; -- End function
	.comm	_VM_MEMATTR_DEFAULT,4,2         ; @VM_MEMATTR_DEFAULT
	.comm	_PTE_I,4,2                      ; @PTE_I
	.comm	_PTE_G,4,2                      ; @PTE_G
	.comm	_PTE_M,4,2                      ; @PTE_M
	.comm	_PTE_W,4,2                      ; @PTE_W
	.comm	_pregions_sz,4,2                ; @pregions_sz
	.comm	_pregions,8,3                   ; @pregions
	.no_dead_strip	_moea_calc_wimg
.subsections_via_symbols
