	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8152_tx_agg_fill
_r8152_tx_agg_fill:                     ## @r8152_tx_agg_fill
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	24(%rdi), %rbx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	___skb_queue_head_init
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_skb_queue_splice_init
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	8(%r15), %r13
	xorps	%xmm0, %xmm0
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movups	%xmm0, 16(%r15)
	movq	_agg_buf_sz@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movq	_ETH_ZLEN@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	addq	$4, %rax
	cmpq	%r15, %rax
	jbe	LBB0_2
## %bb.1:
	movq	%r12, %rbx
	jmp	LBB0_15
LBB0_2:
	leaq	28(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	callq	_r8152_csum_workaround
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %rax
	movslq	(%r14), %rcx
	addq	$4, %rcx
	cmpq	%rax, %rcx
	ja	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rbp), %rdi
	callq	___skb_dequeue
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movl	(%rax), %eax
	addl	$4, %eax
	cmpl	%r15d, %eax
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_tx_agg_align
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_skb_transport_offset
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%rax, %r8
	callq	_r8152_tx_csum
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_rtl_tx_vlan_tag
	movq	%r13, %rbx
	addq	$16, %rbx
	movl	(%r12), %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_skb_copy_bits
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r14,4), %rbx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	addq	%r14, 24(%r13)
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rax
	testq	%rax, %rax
	movl	$1, %ecx
	cmoveq	%rcx, %rax
	addq	%rax, 16(%r13)
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	_agg_buf_sz@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_tx_agg_align
	movq	%rax, %rbx
	subq	8(%r13), %rbx
	movq	_DELL_TB_RX_AGG_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	shrq	$2, %rbx
	subl	%ebx, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %r13
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rax
	incl	(%rax)
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_ETH_ZLEN@GOTPCREL(%rip), %r14
	jmp	LBB0_14
LBB0_5:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	___skb_queue_head
LBB0_15:
	leaq	-48(%rbp), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_splice
	movq	%rbx, %rdi
	movq	%r14, %rbx
	callq	_spin_unlock
LBB0_17:
	movq	16(%rbx), %rdi
	callq	_netif_tx_lock
	movq	16(%rbx), %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_queue_len
	cmpq	(%rbx), %rax
	jge	LBB0_20
## %bb.19:
	movq	16(%rbx), %rdi
	callq	_netif_wake_queue
LBB0_20:
	movq	16(%rbx), %rdi
	callq	_netif_tx_unlock
	movl	8(%rbx), %edi
	callq	_usb_autopm_get_interface_async
	testl	%eax, %eax
	js	LBB0_21
## %bb.22:
	movq	%rbx, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r14d
	movl	12(%r15), %r12d
	movl	%r12d, %edi
	movl	$2, %esi
	callq	_usb_sndbulkpipe
	movq	8(%rbx), %rcx
	subq	%rcx, %r13
	shrq	$2, %r13
	movq	_write_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%rbx, (%rsp)
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%r13d, %r8d
	callq	_usb_fill_bulk_urb
	movl	(%rbx), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_24
## %bb.23:
	movl	8(%r15), %edi
	callq	_usb_autopm_put_interface_async
	jmp	LBB0_24
