	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_get_cycle_timer2
_ioctl_get_cycle_timer2:                ## @ioctl_get_cycle_timer2
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_local_irq_disable
	movq	(%rbx), %rax
	movq	_CSR_CYCLE_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	movl	(%r12), %eax
	cmpl	$130, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_ktime_get_real_ts64
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_4:
	leaq	-48(%rbp), %rdi
	callq	_ktime_get_ts64
	jmp	LBB0_7
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_ktime_get_raw_ts64
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	xorl	%eax, %eax
	callq	_local_irq_enable
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r12)
	movl	-48(%rbp), %eax
	movl	%eax, 8(%r12)
	movl	%r14d, 4(%r12)
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_CYCLE_TIME,4,2             ## @CSR_CYCLE_TIME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ioctl_get_cycle_timer2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_get_cycle_timer2
_ioctl_get_cycle_timer2:                ; @ioctl_get_cycle_timer2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	stp	xzr, xzr, [sp]
	bl	_local_irq_disable
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _CSR_CYCLE_TIME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CSR_CYCLE_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	mov	x0, sp
	bl	_ktime_get_real_ts64
	mov	w21, #0
	b	LBB0_7
LBB0_4:
	mov	x0, sp
	bl	_ktime_get_ts64
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	x0, sp
	bl	_ktime_get_raw_ts64
	mov	w21, #0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	bl	_local_irq_enable
	ldr	d0, [sp]
	str	d0, [x19, #8]
	str	w20, [x19, #4]
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_CYCLE_TIME,4,2             ; @CSR_CYCLE_TIME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ioctl_get_cycle_timer2
.subsections_via_symbols
