	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_sgl
_write_sgl:                             ## @write_sgl
	.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
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %ebx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_skb_shinfo
	movq	%rax, %r15
	movl	(%rax), %r14d
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	incl	%eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%ebx, %r13d
	callq	_skb_headlen
	movl	%eax, %ebx
	subl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_htonl
	movq	%rax, 24(%r12)
	movl	%r13d, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	callq	_cpu_to_be64
	incl	%r14d
	jmp	LBB0_3
LBB0_2:
	movq	8(%r15), %rdi
	callq	_skb_frag_size
	movl	%eax, %edi
	callq	_htonl
	movq	%rax, 24(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_cpu_to_be64
LBB0_3:
	movq	%r15, %r13
	movq	%rax, 16(%r12)
	movq	_ULP_TX_SC_DSGL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ULPTX_CMD_V
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_ULPTX_NSGE_V
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_htonl
	movq	%rax, 8(%r12)
	xorl	%edi, %edi
	decl	%r14d
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_19
## %bb.4:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%rax), %r15
	ja	LBB0_6
## %bb.5:
	movq	(%r12), %rbx
LBB0_6:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	(%r13), %eax
	xorl	%r13d, %r13d
	cmpl	%eax, %r14d
	setne	%cl
	cmpl	$2, %r14d
	jb	LBB0_7
## %bb.8:
	xorl	%r13d, %r13d
	cmpl	%eax, %r14d
	setne	%r13b
	leaq	(,%r13,4), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rdi
	addq	%r15, %rdi
	callq	_skb_frag_size
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	leal	1(%r13), %r12d
	leaq	(,%r12,4), %rdi
	addq	8(%r14), %rdi
	callq	_skb_frag_size
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14,%r12,8), %rdi
	callq	_cpu_to_be64
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	addq	$2, %r13
	movl	%r13d, %eax
	movq	(%r14,%rax,8), %rdi
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	callq	_cpu_to_be64
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	addl	$-2, %r14d
	addq	$16, %rbx
	addq	$8, %r15
	cmpl	$1, %r14d
	ja	LBB0_9
## %bb.10:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_7:
	movb	%cl, %r13b
LBB0_11:
	testl	%r14d, %r14d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	movl	%r13d, %edi
	shlq	$2, %rdi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rdi
	callq	_skb_frag_size
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	callq	_cpu_to_be32
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	incl	%r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rdi
	callq	_cpu_to_be64
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
LBB0_13:
	xorl	%edi, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	8(%rbx), %r15
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	8(%rbx), %rbx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	subq	(%r14), %rbx
	shrq	$4, %rbx
	movl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	(%r14), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_16:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	subq	8(%r14), %r15
	shrq	$4, %r15
	movq	(%r14), %rdi
	movl	%ebx, %eax
	shlq	$4, %rax
	addq	%rax, %r12
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r15d, %r15d
	addq	(%r14), %r15
LBB0_17:
	testb	$8, %r15b
	je	LBB0_19
## %bb.18:
	movq	%r15, %rax
	movq	$0, (%r15)
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_ULP_TX_SC_DSGL,4,2             ## @ULP_TX_SC_DSGL
	.no_dead_strip	_write_sgl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_sgl
_write_sgl:                             ; @write_sgl
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x23, x5
	mov	x26, x4
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x27, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_skb_shinfo
	mov	x24, x0
	ldr	w25, [x0]
Lloh3:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w8, w8, #1
	lsl	x8, x8, #4
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x27
	bl	_skb_headlen
	sub	w27, w0, w26
	mov	x0, x27
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x27
	bl	_htonl
	str	x0, [x21, #24]
	ldr	x8, [x23]
	add	x0, x8, w26, uxtw
	bl	_cpu_to_be64
	add	w25, w25, #1
	b	LBB0_3
LBB0_2:
	ldr	x0, [x24, #8]
	bl	_skb_frag_size
	bl	_htonl
	str	x0, [x21, #24]
	ldr	x0, [x23, #8]
	bl	_cpu_to_be64
LBB0_3:
	str	x0, [x21, #16]
Lloh8:
	adrp	x8, _ULP_TX_SC_DSGL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ULP_TX_SC_DSGL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_ULPTX_CMD_V
	mov	x26, x0
	mov	x0, x25
	bl	_ULPTX_NSGE_V
	orr	w0, w0, w26
	bl	_htonl
	str	x0, [x21, #8]
	subs	w26, w25, #1
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_18
; %bb.4:
	ldr	x8, [x20, #8]
	mov	x25, x22
	cmp	x19, x8
	b.hi	LBB0_6
; %bb.5:
	ldr	x25, [x21]
LBB0_6:
	ldr	w8, [x24]
	cmp	w26, w8
	cset	w27, ne
	cmp	w26, #2
	b.lo	LBB0_10
; %bb.7:
	stur	x20, [x29, #-96]                ; 8-byte Folded Spill
	cmp	w26, w8
	cset	w27, ne
	lsl	x28, x27, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	add	x0, x8, x28
	bl	_skb_frag_size
	bl	_cpu_to_be32
	ldr	x8, [x25, #8]
	str	x0, [x8]
	ldr	x8, [x24, #8]
	add	w20, w27, #1
	add	x0, x8, w20, uxtw #2
	bl	_skb_frag_size
	bl	_cpu_to_be32
	ldr	x8, [x25, #8]
	str	x0, [x8, #8]
	ldr	x0, [x23, w20, uxtw #3]
	bl	_cpu_to_be64
	ldr	x8, [x25]
	str	x0, [x8]
	add	x27, x27, #2
	ldr	x0, [x23, w27, uxtw #3]
	bl	_cpu_to_be64
	ldr	x8, [x25], #16
	str	x0, [x8, #8]
	sub	w26, w26, #2
	add	x28, x28, #8
	cmp	w26, #1
	b.hi	LBB0_8
; %bb.9:
	ldur	x20, [x29, #-96]                ; 8-byte Folded Reload
LBB0_10:
	cbz	w26, LBB0_12
; %bb.11:
	ldr	x8, [x24, #8]
	add	x0, x8, w27, uxtw #2
	bl	_skb_frag_size
	bl	_cpu_to_be32
	ldr	x8, [x25, #8]
	str	x0, [x8]
	mov	w0, #0
	bl	_cpu_to_be32
	ldr	x8, [x25, #8]
	str	x0, [x8, #8]
	add	w8, w27, #1
	ldr	x0, [x23, w8, uxtw #3]
	bl	_cpu_to_be64
	ldr	x8, [x25]
	str	x0, [x8]
LBB0_12:
	ldr	x8, [x20, #8]
	cmp	x19, x8
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.13:
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	sub	x8, x8, x9
	lsr	x23, x8, #4
	mov	x0, x23
	bl	_likely
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x0, [x21]
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
LBB0_15:
	ldp	x0, x8, [x20]
	sub	x8, x19, x8
	lsr	x19, x8, #4
	add	x1, x22, w23, uxtw #4
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x20]
	add	x19, x8, w19, uxtw
LBB0_16:
	tbz	w19, #3, LBB0_18
; %bb.17:
	str	xzr, [x19]
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_ULP_TX_SC_DSGL,4,2             ; @ULP_TX_SC_DSGL
	.no_dead_strip	_write_sgl
.subsections_via_symbols
