	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_packet
_send_packet:                           ## @send_packet
	.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	%rdi, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %rbx
	leaq	24(%rbx), %r12
	movq	%r13, %rdi
	callq	_skb_shinfo
	movl	(%rax), %r15d
	cmpl	$2, 8(%rbx)
	jl	LBB0_2
## %bb.1:
	movb	(%r14), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, 12(%rbx)
LBB0_2:
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r12
	movq	%r12, -48(%rbp)
	movq	%r12, %rdi
	callq	_DMA_BUFFER
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_7
## %bb.3:
	movq	%r13, %rdi
	callq	_skb_headlen
	movl	%eax, (%r14)
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	16(%r13), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	callq	_pci_map_single
	movq	%rax, 16(%r14)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_set_tx_buf
	movl	(%r14), %esi
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_set_tx_len
	leaq	-4(,%r15,4), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %r13
	addq	%r12, %r13
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	callq	_get_tx_pkt
	incl	16(%rbx)
	movq	-48(%rbp), %rdi
	callq	_DMA_BUFFER
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_skb_frag_size
	movl	%eax, (%r14)
	movl	(%rbx), %r15d
	movq	%r13, %rdi
	callq	_skb_frag_address
	movl	(%r14), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_pci_map_single
	movq	%rax, 16(%r14)
	movq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_set_tx_buf
	movq	-48(%rbp), %rdi
	movl	(%r14), %esi
	callq	_set_tx_len
	movq	-48(%rbp), %rdi
	cmpq	%r12, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_release_desc
	addq	$4, %r12
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_6:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, (%rax)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_release_desc
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_8
LBB0_7:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, (%r14)
	movl	(%rbx), %edi
	movl	16(%r13), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edx
	callq	_pci_map_single
	movq	%rax, 16(%r14)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_set_tx_buf
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_set_tx_len
	movl	%r15d, %r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_8:
	addq	$8, %rbx
	movq	8(%r13), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%rax)
LBB0_10:
	movq	%r13, 8(%r14)
	movq	%rbx, %rdi
	callq	_hw_send_pkt
	incl	4(%r15)
	addl	%r12d, (%r15)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.no_dead_strip	_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_packet
_send_packet:                           ; @send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x22, x0
	ldr	x28, [x0, #8]
	mov	x0, x20
	bl	_skb_shinfo
	add	x24, x28, #24
	mov	x26, x28
	ldr	w8, [x26, #8]!
	ldr	w21, [x0]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x22]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x28, #12]
LBB0_2:
	ldr	w22, [x20]
	ldr	x23, [x24]
	str	x23, [sp, #24]
	mov	x0, x23
	bl	_DMA_BUFFER
	mov	x25, x0
	cbz	w21, LBB0_7
; %bb.3:
	str	w22, [sp, #4]                   ; 4-byte Folded Spill
	stp	x26, x19, [sp, #8]              ; 16-byte Folded Spill
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
	str	w0, [x25]
	ldr	w0, [x28]
	ldr	w1, [x20, #16]
Lloh0:
	adrp	x22, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldr	w3, [x22]
	bl	_pci_map_single
	mov	x1, x0
	str	x0, [x25, #16]
	mov	x0, x23
	bl	_set_tx_buf
	ldr	w1, [x25]
	mov	x0, x23
	bl	_set_tx_len
	mov	x19, #0
	lsl	x8, x21, #2
	sub	x21, x8, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x26, x8, x19
	add	x1, sp, #24
	mov	x0, x24
	bl	_get_tx_pkt
	ldr	w8, [x28, #16]
	add	w8, w8, #1
	str	w8, [x28, #16]
	ldr	x0, [sp, #24]
	bl	_DMA_BUFFER
	mov	x25, x0
	mov	x0, x26
	bl	_skb_frag_size
	str	w0, [x25]
	ldr	w27, [x28]
	mov	x0, x26
	bl	_skb_frag_address
	mov	x1, x0
	ldr	w2, [x25]
	ldr	w3, [x22]
	mov	x0, x27
	bl	_pci_map_single
	mov	x1, x0
	str	x0, [x25, #16]
	ldr	x0, [sp, #24]
	bl	_set_tx_buf
	ldr	x0, [sp, #24]
	ldr	w1, [x25]
	bl	_set_tx_len
	ldr	x0, [sp, #24]
	cmp	x21, x19
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_release_desc
	add	x19, x19, #4
	b	LBB0_4
LBB0_6:
	str	x0, [x24]
	mov	x0, x23
	bl	_release_desc
	ldp	x26, x19, [sp, #8]              ; 16-byte Folded Reload
	ldr	w22, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_8
LBB0_7:
	str	w22, [x25]
	ldr	w0, [x28]
	ldr	w1, [x20, #16]
Lloh2:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x2, x22
	bl	_pci_map_single
	mov	x1, x0
	str	x0, [x25, #16]
	mov	x0, x23
	bl	_set_tx_buf
	ldr	w1, [x25]
	mov	x0, x23
	bl	_set_tx_len
LBB0_8:
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [sp, #24]
	movi.2s	v0, #1
	str	d0, [x8]
LBB0_10:
	str	x20, [x25, #8]
	mov	x0, x26
	bl	_hw_send_pkt
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w22
	add.2s	v0, v0, v1
	str	d0, [x19]
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.no_dead_strip	_send_packet
.subsections_via_symbols
