	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_enqueue_skb_tso
_efx_enqueue_skb_tso:                   ## @efx_enqueue_skb_tso
	.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	%rsi, %r13
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movq	%rsi, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rax
	movq	_EFX_TSO_MAX_SEGS@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ebx
	subl	(%r12), %ebx
	movq	%r13, %rdi
	callq	_skb_shinfo
	imull	8(%rax), %ebx
	movq	(%r13), %rsi
	subq	%rbx, %rsi
	movq	%r13, %rdi
	callq	___pskb_trim
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_20
LBB0_3:
	movq	%r13, %rdi
	callq	_efx_tso_check_protocol
	movl	%eax, -44(%rbp)
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	8(%r15), %rax
	setne	%dil
	callq	_EFX_BUG_ON_PARANOID
	leaq	-88(%rbp), %rdi
	movq	%r13, %rsi
	callq	_tso_start
	movq	%r13, %rdi
	callq	_skb_headlen
	cmpq	-88(%rbp), %rax
	jne	LBB0_6
## %bb.4:
	movq	%r13, %rdi
	callq	_skb_shinfo
	xorl	%edi, %edi
	cmpl	$0, 16(%rax)
	setle	%dil
	callq	_EFX_BUG_ON_PARANOID
	movq	%r13, %rdi
	callq	_skb_shinfo
	movq	24(%rax), %rdx
	leaq	-88(%rbp), %rdi
	movq	%r14, %rsi
	callq	_tso_get_fragment
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	leaq	-88(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_tso_get_head_fragment
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movl	$-1, %ebx
LBB0_8:
	leaq	-88(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_tso_start_new_packet
	testq	%rax, %rax
	js	LBB0_15
## %bb.9:
	leaq	-88(%rbp), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_tso_fill_packet_with_fragment
	cmpq	$0, -80(%rbp)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	movq	%r13, %rdi
	callq	_skb_shinfo
	cmpl	16(%rax), %ebx
	jge	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	callq	_skb_shinfo
	movslq	%ebx, %rdx
	addq	24(%rax), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_tso_get_fragment
	testl	%eax, %eax
	jne	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, -72(%rbp)
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_tso_start_new_packet
	testq	%rax, %rax
	jns	LBB0_10
LBB0_15:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.16:
	movq	_EFX_TX_BUF_MAP_SINGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rdi
	movl	-48(%rbp), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, -64(%rbp)
	je	LBB0_18
## %bb.17:
	callq	_dma_unmap_single
	jmp	LBB0_19
LBB0_18:
	callq	_dma_unmap_page
LBB0_19:
	movq	%r15, %rdi
	callq	_efx_enqueue_unwind
LBB0_20:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%r15, %rdi
	callq	_efx_nic_push_buffers
	movq	%r15, %rdi
	callq	_efx_tx_maybe_stop_queue
	incl	16(%r15)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_TSO_MAX_SEGS,8,3           ## @EFX_TSO_MAX_SEGS
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory for TSO headers, or DMA mapping error\n"

	.comm	_EFX_TX_BUF_MAP_SINGLE,4,2      ## @EFX_TX_BUF_MAP_SINGLE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_efx_enqueue_skb_tso
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_enqueue_skb_tso
_efx_enqueue_skb_tso:                   ; @efx_enqueue_skb_tso
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
	ldr	x20, [x0, #24]
	mov	x0, x1
	bl	_skb_shinfo
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _EFX_TSO_MAX_SEGS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EFX_TSO_MAX_SEGS@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	ldr	w9, [x22]
	sub	w22, w8, w9
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0, #8]
	mul	w8, w8, w22
	ldr	x9, [x21]
	sub	x1, x9, x8
	mov	x0, x21
	bl	___pskb_trim
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_dev_kfree_skb_any
	b	LBB0_18
LBB0_3:
	mov	x0, x21
	bl	_efx_tso_check_protocol
	str	w0, [sp, #44]
	ldp	x8, x9, [x19]
	cmp	x8, x9
	cset	w0, ne
	bl	_EFX_BUG_ON_PARANOID
	mov	x0, sp
	mov	x1, x21
	bl	_tso_start
	mov	x0, x21
	bl	_skb_headlen
	ldr	x8, [sp]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0, #16]
	cmp	w8, #1
	cset	w0, lt
	bl	_EFX_BUG_ON_PARANOID
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x2, [x0, #24]
	mov	x0, sp
	mov	x1, x20
	bl	_tso_get_fragment
	cbnz	w0, LBB0_13
; %bb.5:
	mov	w22, #0
	b	LBB0_12
LBB0_6:
	mov	x0, sp
	mov	x1, x20
	mov	x2, x21
	bl	_tso_get_head_fragment
	cbnz	w0, LBB0_13
; %bb.7:
	mov	w22, #-1
	b	LBB0_12
LBB0_8:                                 ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_tso_fill_packet_with_fragment
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w22, w22, #1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0, #16]
	cmp	w22, w8
	b.ge	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #24]
	add	x2, x8, w22, sxtw
	mov	x0, sp
	mov	x1, x20
	bl	_tso_get_fragment
	cbnz	w0, LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_8
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_tso_start_new_packet
	tbz	x0, #63, LBB0_8
LBB0_13:
Lloh2:
	adrp	x8, _tx_err@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_err
	mov	x0, x21
	bl	_dev_kfree_skb_any
	ldr	x2, [sp, #32]
	cbz	x2, LBB0_17
; %bb.14:
Lloh7:
	adrp	x8, _EFX_TX_BUF_MAP_SINGLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFX_TX_BUF_MAP_SINGLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x0, [x20]
	ldr	w9, [sp, #24]
	ldr	w1, [sp, #40]
Lloh10:
	adrp	x10, _DMA_TO_DEVICE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x10]
	tst	w8, w9
	b.eq	LBB0_16
; %bb.15:
	bl	_dma_unmap_single
	b	LBB0_17
LBB0_16:
	bl	_dma_unmap_page
LBB0_17:
	mov	x0, x19
	bl	_efx_enqueue_unwind
LBB0_18:
Lloh13:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
	mov	x0, x19
	bl	_efx_nic_push_buffers
	mov	x0, x19
	bl	_efx_tx_maybe_stop_queue
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_TSO_MAX_SEGS,8,3           ; @EFX_TSO_MAX_SEGS
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory for TSO headers, or DMA mapping error\n"

	.comm	_EFX_TX_BUF_MAP_SINGLE,4,2      ; @EFX_TX_BUF_MAP_SINGLE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_efx_enqueue_skb_tso
.subsections_via_symbols
