	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_tx_skb_frags
_ionic_tx_skb_frags:                    ## @ionic_tx_skb_frags
	.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	$24, %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, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movl	(%rsi), %r15d
	movq	%rsi, %rdi
	callq	_skb_headlen
	movl	%eax, %r14d
	movq	(%r12), %r12
	movq	%rbx, %rdi
	callq	_q_to_tx_stats
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_shinfo
	subl	%r14d, %r15d
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rbx
	addq	$4, %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movl	%eax, (%r12)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_ionic_tx_map_frag
	movl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_cpu_to_le64
	movl	%eax, -4(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	addq	$4, %rbx
	addq	$8, %r12
	subl	%r13d, %r15d
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ionic_tx_skb_frags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_tx_skb_frags
_ionic_tx_skb_frags:                    ; @ionic_tx_skb_frags
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w21, [x1]
	mov	x0, x1
	bl	_skb_headlen
	sub	w25, w21, w0
	ldr	x23, [x20]
	mov	x0, x19
	bl	_q_to_tx_stats
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x21, [x8]
	mov	x0, x22
	bl	_skb_shinfo
	cbz	w25, LBB0_4
; %bb.1:
	ldr	x22, [x0]
	add	x26, x23, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_skb_frag_size
	mov	x23, x0
	bl	_cpu_to_le16
	str	w0, [x26]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	x3, x23
	bl	_ionic_tx_map_frag
	mov	x24, x0
	mov	x0, x21
	mov	x1, x24
	bl	_dma_mapping_error
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_cpu_to_le64
	stur	w0, [x26, #-4]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	add	x22, x22, #4
	add	x26, x26, #8
	subs	w25, w25, w23
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ionic_tx_skb_frags
.subsections_via_symbols
