	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp_px_rand
_mp_px_rand:                            ## @mp_px_rand
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r12d
	leal	7(%r12), %eax
	leal	14(%r12), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	movl	%ebx, %edi
	callq	_px_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_pg_strong_random
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	andl	$7, %r12d
	je	LBB0_4
## %bb.3:
	movl	(%r15), %eax
	movb	$8, %cl
	subb	%r12b, %cl
	sarl	%cl, %eax
	decb	%r12b
	btsl	%r12d, %eax
	jmp	LBB0_5
LBB0_1:
	movq	%r15, %rdi
	callq	_px_free
	movq	_PXE_NO_RANDOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	movl	$128, %eax
	orl	(%r15), %eax
LBB0_5:
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_mp_int_read_unsigned
	movq	%r15, %rdi
	callq	_px_free
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_NO_RANDOM,4,2              ## @PXE_NO_RANDOM
	.no_dead_strip	_mp_px_rand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp_px_rand
_mp_px_rand:                            ; @mp_px_rand
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x22, x0
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w21, w8, #3
	mov	x0, x21
	bl	_px_alloc
	mov	x20, x0
	mov	x1, x21
	bl	_pg_strong_random
	cbz	w0, LBB0_3
; %bb.1:
	and	w8, w22, #0x7
	cbz	w8, LBB0_4
; %bb.2:
	mov	w9, #8
	sub	w9, w9, w8
	ldr	w10, [x20]
	asr	w9, w10, w9
	sub	w8, w8, #1
	mov	w10, #1
	lsl	w8, w10, w8
	orr	w8, w9, w8
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_px_free
Lloh0:
	adrp	x8, _PXE_NO_RANDOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXE_NO_RANDOM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x20]
	orr	w8, w8, #0x80
LBB0_5:
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mp_int_read_unsigned
	mov	x0, x20
	bl	_px_free
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_NO_RANDOM,4,2              ; @PXE_NO_RANDOM
	.no_dead_strip	_mp_px_rand
.subsections_via_symbols
