	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_ptp_tx_ts                 ## -- Begin function qede_ptp_tx_ts
	.p2align	4, 0x90
_qede_ptp_tx_ts:                        ## @qede_ptp_tx_ts
	.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	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_QEDE_FLAGS_PTP_TX_IN_PRORGESS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	4(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_and_set_bit_lock
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_ERR
	jmp	LBB0_3
LBB0_5:
	movq	_QEDE_FLAGS_TX_TIMESTAMPING_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	%rbx, %rdi
	callq	_DP_ERR
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_clear_bit_unlock
LBB0_3:
	incl	(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_SKBTX_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_skb_shinfo
	orl	%ebx, (%rax)
	movq	%r12, %rdi
	callq	_skb_get
	movl	%eax, (%r14)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	addq	$4, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QEDE_FLAGS_PTP_TX_IN_PRORGESS,4,2 ## @QEDE_FLAGS_PTP_TX_IN_PRORGESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timestamping in progress\n"

	.comm	_QEDE_FLAGS_TX_TIMESTAMPING_EN,4,2 ## @QEDE_FLAGS_TX_TIMESTAMPING_EN
L_.str.1:                               ## @.str.1
	.asciz	"Tx timestamping was not enabled, this packet will not be timestamped\n"

L_.str.2:                               ## @.str.2
	.asciz	"The device supports only a single outstanding packet to timestamp, this packet will not be timestamped\n"

	.comm	_SKBTX_IN_PROGRESS,4,2          ## @SKBTX_IN_PROGRESS
	.comm	_jiffies,4,2                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_ptp_tx_ts                 ; -- Begin function qede_ptp_tx_ts
	.p2align	2
_qede_ptp_tx_ts:                        ; @qede_ptp_tx_ts
	.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
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_9
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _QEDE_FLAGS_PTP_TX_IN_PRORGESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QEDE_FLAGS_PTP_TX_IN_PRORGESS@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_and_set_bit_lock
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x8, _QEDE_FLAGS_TX_TIMESTAMPING_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QEDE_FLAGS_TX_TIMESTAMPING_EN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	w0, [x22]
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.6:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_DP_ERR
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit_unlock
LBB0_8:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_9:
	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
LBB0_10:
Lloh11:
	adrp	x8, _SKBTX_IN_PROGRESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SKBTX_IN_PROGRESS@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	orr	w8, w8, w19
	str	w8, [x0]
	mov	x0, x21
	bl	_skb_get
	str	w0, [x22]
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x22, #8]
	add	x0, x22, #4
	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
	b	_schedule_work
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QEDE_FLAGS_PTP_TX_IN_PRORGESS,4,2 ; @QEDE_FLAGS_PTP_TX_IN_PRORGESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timestamping in progress\n"

	.comm	_QEDE_FLAGS_TX_TIMESTAMPING_EN,4,2 ; @QEDE_FLAGS_TX_TIMESTAMPING_EN
l_.str.1:                               ; @.str.1
	.asciz	"Tx timestamping was not enabled, this packet will not be timestamped\n"

l_.str.2:                               ; @.str.2
	.asciz	"The device supports only a single outstanding packet to timestamp, this packet will not be timestamped\n"

	.comm	_SKBTX_IN_PROGRESS,4,2          ; @SKBTX_IN_PROGRESS
	.comm	_jiffies,4,2                    ; @jiffies
.subsections_via_symbols
