	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_get_tx_tstamp
_xgbe_get_tx_tstamp:                    ## @xgbe_get_tx_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
	movq	%rdi, %r15
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_MAC_TXSNR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_XGMAC_IOREAD
	movl	%eax, %r14d
	movq	_MAC_TXSSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_XGMAC_IOREAD
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_MAC_TXSSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_XGMAC_IOREAD
	movl	%eax, %ebx
	movq	_MAC_TXSNR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_XGMAC_IOREAD
	movl	%eax, %r14d
LBB0_3:
	movq	_MAC_TXSNR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXTSSTSMIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_XGMAC_GET_BITS
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rcx
	imull	(%rcx), %ebx
	addl	%r14d, %ebx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_TXSNR,4,2                  ## @MAC_TXSNR
	.comm	_MAC_TXSSR,4,2                  ## @MAC_TXSSR
	.comm	_TXTSSTSMIS,4,2                 ## @TXTSSTSMIS
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.no_dead_strip	_xgbe_get_tx_tstamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_get_tx_tstamp
_xgbe_get_tx_tstamp:                    ; @xgbe_get_tx_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	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x22, _MAC_TXSNR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC_TXSNR@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_XGMAC_IOREAD
	mov	x19, x0
Lloh2:
	adrp	x8, _MAC_TXSSR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAC_TXSSR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_XGMAC_IOREAD
	mov	x20, x0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _MAC_TXSSR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAC_TXSSR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_XGMAC_IOREAD
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x21
	bl	_XGMAC_IOREAD
	mov	x19, x0
LBB0_3:
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _TXTSSTSMIS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TXTSSTSMIS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGMAC_GET_BITS
Lloh11:
	adrp	x8, _NSEC_PER_SEC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	madd	w8, w8, w20, w19
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_TXSNR,4,2                  ; @MAC_TXSNR
	.comm	_MAC_TXSSR,4,2                  ; @MAC_TXSSR
	.comm	_TXTSSTSMIS,4,2                 ; @TXTSSTSMIS
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.no_dead_strip	_xgbe_get_tx_tstamp
.subsections_via_symbols
