	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_ptp_tx_ts_complete
_lan743x_ptp_tx_ts_complete:            ## @lan743x_ptp_tx_ts_complete
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	44(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_skb_tstamp_tx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	movq	48(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	24(%r12), %rax
	movl	$0, (%rax,%rbx,4)
	movq	16(%r12), %rax
	movl	$0, (%rax,%rbx,4)
	movq	32(%r12), %rax
	movl	$0, (%rax,%rbx,4)
	incq	%rbx
	cmpq	%rbx, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	48(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rax,%rbx,4), %r13d
	movl	(%rcx,%rbx,4), %r15d
	movq	32(%r12), %rax
	movl	(%rax,%rbx,4), %r14d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r15d, %edi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_ktime_set
	movl	%eax, -48(%rbp)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PTP_TX_MSG_HEADER_MSG_TYPE_@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_PTP_TX_MSG_HEADER_MSG_TYPE_SYNC_@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	sarl	%cl, 8(%r12)
	movq	_LAN743X_PTP_NUMBER_OF_TX_TIMESTAMPS@GOTPCREL(%rip), %r8
	cmpl	(%r8), %ecx
	jge	LBB0_9
## %bb.7:
	movslq	%ecx, %r9
	leaq	(,%r9,8), %rdx
	leaq	(,%r9,4), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rbx
	leaq	(%rbx,%rdx), %rax
	movq	(%rax,%rdi,8), %rax
	movq	%rax, (%rbx,%rdi,8)
	movq	24(%r12), %rax
	leaq	(%rax,%rsi), %rbx
	movl	(%rbx,%rdi,4), %ebx
	movl	%ebx, (%rax,%rdi,4)
	movq	16(%r12), %rax
	leaq	(%rax,%rsi), %rbx
	movl	(%rbx,%rdi,4), %ebx
	movl	%ebx, (%rax,%rdi,4)
	movq	32(%r12), %rax
	leaq	(%rax,%rsi), %rbx
	movl	(%rbx,%rdi,4), %ebx
	movl	%ebx, (%rax,%rdi,4)
	movq	48(%r12), %rax
	addq	%rdx, %rax
	movq	$0, (%rax,%rdi,8)
	movq	24(%r12), %rax
	addq	%rsi, %rax
	movl	$0, (%rax,%rdi,4)
	movq	16(%r12), %rax
	addq	%rsi, %rax
	movl	$0, (%rax,%rdi,4)
	movq	32(%r12), %rax
	addq	%rsi, %rax
	movl	$0, (%rax,%rdi,4)
	movslq	(%r8), %rax
	leaq	(%r9,%rdi), %rbx
	incq	%rbx
	incq	%rdi
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	subl	%ecx, (%r12)
	subl	%ecx, 4(%r12)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	subl	%ecx, 40(%r12)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTP_TX_MSG_HEADER_MSG_TYPE_,4,2 ## @PTP_TX_MSG_HEADER_MSG_TYPE_
	.comm	_PTP_TX_MSG_HEADER_MSG_TYPE_SYNC_,4,2 ## @PTP_TX_MSG_HEADER_MSG_TYPE_SYNC_
	.comm	_LAN743X_PTP_NUMBER_OF_TX_TIMESTAMPS,4,2 ## @LAN743X_PTP_NUMBER_OF_TX_TIMESTAMPS
	.no_dead_strip	_lan743x_ptp_tx_ts_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_ptp_tx_ts_complete
_lan743x_ptp_tx_ts_complete:            ; @lan743x_ptp_tx_ts_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	add	x19, x0, #44
	mov	x0, x19
	bl	_spin_lock_bh
	ldp	w8, w9, [x20]
	cmp	w8, w9
	csel	w25, w8, w9, lt
	cmp	w25, #1
	b.lt	LBB0_10
; %bb.1:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x21, #0
Lloh0:
	adrp	x27, _PTP_TX_MSG_HEADER_MSG_TYPE_SYNC_@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PTP_TX_MSG_HEADER_MSG_TYPE_SYNC_@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_skb_tstamp_tx
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_dev_kfree_skb
	ldr	x8, [x20, #48]
	str	xzr, [x8, x21, lsl #3]
	ldp	x9, x8, [x20, #16]
	str	wzr, [x8, x28]
	str	wzr, [x9, x28]
	ldr	x8, [x20, #32]
	str	wzr, [x8, x28]
	add	x21, x21, #1
	cmp	x25, x21
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w19, [x20, #8]
	mov	x0, x21
	bl	_BIT
	ldr	x8, [x20, #48]
	ldr	x22, [x8, x21, lsl #3]
	lsl	x28, x21, #2
	ldp	x8, x9, [x20, #16]
	ldr	w23, [x8, x28]
	and	w26, w0, w19
	ldr	w24, [x9, x28]
	ldr	x8, [x20, #32]
	ldr	w19, [x8, x28]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x24
	mov	x1, x23
	bl	_ktime_set
	str	w0, [sp, #8]
	cbz	w26, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x8, _PTP_TX_MSG_HEADER_MSG_TYPE_@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTP_TX_MSG_HEADER_MSG_TYPE_@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w19
	ldr	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_2
	b	LBB0_3
LBB0_6:
	ldr	w8, [x20, #8]
	asr	w8, w8, w25
	str	w8, [x20, #8]
Lloh5:
	adrp	x8, _LAN743X_PTP_NUMBER_OF_TX_TIMESTAMPS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LAN743X_PTP_NUMBER_OF_TX_TIMESTAMPS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w25, w9
	b.ge	LBB0_9
; %bb.7:
	mov	x9, #0
	mov	x12, x25
	sxtw	x10, w12
	sbfiz	x11, x12, #3, #32
	sbfiz	x12, x12, #2, #32
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x20, #48]
	lsl	x14, x9, #3
	add	x15, x13, x11
	ldr	x15, [x15, x14]
	str	x15, [x13, x14]
	ldp	x15, x13, [x20, #16]
	add	x16, x13, x12
	lsl	x17, x9, #2
	ldr	w16, [x16, x17]
	str	w16, [x13, x17]
	add	x13, x15, x12
	ldr	w13, [x13, x17]
	str	w13, [x15, x17]
	ldr	x13, [x20, #32]
	ldr	x15, [x20, #48]
	add	x15, x15, x11
	str	xzr, [x15, x14]
	add	x14, x13, x12
	ldr	w14, [x14, x17]
	str	w14, [x13, x17]
	ldp	x14, x13, [x20, #16]
	add	x13, x13, x12
	str	wzr, [x13, x17]
	add	x13, x14, x12
	ldr	x14, [x20, #32]
	add	x14, x14, x12
	str	wzr, [x13, x17]
	str	wzr, [x14, x17]
	ldrsw	x13, [x8]
	add	x9, x9, #1
	add	x14, x10, x9
	cmp	x14, x13
	b.lt	LBB0_8
LBB0_9:
	ldr	d0, [x20]
	dup.2s	v1, w25
	sub.2s	v0, v0, v1
	str	d0, [x20]
	ldr	x19, [sp]                       ; 8-byte Folded Reload
LBB0_10:
	ldr	w8, [x20, #40]
	sub	w8, w8, w25
	str	w8, [x20, #40]
	mov	x0, x19
	bl	_spin_unlock_bh
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PTP_TX_MSG_HEADER_MSG_TYPE_,4,2 ; @PTP_TX_MSG_HEADER_MSG_TYPE_
	.comm	_PTP_TX_MSG_HEADER_MSG_TYPE_SYNC_,4,2 ; @PTP_TX_MSG_HEADER_MSG_TYPE_SYNC_
	.comm	_LAN743X_PTP_NUMBER_OF_TX_TIMESTAMPS,4,2 ; @LAN743X_PTP_NUMBER_OF_TX_TIMESTAMPS
	.no_dead_strip	_lan743x_ptp_tx_ts_complete
.subsections_via_symbols
