	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extent_addr_randomize
_extent_addr_randomize:                 ## @extent_addr_randomize
	.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
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_extent_base_get
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_extent_addr_get
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
	movq	_PAGE@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jbe	LBB0_5
## %bb.1:
	movq	_LG_PAGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	movq	%r14, %rdi
	callq	_CACHELINE_CEILING
	movl	%eax, %edi
	callq	_lg_floor
	subl	%eax, %r15d
	movq	%r12, %rdi
	callq	_tsdn_null
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	-56(%rbp), %rax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	callq	_tsdn_tsd
	movq	%rax, %rdi
	callq	_tsd_prng_statep_get
	movq	%rax, %rdi
LBB0_4:
	movl	%r15d, %esi
	callq	_prng_lg_range_u64
	movq	%rax, -56(%rbp)
	movl	(%rbx), %ecx
	subl	%r15d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rax
	addq	(%r13), %rax
	movq	%rax, (%r13)
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ALIGNMENT_ADDR2BASE
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_assert
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE,8,3                       ## @PAGE
	.comm	_LG_PAGE,4,2                    ## @LG_PAGE
	.no_dead_strip	_extent_addr_randomize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extent_addr_randomize
_extent_addr_randomize:                 ; @extent_addr_randomize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x22, x0
	mov	x0, x2
	bl	_extent_base_get
	mov	x21, x0
	mov	x0, x19
	bl	_extent_addr_get
	cmp	x21, x0
	cset	w0, eq
	bl	_assert
Lloh0:
	adrp	x8, _PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ls	LBB0_5
; %bb.1:
Lloh3:
	adrp	x23, _LG_PAGE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _LG_PAGE@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x20
	bl	_CACHELINE_CEILING
	bl	_lg_floor
	sub	w21, w21, w0
	mov	x0, x22
	bl	_tsdn_null
	cbz	w0, LBB0_3
; %bb.2:
	add	x8, sp, #8
	str	w8, [sp, #4]
	add	x0, sp, #4
	b	LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_tsdn_tsd
	bl	_tsd_prng_statep_get
LBB0_4:
	mov	x1, x21
	bl	_prng_lg_range_u64
	str	x0, [sp, #8]
	ldr	w8, [x23]
	sub	w8, w8, w21
	lsl	x8, x0, x8
	ldr	x9, [x19]
	add	x0, x8, x9
	str	x0, [x19]
	mov	x1, x20
	bl	_ALIGNMENT_ADDR2BASE
	ldr	x8, [x19]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE,8,3                       ; @PAGE
	.comm	_LG_PAGE,4,2                    ; @LG_PAGE
	.no_dead_strip	_extent_addr_randomize
.subsections_via_symbols