LBB0_21:
	movl	%eax, %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %r13
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_agg_buf_sz,4,2                 ## @agg_buf_sz
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_DELL_TB_RX_AGG_BUG,4,2         ## @DELL_TB_RX_AGG_BUG
	.comm	_write_bulk_callback,8,3        ## @write_bulk_callback
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_r8152_tx_agg_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8152_tx_agg_fill
_r8152_tx_agg_fill:                     ; @r8152_tx_agg_fill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	add	x22, x0, #24
	add	x0, sp, #8
	bl	___skb_queue_head_init
	mov	x0, x22
	bl	_spin_lock
	add	x1, sp, #8
	mov	x0, x22
	bl	_skb_queue_splice_init
	mov	x0, x22
	bl	_spin_unlock
	ldr	x21, [x20, #8]
	stp	xzr, xzr, [x20, #16]
Lloh0:
	adrp	x8, _agg_buf_sz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _agg_buf_sz@GOTPAGEOFF]
Lloh2:
	ldrsw	x27, [x8]
Lloh3:
	adrp	x28, _ETH_ZLEN@GOTPAGE
Lloh4:
	ldr	x28, [x28, _ETH_ZLEN@GOTPAGEOFF]
	ldrsw	x8, [x28]
	add	x8, x8, #4
	cmp	x8, x27
	b.hi	LBB0_12
; %bb.1:
	add	x23, x19, #28
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x24
	bl	_r8152_csum_workaround
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x28]
	add	x8, x8, #4
	cmp	x8, w27, sxtw
	b.hi	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	___skb_dequeue
	cbz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	w8, [x0]
	add	w8, w8, #4
	cmp	w8, w27
	b.hi	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_tx_agg_align
	mov	x21, x0
	mov	x0, x24
	bl	_skb_transport_offset
	mov	x4, x0
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_r8152_tx_csum
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_rtl_tx_vlan_tag
	add	x26, x21, #16
	ldr	w25, [x24]
	mov	x0, x24
	mov	w1, #0
	mov	x2, x26
	mov	x3, x25
	bl	_skb_copy_bits
	tbnz	x0, #63, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x26, x25, lsl #2
	ldr	x8, [x20, #24]
	add	x8, x8, x25
	str	x8, [x20, #24]
	mov	x0, x24
	bl	_skb_shinfo
	ldr	x8, [x0]
	cmp	x8, #0
	csinc	x8, x8, xzr, ne
	ldr	x9, [x20, #16]
	add	x8, x8, x9
	str	x8, [x20, #16]
	mov	x0, x24
	bl	_dev_kfree_skb_any
Lloh5:
	adrp	x8, _agg_buf_sz@GOTPAGE
Lloh6:
	ldr	x8, [x8, _agg_buf_sz@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_tx_agg_align
	mov	x24, x0
	ldr	x26, [x20, #8]
Lloh8:
	adrp	x8, _DELL_TB_RX_AGG_BUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DELL_TB_RX_AGG_BUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x24, x26
	lsr	x8, x8, #2
	sub	w27, w25, w8
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x24
	bl	_dev_kfree_skb_any
	b	LBB0_3
LBB0_11:
	add	x0, sp, #8
	mov	x1, x24
	bl	___skb_queue_head
LBB0_12:
	add	x0, sp, #8
	bl	_skb_queue_empty
	cbnz	w0, LBB0_14
; %bb.13:
	mov	x0, x22
	bl	_spin_lock
	add	x0, sp, #8
	mov	x1, x22
	bl	_skb_queue_splice
	mov	x0, x22
	bl	_spin_unlock
LBB0_14:
	ldr	x0, [x19, #16]
	bl	_netif_tx_lock
	ldr	x0, [x19, #16]
	bl	_netif_queue_stopped
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x22
	bl	_skb_queue_len
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_17
; %bb.16:
	ldr	x0, [x19, #16]
	bl	_netif_wake_queue
LBB0_17:
	ldr	x0, [x19, #16]
	bl	_netif_tx_unlock
	ldr	w0, [x19, #8]
	bl	_usb_autopm_get_interface_async
	tbnz	w0, #31, LBB0_20
; %bb.18:
	ldr	w22, [x20]
	ldr	w23, [x19, #12]
	mov	x0, x23
	mov	w1, #2
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	x3, [x20, #8]
	sub	x8, x21, x3
	lsr	x4, x8, #2
Lloh11:
	adrp	x8, _write_bulk_callback@GOTPAGE
Lloh12:
	ldr	x8, [x8, _write_bulk_callback@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x23
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x22, x0
	tbz	w0, #31, LBB0_21
; %bb.19:
	ldr	w0, [x19, #8]
	bl	_usb_autopm_put_interface_async
	b	LBB0_21
LBB0_20:
	mov	x22, x0
LBB0_21:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_agg_buf_sz,4,2                 ; @agg_buf_sz
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_DELL_TB_RX_AGG_BUG,4,2         ; @DELL_TB_RX_AGG_BUG
	.comm	_write_bulk_callback,8,3        ; @write_bulk_callback
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_r8152_tx_agg_fill
.subsections_via_symbols
