	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_read_cycle_timer          ## -- Begin function hpsb_read_cycle_timer
	.p2align	4, 0x90
_hpsb_read_cycle_timer:                 ## @hpsb_read_cycle_timer
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_preempt_disable
	callq	_local_irq_save
	movq	(%rbx), %rax
	movq	_GET_CYCLE_COUNTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_do_gettimeofday
	callq	_local_irq_restore
	xorl	%eax, %eax
	callq	_preempt_enable
	movl	%ebx, (%r15)
	imulq	$1000000, -48(%rbp), %rax       ## imm = 0xF4240
	addq	-40(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_6:
	callq	_local_irq_restore
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_preempt_enable
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GET_CYCLE_COUNTER,4,2          ## @GET_CYCLE_COUNTER
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_read_cycle_timer          ; -- Begin function hpsb_read_cycle_timer
	.p2align	2
_hpsb_read_cycle_timer:                 ; @hpsb_read_cycle_timer
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x2
	cbz	x2, LBB0_5
; %bb.3:
	mov	x21, x0
	bl	_preempt_disable
	bl	_local_irq_save
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _GET_CYCLE_COUNTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GET_CYCLE_COUNTER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x21
	mov	w2, #0
	blr	x8
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
	mov	x0, sp
	bl	_do_gettimeofday
	bl	_local_irq_restore
	bl	_preempt_enable
	mov	w0, #0
	str	w21, [x20]
	mov	w8, #16960
	movk	w8, #15, lsl #16
	ldp	x9, x10, [sp]
	madd	x8, x9, x8, x10
	str	x8, [x19]
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	bl	_local_irq_restore
	bl	_preempt_enable
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GET_CYCLE_COUNTER,4,2          ; @GET_CYCLE_COUNTER
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
