	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_set_ctxtcnt                ## -- Begin function qib_set_ctxtcnt
	.p2align	4, 0x90
_qib_set_ctxtcnt:                       ## @qib_set_ctxtcnt
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_qib_cfgctxts@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.3:
	movq	16(%rbx), %rax
	cmpq	24(%rbx), %rcx
	jl	LBB0_2
## %bb.4:
	cmpq	%rax, %rcx
	jg	LBB0_2
## %bb.5:
	movq	%rcx, (%rbx)
	movq	%rcx, %rax
	jmp	LBB0_6
LBB0_1:
	movq	8(%rbx), %r14
	xorl	%eax, %eax
	callq	_num_online_cpus
	addq	%r14, %rax
	movq	16(%rbx), %rcx
	cmpq	%rcx, %rax
	cmovgeq	%rcx, %rax
LBB0_2:
	movq	%rax, (%rbx)
LBB0_6:
	xorl	%ecx, %ecx
	subq	8(%rbx), %rax
	cmovgeq	%rax, %rcx
	movq	%rcx, 32(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qib_cfgctxts,8,3               ## @qib_cfgctxts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_set_ctxtcnt                ; -- Begin function qib_set_ctxtcnt
	.p2align	2
_qib_set_ctxtcnt:                       ; @qib_set_ctxtcnt
	.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
Lloh0:
	adrp	x8, _qib_cfgctxts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qib_cfgctxts@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.1:
	ldp	x8, x10, [x19, #16]
	cmp	x9, x10
	b.lt	LBB0_5
; %bb.2:
	cmp	x9, x8
	b.gt	LBB0_5
; %bb.3:
	str	x9, [x19]
	mov	x8, x9
	b	LBB0_6
LBB0_4:
	ldr	x20, [x19, #8]
	bl	_num_online_cpus
	ldr	x8, [x19, #16]
	add	x9, x0, x20
	cmp	x9, x8
	csel	x8, x9, x8, lt
LBB0_5:
	str	x8, [x19]
LBB0_6:
	ldr	x9, [x19, #8]
	subs	x8, x8, x9
	csel	x8, xzr, x8, lt
	str	x8, [x19, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_qib_cfgctxts,8,3               ; @qib_cfgctxts
.subsections_via_symbols
