	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_tx_completion
_xgene_enet_tx_completion:              ## @xgene_enet_tx_completion
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_USERINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r12), %edi
	callq	_le64_to_cpu
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_GET_VAL
	movq	24(%rbx), %rcx
	movq	(%rcx,%rax,8), %r15
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %rax
	shlq	$2, %rax
	addq	16(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_ndev_to_dev
	movq	%rax, %rbx
	movq	_DATAADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %edi
	callq	_le64_to_cpu
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_GET_VAL
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %r13
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	%r15, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdi
	addq	%r14, %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %ebx
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	incq	%r12
	movq	%r15, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	movq	%r15, %r12
	movq	_ET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %edi
	callq	_le64_to_cpu
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_GET_BIT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MSS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r14), %edi
	callq	_le64_to_cpu
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_GET_VAL
	movq	%rax, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	8(%rbx), %rax
	decl	(%rax,%r15,4)
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_5:
	movq	_LERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_le64_to_cpu
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_GET_VAL
	xorl	%edi, %edi
	cmpq	$3, %rax
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	incl	4(%rax)
LBB0_7:
	movq	%r12, %rbx
	movq	%r12, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_10
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_10:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USERINFO,4,2                   ## @USERINFO
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.comm	_DATAADDR,4,2                   ## @DATAADDR
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ET,4,2                         ## @ET
	.comm	_MSS,4,2                        ## @MSS
	.comm	_LERR,4,2                       ## @LERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"completion skb is NULL\n"

	.no_dead_strip	_xgene_enet_tx_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_tx_completion
_xgene_enet_tx_completion:              ; @xgene_enet_tx_completion
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_netdev_priv
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _USERINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USERINFO@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x21]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_GET_VAL
	mov	x24, x0
	ldp	x27, x8, [x19, #16]
	ldr	x20, [x8, x0, lsl #3]
Lloh3:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	ldr	w0, [x19]
	bl	_ndev_to_dev
	mov	x23, x0
Lloh6:
	adrp	x8, _DATAADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DATAADDR@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
	ldr	w0, [x21, #8]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x25
	bl	_GET_VAL
	mov	x25, x0
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
Lloh9:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x0, x23
	mov	x1, x25
	bl	_dma_unmap_single
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	mov	x28, #0
	mul	x8, x22, x24
	add	x27, x27, x8, lsl #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x0, x8, x25
	ldr	w24, [x27, x25]
	bl	_skb_frag_size
	mov	x2, x0
	ldr	w3, [x26]
	mov	x0, x23
	mov	x1, x24
	bl	_dma_unmap_page
	add	x28, x28, #1
	mov	x0, x20
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x25, x25, #4
	cmp	x28, x8
	b.lt	LBB0_2
LBB0_3:
Lloh11:
	adrp	x8, _ET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ET@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	ldr	w0, [x21, #4]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x23
	bl	_GET_BIT
	cbz	x0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _MSS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSS@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	ldr	w0, [x21, #4]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x23
	bl	_GET_VAL
	mov	x23, x0
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x22
	bl	_spin_lock
	ldr	x8, [x22, #8]
	lsl	x9, x23, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, #1
	str	w10, [x8, x9]
	mov	x0, x22
	bl	_spin_unlock
LBB0_5:
Lloh17:
	adrp	x8, _LERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LERR@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	ldr	w0, [x21]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_GET_VAL
	cmp	x0, #2
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
LBB0_7:
	mov	x0, x20
	bl	_likely
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_dev_kfree_skb_any
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_10:
	mov	w0, #0
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_USERINFO,4,2                   ; @USERINFO
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.comm	_DATAADDR,4,2                   ; @DATAADDR
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ET,4,2                         ; @ET
	.comm	_MSS,4,2                        ; @MSS
	.comm	_LERR,4,2                       ; @LERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"completion skb is NULL\n"

	.no_dead_strip	_xgene_enet_tx_completion
.subsections_via_symbols
