	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Math_random
_Math_random:                           ## @Math_random
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r9, %r14
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	-24(%rbp), %rdi
	movl	$8, %esi
	callq	_RtlGenRandom
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_S_OK@GOTPCREL(%rip), %rbx
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	cvtsi2sdq	-24(%rbp), %xmm0
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	cvtsi2sdq	(%rax), %xmm1
	divsd	%xmm1, %xmm0
	callq	_jsval_number
	movl	%eax, (%r14)
	jmp	LBB0_4
LBB0_1:
	movq	_E_UNEXPECTED@GOTPCREL(%rip), %rbx
LBB0_4:
	movl	(%rbx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_E_UNEXPECTED,4,2               ## @E_UNEXPECTED
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_Math_random
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Math_random
_Math_random:                           ; @Math_random
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x5
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x0, sp, #8
	mov	w1, #8
	bl	_RtlGenRandom
	cbz	w0, LBB0_4
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
	ldr	d0, [sp, #8]
	scvtf	d0, d0
Lloh2:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	d1, [x8]
	scvtf	d1, d1
	fdiv	d0, d0, d1
	bl	_jsval_number
	str	w0, [x19]
LBB0_3:
Lloh5:
	adrp	x8, _S_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _E_UNEXPECTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_UNEXPECTED@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_E_UNEXPECTED,4,2               ; @E_UNEXPECTED
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_Math_random
.subsections_via_symbols
