	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gem_ptp_txstamp                ## -- Begin function gem_ptp_txstamp
	.p2align	4, 0x90
_gem_ptp_txstamp:                       ## @gem_ptp_txstamp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	28(%rdi), %edi
	callq	_READ_ONCE
	movq	%rax, %r13
	movq	(%rbx), %r12
	movq	_DMA_TXVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_GEM_BFEXT
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_PTP_TS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_CIRC_SPACE
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_SKBTX_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_skb_shinfo
	orl	%r13d, (%rax)
	movl	24(%rbx), %edi
	movq	%r14, %rsi
	callq	_macb_ptp_desc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r13
	movq	%r12, %r14
	shlq	$4, %r14
	movq	%r15, 8(%r13,%r14)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %eax
	movl	%eax, 4(%r13,%r14)
	movl	(%rcx), %eax
	movl	%eax, (%r13,%r14)
	incq	%r12
	movq	_PTP_TS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	decq	%rsi
	andq	%r12, %rsi
	movq	%rbx, %rdi
	callq	_smp_store_release
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TXVALID,4,2                ## @DMA_TXVALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PTP_TS_BUFFER_SIZE,4,2         ## @PTP_TS_BUFFER_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SKBTX_IN_PROGRESS,4,2          ## @SKBTX_IN_PROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gem_ptp_txstamp                ; -- Begin function gem_ptp_txstamp
	.p2align	2
_gem_ptp_txstamp:                       ; @gem_ptp_txstamp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #28]
	bl	_READ_ONCE
	mov	x23, x0
	ldr	x21, [x19]
Lloh0:
	adrp	x8, _DMA_TXVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TXVALID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_GEM_BFEXT
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x24, _PTP_TS_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PTP_TS_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x23
	bl	_CIRC_SPACE
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _SKBTX_IN_PROGRESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SKBTX_IN_PROGRESS@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	orr	w8, w8, w23
	str	w8, [x0]
	ldr	w0, [x19, #24]
	mov	x1, x22
	bl	_macb_ptp_desc
	mov	x22, x0
	ldr	x8, [x19, #16]
	add	x23, x8, x21, lsl #4
	str	x20, [x23, #8]
	bl	_dma_rmb
	ldr	d0, [x22]
	str	d0, [x23]
	add	x8, x21, #1
	ldrsw	x9, [x24]
	sub	x9, x9, #1
	and	x1, x8, x9
	mov	x0, x19
	bl	_smp_store_release
	add	x0, x19, #8
	bl	_schedule_work
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TXVALID,4,2                ; @DMA_TXVALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PTP_TS_BUFFER_SIZE,4,2         ; @PTP_TS_BUFFER_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SKBTX_IN_PROGRESS,4,2          ; @SKBTX_IN_PROGRESS
.subsections_via_symbols
