	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bootaddr_rwx
_bootaddr_rwx:                          ## @bootaddr_rwx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_btext@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_KERNBASE@GOTPCREL(%rip), %r14
	subq	(%r14), %rdi
	callq	_trunc_2mpage
	cmpq	%rbx, %rax
	jg	LBB0_2
## %bb.1:
	movq	__end@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	(%r14), %rdi
	callq	_trunc_2mpage
	cmpq	%rbx, %rax
	jle	LBB0_2
## %bb.3:
	movq	_brwsection@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	(%r14), %rdi
	callq	_trunc_2mpage
	cmpq	%rbx, %rax
	jle	LBB0_2
## %bb.4:
	movq	_etext@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	(%r14), %rdi
	callq	_round_2mpage
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rbx, %rcx
	jg	LBB0_6
## %bb.5:
	movq	_pg_nx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_2:
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	movq	_pg_nx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_btext,8,3                      ## @btext
	.comm	_KERNBASE,8,3                   ## @KERNBASE
	.comm	__end,8,3                       ## @_end
	.comm	_X86_PG_RW,4,2                  ## @X86_PG_RW
	.comm	_pg_nx,4,2                      ## @pg_nx
	.comm	_brwsection,8,3                 ## @brwsection
	.comm	_etext,8,3                      ## @etext
	.no_dead_strip	_bootaddr_rwx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bootaddr_rwx
_bootaddr_rwx:                          ; @bootaddr_rwx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _btext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _btext@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _KERNBASE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _KERNBASE@GOTPAGEOFF]
	ldr	x9, [x20]
	sub	x0, x8, x9
	bl	_trunc_2mpage
	cmp	x0, x19
	b.gt	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, __end@GOTPAGE
Lloh6:
	ldr	x8, [x8, __end@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x20]
	sub	x0, x8, x9
	bl	_trunc_2mpage
	cmp	x0, x19
	b.le	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _brwsection@GOTPAGE
Lloh9:
	ldr	x8, [x8, _brwsection@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x20]
	sub	x0, x8, x9
	bl	_trunc_2mpage
	cmp	x0, x19
	b.le	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _etext@GOTPAGE
Lloh12:
	ldr	x8, [x8, _etext@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x20]
	sub	x0, x8, x9
	bl	_round_2mpage
Lloh14:
	adrp	x8, _pg_nx@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pg_nx@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	x0, x19
	csel	w0, wzr, w8, gt
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _X86_PG_RW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _X86_PG_RW@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _pg_nx@GOTPAGE
Lloh21:
	ldr	x9, [x9, _pg_nx@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w9, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_btext,8,3                      ; @btext
	.comm	_KERNBASE,8,3                   ; @KERNBASE
	.comm	__end,8,3                       ; @_end
	.comm	_X86_PG_RW,4,2                  ; @X86_PG_RW
	.comm	_pg_nx,4,2                      ; @pg_nx
	.comm	_brwsection,8,3                 ; @brwsection
	.comm	_etext,8,3                      ; @etext
	.no_dead_strip	_bootaddr_rwx
.subsections_via_symbols
