	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reloc_textrel_prot
_reloc_textrel_prot:                    ## @reloc_textrel_prot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	(%rdi), %r14
	xorl	%eax, %eax
	cmpq	$32, %r14
	jb	LBB0_10
## %bb.1:
	shrq	$5, %r14
	movq	16(%rdi), %r15
	addq	$24, %r15
	movq	_PT_LOAD@GOTPCREL(%rip), %r12
	movq	_PF_W@GOTPCREL(%rip), %rcx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rsi
	orl	%eax, %edx
	movq	%r13, %rdi
	callq	_mprotect
	cmpl	$-1, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_PF_W@GOTPCREL(%rip), %rcx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %r15
	decq	%r14
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-24(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %eax
	testl	%eax, -16(%r15)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rbx
	movq	-8(%r15), %rdi
	callq	_trunc_page
	movslq	%eax, %r13
	addq	%rbx, %r13
	movq	(%r15), %rdi
	addq	-8(%r15), %rdi
	callq	_round_page
	movl	%eax, %ebx
	movq	-8(%r15), %rdi
	callq	_trunc_page
	subl	%eax, %ebx
	movl	-16(%r15), %edi
	callq	_convert_prot
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	jmp	LBB0_6
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	4(%rdi), %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rtld_strerror
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	__rtld_error
	movl	$-1, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_LOAD,8,3                    ## @PT_LOAD
	.comm	_PF_W,4,2                       ## @PF_W
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Cannot write-%sable text segment: %s"

L_.str.1:                               ## @.str.1
	.asciz	"en"

L_.str.2:                               ## @.str.2
	.asciz	"dis"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_reloc_textrel_prot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reloc_textrel_prot
_reloc_textrel_prot:                    ; @reloc_textrel_prot
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldrsw	x8, [x0]
	cmp	w8, #32
	b.hs	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x1
	mov	x20, x0
	lsr	x23, x8, #5
	ldr	x8, [x0, #16]
	add	x24, x8, #16
Lloh0:
	adrp	x25, _PT_LOAD@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PT_LOAD@GOTPAGEOFF]
Lloh2:
	adrp	x26, _PF_W@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PF_W@GOTPAGEOFF]
Lloh4:
	adrp	x27, _PROT_WRITE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _PROT_WRITE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #32
	subs	x23, x23, #1
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x24, #-16]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w8, [x24, #-8]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x20, #8]
	ldr	x0, [x24]
	bl	_trunc_page
	add	x21, x21, w0, sxtw
	ldp	x8, x9, [x24]
	add	x0, x9, x8
	bl	_round_page
	mov	x22, x0
	ldr	x0, [x24]
	bl	_trunc_page
	sub	w8, w22, w0
	sxtw	x22, w8
	ldur	w0, [x24, #-8]
	bl	_convert_prot
	ldr	w8, [x27]
	cmp	w19, #0
	csel	w8, wzr, w8, eq
	orr	w2, w8, w0
	mov	x0, x21
	mov	x1, x22
	bl	_mprotect
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.8:
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	ldr	w20, [x20, #4]
	cmp	w19, #0
	csel	x19, x9, x8, eq
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_rtld_strerror
	mov	x3, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	__rtld_error
	mov	w0, #-1
	b	LBB0_2
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_LOAD,8,3                    ; @PT_LOAD
	.comm	_PF_W,4,2                       ; @PF_W
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Cannot write-%sable text segment: %s"

l_.str.1:                               ; @.str.1
	.asciz	"en"

l_.str.2:                               ; @.str.2
	.asciz	"dis"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_reloc_textrel_prot
.subsections_via_symbols
