	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spu_next_offset
_spu_next_offset:                       ## @spu_next_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_HV_NCS_QTYPE_MAU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_CWQ_ENTRY_SIZE@GOTPCREL(%rip), %rax
	cmoveq	_MAU_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movq	_CWQ_NUM_ENTRIES@GOTPCREL(%rip), %rcx
	cmoveq	_MAU_NUM_ENTRIES@GOTPCREL(%rip), %rcx
	movq	(%rax), %rdx
	addq	%rdx, %rsi
	imulq	(%rcx), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rsi
	cmovneq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HV_NCS_QTYPE_MAU,8,3           ## @HV_NCS_QTYPE_MAU
	.comm	_MAU_ENTRY_SIZE,8,3             ## @MAU_ENTRY_SIZE
	.comm	_MAU_NUM_ENTRIES,8,3            ## @MAU_NUM_ENTRIES
	.comm	_CWQ_ENTRY_SIZE,8,3             ## @CWQ_ENTRY_SIZE
	.comm	_CWQ_NUM_ENTRIES,8,3            ## @CWQ_NUM_ENTRIES
	.no_dead_strip	_spu_next_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spu_next_offset
_spu_next_offset:                       ; @spu_next_offset
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HV_NCS_QTYPE_MAU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HV_NCS_QTYPE_MAU@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MAU_ENTRY_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAU_ENTRY_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x11, _CWQ_ENTRY_SIZE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _CWQ_ENTRY_SIZE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _MAU_NUM_ENTRIES@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAU_NUM_ENTRIES@GOTPAGEOFF]
Lloh9:
	adrp	x10, _CWQ_NUM_ENTRIES@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CWQ_NUM_ENTRIES@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	mul	x9, x9, x8
	add	x8, x8, x1
	cmp	x8, x9
	csel	x0, xzr, x8, eq
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_NCS_QTYPE_MAU,8,3           ; @HV_NCS_QTYPE_MAU
	.comm	_MAU_ENTRY_SIZE,8,3             ; @MAU_ENTRY_SIZE
	.comm	_MAU_NUM_ENTRIES,8,3            ; @MAU_NUM_ENTRIES
	.comm	_CWQ_ENTRY_SIZE,8,3             ; @CWQ_ENTRY_SIZE
	.comm	_CWQ_NUM_ENTRIES,8,3            ; @CWQ_NUM_ENTRIES
	.no_dead_strip	_spu_next_offset
.subsections_via_symbols
