	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cur_queue_map
_set_cur_queue_map:                     ## @set_cur_queue_map
	.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	%rdi, %rbx
	movl	(%rdi), %ecx
	movq	_F_QUEUE_MAP_CPU@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_smp_processor_id
	jmp	LBB0_10
LBB0_2:
	movq	16(%rbx), %rax
	movq	24(%rbx), %rdx
	cmpq	%rdx, %rax
	jle	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	jmp	LBB0_10
LBB0_4:
	movq	_F_QUEUE_MAP_RND@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	callq	_random32
	movslq	%eax, %rcx
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rdi
	subq	%rsi, %rdi
	incq	%rdi
	movq	%rcx, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.6:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	movq	%rdx, %rax
	jmp	LBB0_9
LBB0_7:
	movq	8(%rbx), %rcx
	leaq	1(%rcx), %rsi
	cmpq	%rdx, %rcx
	cmovlq	%rsi, %rax
	jmp	LBB0_10
LBB0_8:
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %eax
LBB0_9:
	addq	%rsi, %rax
LBB0_10:
	movq	32(%rbx), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_12
## %bb.11:
	cqto
	idivq	%rcx
	jmp	LBB0_13
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_13:
	movq	%rdx, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_QUEUE_MAP_CPU,4,2            ## @F_QUEUE_MAP_CPU
	.comm	_F_QUEUE_MAP_RND,4,2            ## @F_QUEUE_MAP_RND
	.no_dead_strip	_set_cur_queue_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cur_queue_map
_set_cur_queue_map:                     ; @set_cur_queue_map
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _F_QUEUE_MAP_CPU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _F_QUEUE_MAP_CPU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_smp_processor_id
	b	LBB0_7
LBB0_2:
	ldp	x9, x10, [x19, #16]
	cmp	x9, x10
	b.le	LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x11, _F_QUEUE_MAP_RND@GOTPAGE
Lloh4:
	ldr	x11, [x11, _F_QUEUE_MAP_RND@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_6
; %bb.5:
	bl	_random32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldp	x10, x9, [x19, #16]
	sub	x9, x9, x10
	add	x9, x9, #1
	sdiv	x11, x8, x9
	msub	x8, x11, x9, x8
	add	x0, x8, x10
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
	cmp	x8, x10
	csinc	x0, x9, x8, ge
LBB0_7:
	ldr	x8, [x19, #32]
	ldrsw	x8, [x8]
	sdiv	x9, x0, x8
	msub	x8, x9, x8, x0
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_F_QUEUE_MAP_CPU,4,2            ; @F_QUEUE_MAP_CPU
	.comm	_F_QUEUE_MAP_RND,4,2            ; @F_QUEUE_MAP_RND
	.no_dead_strip	_set_cur_queue_map
.subsections_via_symbols
