	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_tx_wrbs
_make_tx_wrbs:                          ## @make_tx_wrbs
	.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
	movl	%r9d, -84(%rbp)                 ## 4-byte Spill
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movq	%rsi, %rdi
	callq	_queue_head_node
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_queue_head_inc
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r13d
	movq	(%r12), %rax
	xorl	%ebx, %ebx
	movl	$0, %r15d
	cmpq	8(%r12), %rax
	jle	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_skb_headlen
	movl	%eax, %ebx
	movl	16(%r12), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dma_map_single
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_queue_head_node
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r14d
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_wrb_fill
	movq	%r13, %rdi
	movl	%r14d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	$8, %esi
	callq	_be_dws_cpu_to_le
	movq	%r12, %rdi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	callq	_queue_head_inc
	movl	$1, %r15d
LBB0_4:
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.5:
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %r13
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	addq	%r15, %r13
	movq	%r13, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_queue_head_node
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_skb_frag_size
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_wrb_fill
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_be_dws_cpu_to_le
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_queue_head_inc
	movq	%r13, %rdi
	callq	_skb_frag_size
	addl	%eax, %ebx
	incq	%r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	movq	-112(%rbp), %r15                ## 8-byte Reload
	addq	$4, %r15
	cmpq	%rax, %r14
	jl	LBB0_6
LBB0_8:
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_queue_head_node
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_wrb_fill
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_be_dws_cpu_to_le
	movq	%r14, %rdi
	callq	_queue_head_inc
LBB0_10:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	-84(%rbp), %r9d                 ## 4-byte Reload
	callq	_wrb_fill_hdr
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_be_dws_cpu_to_le
LBB0_16:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.13:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_queue_head_node
	movq	%rax, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_unmap_tx_frag
	movl	(%r15), %r14d
	movq	%r12, %rdi
	callq	_queue_head_inc
	movl	%ebx, %r15d
	movl	$0, %ebx
	subl	%r14d, %r15d
	je	LBB0_16
## %bb.14:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_queue_head_node
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_unmap_tx_frag
	movl	(%r14), %r14d
	movq	%r12, %rdi
	callq	_queue_head_inc
	subl	%r14d, %r15d
	jne	LBB0_15
	jmp	LBB0_16
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_make_tx_wrbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_tx_wrbs
_make_tx_wrbs:                          ; @make_tx_wrbs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x5
	str	w4, [sp, #44]                   ; 4-byte Folded Spill
	mov	x25, x3
	mov	x24, x2
	mov	x19, x1
	mov	x27, x0
	ldr	x21, [x0]
	mov	x0, x1
	bl	_queue_head_node
	mov	x26, x0
	mov	x0, x19
	bl	_queue_head_inc
	ldr	w28, [x19]
	ldp	x8, x9, [x24]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.1:
	mov	x0, x24
	bl	_skb_headlen
	mov	x20, x0
	ldr	w1, [x24, #16]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_dma_map_single
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_dma_mapping_error
	cbz	x0, LBB0_4
; %bb.2:
	mov	w20, #0
	str	w28, [x19]
	b	LBB0_17
LBB0_3:
	mov	w20, #0
	mov	w22, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_queue_head_node
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	mov	x28, x0
	mov	x1, x22
	mov	x2, x20
	bl	_wrb_fill
	mov	x0, x28
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	mov	w1, #8
	bl	_be_dws_cpu_to_le
	mov	x0, x19
	bl	_queue_head_inc
	mov	w22, #1
LBB0_5:
	stp	x27, x26, [sp, #16]             ; 16-byte Folded Spill
	stp	w25, w23, [sp, #36]             ; 8-byte Folded Spill
	mov	x0, x24
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	stp	w22, w28, [sp, #8]              ; 8-byte Folded Spill
	mov	x27, #0
	mov	x25, #0
Lloh3:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x28, x8, x27
	mov	x0, x28
	bl	_skb_frag_size
	mov	x3, x0
	ldr	w4, [x26]
	mov	x0, x21
	mov	x1, x28
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_dma_mapping_error
	cbnz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_queue_head_node
	mov	x23, x0
	mov	x0, x28
	bl	_skb_frag_size
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_wrb_fill
	mov	x0, x23
	mov	w1, #8
	bl	_be_dws_cpu_to_le
	mov	x0, x19
	bl	_queue_head_inc
	mov	x0, x28
	bl	_skb_frag_size
	add	w20, w0, w20
	add	x25, x25, #1
	mov	x0, x24
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x27, x27, #4
	cmp	x25, x8
	b.lt	LBB0_7
LBB0_9:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_queue_head_node
	mov	x21, x0
	mov	w1, #0
	mov	w2, #0
	bl	_wrb_fill
	mov	x0, x21
	mov	w1, #8
	bl	_be_dws_cpu_to_le
	mov	x0, x19
	bl	_queue_head_inc
LBB0_11:
	ldp	x0, x19, [sp, #16]              ; 16-byte Folded Reload
	mov	x1, x19
	mov	x2, x24
	ldp	w3, w5, [sp, #36]               ; 8-byte Folded Reload
	mov	x4, x20
	bl	_wrb_fill_hdr
	mov	x0, x19
	mov	w1, #8
	bl	_be_dws_cpu_to_le
	b	LBB0_17
LBB0_12:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x19]
	cbz	w20, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_queue_head_node
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_unmap_tx_frag
	ldr	w8, [x22]
	sub	w22, w20, w8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_queue_head_inc
	cbz	w22, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_queue_head_node
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_unmap_tx_frag
	ldr	w8, [x20]
	sub	w22, w22, w8
	b	LBB0_14
LBB0_16:
	mov	w20, #0
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_make_tx_wrbs
.subsections_via_symbols
