	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmap_rnd
_mmap_rnd:                              ## @mmap_rnd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PF_RANDOMIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_mmap_is_ia32
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_get_random_int
                                        ## kill: def $eax killed $eax def $rax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-256, %ecx
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	leal	268435455(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-268435456, %ecx               ## imm = 0xF0000000
LBB0_5:
	subl	%ecx, %eax
	cltq
LBB0_6:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_PF_RANDOMIZE,4,2               ## @PF_RANDOMIZE
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.no_dead_strip	_mmap_rnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmap_rnd
_mmap_rnd:                              ; @mmap_rnd
	.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
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PF_RANDOMIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PF_RANDOMIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_mmap_is_ia32
	mov	x19, x0
	bl	_get_random_int
	negs	w8, w0
	and	w8, w8, #0xfffffff
	and	w9, w0, #0xfffffff
	csneg	w8, w9, w8, mi
	sxtw	x8, w8
	negs	w9, w0
	and	w9, w9, #0xff
	and	w10, w0, #0xff
	csneg	w9, w10, w9, mi
	sxtw	x9, w9
	cmp	x19, #0
	csel	x8, x8, x9, eq
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
Lloh6:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x0, x8, x9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_PF_RANDOMIZE,4,2               ; @PF_RANDOMIZE
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.no_dead_strip	_mmap_rnd
.subsections_via_symbols
