	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpts_random_cpu
_hpts_random_cpu:                       ## @hpts_random_cpu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movl	(%rdi), %eax
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.3:
	movl	4(%rdi), %eax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_arc4random
	movzwl	%ax, %eax
	movq	_mp_ncpus@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.no_dead_strip	_hpts_random_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpts_random_cpu
_hpts_random_cpu:                       ; @hpts_random_cpu
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x0]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x0, #4]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_arc4random
	and	w8, w0, #0xffff
Lloh0:
	adrp	x9, _mp_ncpus@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mp_ncpus@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w0, w10, w9, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.no_dead_strip	_hpts_random_cpu
.subsections_via_symbols
