	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_enqueue_skb_tso            ## -- Begin function efx_enqueue_skb_tso
	.p2align	4, 0x90
_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r14
	movl	(%rsi), %edi
	callq	_prefetch
	movq	%r12, %rdi
	callq	_efx_tso_check_protocol
	movl	%eax, -60(%rbp)
	movq	8(%r13), %rax
	xorl	%edi, %edi
	cmpq	16(%r13), %rax
	setne	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	leaq	-104(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_tso_start
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_tx_err@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%r14), %edx
	addl	%ebx, %eax
	jne	LBB0_18
## %bb.14:
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_19
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_18:
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_netif_err
LBB0_19:
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.20:
	movq	(%r14), %rdi
	movl	-64(%rbp), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_page
LBB0_21:
	movq	-88(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_23
## %bb.22:
	movq	(%r14), %rdi
	movl	-80(%rbp), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
LBB0_23:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%edi, %edi
	cmpq	$0, -104(%rbp)
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_skb_shinfo
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	setle	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdx
	leaq	-104(%rbp), %rdi
	movq	%r14, %rsi
	callq	_tso_get_fragment
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_4:
	movl	$-1, %r15d
LBB0_7:
	leaq	-104(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_tso_start_new_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_prefetch_ptr
	leaq	-104(%rbp), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_tso_fill_packet_with_fragment
	cmpq	$0, -104(%rbp)
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	%r15d
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpl	(%rax), %r15d
	jge	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_skb_shinfo
	movslq	%r15d, %rdx
	addq	8(%rax), %rdx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_tso_get_fragment
	testl	%eax, %eax
	jne	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, -96(%rbp)
	jne	LBB0_9
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_tso_start_new_packet
	testl	%eax, %eax
	je	LBB0_9
LBB0_12:
	movl	%eax, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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"

L_.str.1:                               ## @.str.1
	.asciz	"TSO failed, rc = %d\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_enqueue_skb_tso            ; -- Begin function efx_enqueue_skb_tso
	.p2align	2
_efx_enqueue_skb_tso:                   ; @efx_enqueue_skb_tso
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #24]
	ldr	w0, [x1]
	bl	_prefetch
	mov	x0, x21
	bl	_efx_tso_check_protocol
	str	w0, [sp, #60]
	ldp	x8, x9, [x22, #8]
	cmp	x8, x9
	cset	w0, ne
	bl	_EFX_WARN_ON_ONCE_PARANOID
	add	x0, sp, #16
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_tso_start
	mov	x23, x0
	cbz	w0, LBB0_11
LBB0_2:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _tx_err@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tx_err@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w2, [x19, #8]
	cmn	w23, w8
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_5:
	str	x23, [sp]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_netif_err
	ldr	x2, [sp, #48]
Lloh13:
	adrp	x20, _DMA_TO_DEVICE@GOTPAGE
Lloh14:
	ldr	x20, [x20, _DMA_TO_DEVICE@GOTPAGEOFF]
	cbz	x2, LBB0_8
; %bb.7:
	ldr	x0, [x19]
	ldr	w1, [sp, #56]
	ldr	w3, [x20]
	bl	_dma_unmap_page
LBB0_8:
	ldr	x2, [sp, #32]
	cbz	x2, LBB0_10
; %bb.9:
	ldr	x0, [x19]
	ldr	w1, [sp, #40]
	ldr	w3, [x20]
	bl	_dma_unmap_single
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	ldr	x8, [sp, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	cset	w0, lt
	bl	_EFX_WARN_ON_ONCE_PARANOID
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x2, [x0, #8]
	add	x0, sp, #16
	mov	x1, x19
	bl	_tso_get_fragment
	mov	x23, x0
	cbnz	w0, LBB0_2
; %bb.13:
	mov	w24, #0
	b	LBB0_15
LBB0_14:
	mov	w24, #-1
LBB0_15:
	add	x2, sp, #16
	mov	x0, x22
	mov	x1, x21
	bl	_tso_start_new_packet
	mov	x23, x0
	cbnz	w0, LBB0_2
; %bb.16:
	mov	x0, x22
	bl	_prefetch_ptr
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #16
	mov	x0, x22
	mov	x1, x21
	bl	_tso_fill_packet_with_fragment
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w24, w24, #1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w24, w8
	b.ge	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x2, x8, w24, sxtw
	add	x0, sp, #16
	mov	x1, x19
	bl	_tso_get_fragment
	cbnz	w0, LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x2, sp, #16
	mov	x0, x22
	mov	x1, x21
	bl	_tso_start_new_packet
	cbz	w0, LBB0_17
LBB0_22:
	mov	x23, x0
	b	LBB0_2
LBB0_23:
	mov	w23, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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"

l_.str.1:                               ; @.str.1
	.asciz	"TSO failed, rc = %d\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
.subsections_via_symbols
