	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_init_timestamp         ## -- Begin function mlx4_en_init_timestamp
	.p2align	4, 0x90
_mlx4_en_init_timestamp:                ## @mlx4_en_init_timestamp
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_mlx4_en_read_clock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$48, %edi
	callq	_CLOCKSOURCE_MASK
	movl	%eax, 8(%rbx)
	movl	$14, 4(%rbx)
	imull	$1000, (%r15), %edi             ## imm = 0x3E8
	movl	$14, %esi
	callq	_clocksource_khz2mult
	movl	%eax, 12(%rbx)
	leaq	20(%rbx), %r15
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_timecounter_init
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_cyclecounter_cyc2ns
	movl	%eax, %r14d
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_do_div
	movl	%r14d, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx4_en_read_clock,4,2         ## @mlx4_en_read_clock
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_init_timestamp         ; -- Begin function mlx4_en_init_timestamp
	.p2align	2
_mlx4_en_init_timestamp:                ; @mlx4_en_init_timestamp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x21, [x0, #24]
	add	x20, x0, #4
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _mlx4_en_read_clock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mlx4_en_read_clock@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	w0, #48
	bl	_CLOCKSOURCE_MASK
	mov	w8, #14
	stp	w8, w0, [x19, #4]
	ldr	w8, [x21]
	mov	w9, #1000
	mul	w0, w8, w9
	mov	w1, #14
	bl	_clocksource_khz2mult
	str	w0, [x19, #12]
	add	x21, x19, #20
	bl	_ktime_get_real
	bl	_ktime_to_ns
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_timecounter_init
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_cyclecounter_cyc2ns
	mov	x20, x0
Lloh3:
	adrp	x8, _NSEC_PER_SEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
Lloh6:
	adrp	x9, _HZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w1, w8, w9
	bl	_do_div
	str	w20, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx4_en_read_clock,4,2         ; @mlx4_en_read_clock
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
