	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_config_tstamp
_xgbe_config_tstamp:                    ## @xgbe_config_tstamp
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MAC_TSCR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_TSCTRLSSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	(%r15), %esi
	movq	_TSCFUPDT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	(%r15), %esi
	movq	_TXTSSTSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_XGMAC_IOWRITE
	movl	(%r15), %esi
	movq	_TSENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_XGMAC_GET_BITS
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MAC_SSIR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SSINC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XGBE_TSTAMP_SSINC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_XGMAC_IOWRITE_BITS
	movl	(%rbx), %esi
	movq	_SNSINC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XGBE_TSTAMP_SNSINC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_XGMAC_IOWRITE_BITS
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_xgbe_update_tstamp_addend
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_xgbe_set_tstamp_time
	leaq	4(%r14), %rbx
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_timecounter_init
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_TSCR,4,2                   ## @MAC_TSCR
	.comm	_TSCTRLSSR,4,2                  ## @TSCTRLSSR
	.comm	_TSCFUPDT,4,2                   ## @TSCFUPDT
	.comm	_TXTSSTSM,4,2                   ## @TXTSSTSM
	.comm	_TSENA,4,2                      ## @TSENA
	.comm	_MAC_SSIR,4,2                   ## @MAC_SSIR
	.comm	_SSINC,4,2                      ## @SSINC
	.comm	_XGBE_TSTAMP_SSINC,4,2          ## @XGBE_TSTAMP_SSINC
	.comm	_SNSINC,4,2                     ## @SNSINC
	.comm	_XGBE_TSTAMP_SNSINC,4,2         ## @XGBE_TSTAMP_SNSINC
	.no_dead_strip	_xgbe_config_tstamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_config_tstamp
_xgbe_config_tstamp:                    ; @xgbe_config_tstamp
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MAC_TSCR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAC_TSCR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _TSCTRLSSR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TSCTRLSSR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _TSCFUPDT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TSCFUPDT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _TXTSSTSM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TXTSSTSM@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_XGMAC_IOWRITE
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _TSENA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TSENA@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_XGMAC_GET_BITS
	cbz	w0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x20, _MAC_SSIR@GOTPAGE
Lloh15:
	ldr	x20, [x20, _MAC_SSIR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh16:
	adrp	x8, _SSINC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSINC@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _XGBE_TSTAMP_SSINC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XGBE_TSTAMP_SSINC@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_XGMAC_IOWRITE_BITS
	ldr	w1, [x20]
Lloh22:
	adrp	x8, _SNSINC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SNSINC@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _XGBE_TSTAMP_SNSINC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _XGBE_TSTAMP_SNSINC@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_XGMAC_IOWRITE_BITS
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_xgbe_update_tstamp_addend
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_xgbe_set_tstamp_time
	add	x20, x19, #4
	bl	_ktime_get_real
	bl	_ktime_to_ns
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_timecounter_init
LBB0_2:
	mov	w0, #0
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_TSCR,4,2                   ; @MAC_TSCR
	.comm	_TSCTRLSSR,4,2                  ; @TSCTRLSSR
	.comm	_TSCFUPDT,4,2                   ; @TSCFUPDT
	.comm	_TXTSSTSM,4,2                   ; @TXTSSTSM
	.comm	_TSENA,4,2                      ; @TSENA
	.comm	_MAC_SSIR,4,2                   ; @MAC_SSIR
	.comm	_SSINC,4,2                      ; @SSINC
	.comm	_XGBE_TSTAMP_SSINC,4,2          ; @XGBE_TSTAMP_SSINC
	.comm	_SNSINC,4,2                     ; @SNSINC
	.comm	_XGBE_TSTAMP_SNSINC,4,2         ; @XGBE_TSTAMP_SNSINC
	.no_dead_strip	_xgbe_config_tstamp
.subsections_via_symbols
