	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __arm_spe_pmu_next_off
___arm_spe_pmu_next_off:                ## @__arm_spe_pmu_next_off
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_spe_pmu
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_perf_get_aux
	movq	%rax, %r12
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	imulq	(%r12), %r14
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_PERF_IDX2OFF
	movq	%rax, %r15
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_roundup
	subq	%r15, %rax
	movq	8(%rbx), %rsi
	movq	%rax, %rdi
	callq	_min
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_arm_spe_pmu_pad_buf
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_PERF_IDX2OFF
	movq	%rax, %r15
LBB0_2:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.3:
	addq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_PERF_IDX2OFF
	movq	%rax, %r13
	movq	16(%rbx), %rdi
	movq	%r12, %rsi
	callq	_PERF_IDX2OFF
	movq	%rax, %r12
	cmpq	%r13, %r15
	jae	LBB0_5
## %bb.4:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_round_down
	movq	%rax, %r14
LBB0_5:
	movq	8(%rbx), %rax
	addq	(%rbx), %rax
	cmpq	%rax, 16(%rbx)
	jae	LBB0_8
## %bb.6:
	cmpq	%r12, %r15
	ja	LBB0_8
## %bb.7:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_round_up
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_min
	movq	%rax, %r14
LBB0_8:
	cmpq	%r15, %r14
	ja	LBB0_11
## %bb.9:
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_arm_spe_pmu_pad_buf
LBB0_10:
	movq	_PERF_AUX_FLAG_TRUNCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_perf_aux_output_flag
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_perf_aux_output_end
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PERF_AUX_FLAG_TRUNCATED,4,2    ## @PERF_AUX_FLAG_TRUNCATED
	.no_dead_strip	___arm_spe_pmu_next_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __arm_spe_pmu_next_off
___arm_spe_pmu_next_off:                ; @__arm_spe_pmu_next_off
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	bl	_to_spe_pmu
	mov	x22, x0
	mov	x0, x19
	bl	_perf_get_aux
	mov	x21, x0
	ldr	x25, [x0]
Lloh0:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x26, [x24]
	ldr	x0, [x19]
	mov	x1, x21
	bl	_PERF_IDX2OFF
	mov	x20, x0
	ldr	w1, [x22]
	bl	_IS_ALIGNED
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_3
	b	LBB0_11
LBB0_2:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_roundup
	sub	x0, x0, x20
	ldr	x1, [x19, #8]
	bl	_min
	mov	x1, x0
	mov	x0, x19
	bl	_arm_spe_pmu_pad_buf
	ldr	x0, [x19]
	mov	x1, x21
	bl	_PERF_IDX2OFF
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
LBB0_3:
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	x1, x21
	bl	_PERF_IDX2OFF
	mov	x23, x0
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_PERF_IDX2OFF
	mov	x22, x0
	cmp	x20, x23
	b.hs	LBB0_5
; %bb.4:
	ldr	x1, [x24]
	mov	x0, x23
	bl	_round_down
	mov	x21, x0
	b	LBB0_6
LBB0_5:
	mul	x21, x26, x25
LBB0_6:
	ldp	x10, x8, [x19, #8]
	ldr	x9, [x19]
	add	x9, x10, x9
	cmp	x8, x9
	b.hs	LBB0_9
; %bb.7:
	cmp	x20, x22
	b.hi	LBB0_9
; %bb.8:
	ldr	x1, [x24]
	mov	x0, x22
	bl	_round_up
	mov	x1, x0
	mov	x0, x21
	bl	_min
	mov	x21, x0
LBB0_9:
	cmp	x21, x20
	b.hi	LBB0_12
; %bb.10:
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_arm_spe_pmu_pad_buf
LBB0_11:
Lloh2:
	adrp	x8, _PERF_AUX_FLAG_TRUNCATED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PERF_AUX_FLAG_TRUNCATED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_perf_aux_output_flag
	mov	x0, x19
	mov	w1, #0
	bl	_perf_aux_output_end
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PERF_AUX_FLAG_TRUNCATED,4,2    ; @PERF_AUX_FLAG_TRUNCATED
	.no_dead_strip	___arm_spe_pmu_next_off
.subsections_via_symbols
