	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfhsi_tx_frm
_cfhsi_tx_frm:                          ## @cfhsi_tx_frm
	.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	$40, %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, %r13
	movq	_CFHSI_MAX_EMB_FRM_SZ@GOTPCREL(%rip), %r14
	movslq	(%r14), %r12
	shlq	$3, %r12
	addq	24(%rdi), %r12
	movq	%rsi, %rdi
	callq	_cfhsi_dequeue
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	$0, 16(%r13)
	movl	(%rax), %eax
	cmpl	(%r14), %eax
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jge	LBB0_5
## %bb.3:
	movl	4(%rbx), %edi
	incl	%edi
	movl	20(%r15), %esi
	callq	_PAD_POW2
	movl	%eax, %r12d
	leal	1(%r12), %eax
	movl	(%rbx), %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	%eax, %edi
	movl	16(%r15), %esi
	callq	_PAD_POW2
                                        ## kill: def $eax killed $eax def $rax
	addl	%r12d, %eax
	incl	%eax
	addl	(%rbx), %eax
	cmpl	(%r14), %eax
	jg	LBB0_5
## %bb.4:
	movq	24(%r13), %rax
	movq	_CFHSI_DESC_SHORT_SZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%r13)
	movslq	%r12d, %rcx
	movq	%rcx, (%rax)
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	leaq	(%rax,%rcx,8), %r12
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	8(%r15), %rax
	incl	4(%rax)
	movl	(%rbx), %ecx
	addl	%ecx, (%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$-1, %edx
	callq	_cfhsi_update_aggregation_stats
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_skb_copy_bits
	movq	%rbx, %rdi
	callq	_consume_skb
	xorl	%ebx, %ebx
LBB0_5:
	movq	_CFHSI_MAX_PKTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%rbx), %edi
	incl	%edi
	movl	20(%r15), %esi
	callq	_PAD_POW2
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	leal	1(%r14), %edi
	addl	(%rbx), %edi
	movl	16(%r15), %esi
	callq	_PAD_POW2
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	(%rax,%r14), %edx
	incl	%edx
	addl	(%rbx), %edx
	movq	(%r13), %rcx
	movl	%edx, (%rcx,%r12,4)
	movslq	%r14d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	leaq	(%rcx,%rax,8), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,8), %r14
	addq	$8, %r14
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	8(%r15), %rax
	incl	4(%rax)
	movl	(%rbx), %ecx
	addl	%ecx, (%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$-1, %edx
	callq	_cfhsi_update_aggregation_stats
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	callq	_skb_copy_bits
	movq	(%r13), %rax
	addl	(%rax,%r12,4), %r14d
	movslq	(%rbx), %rax
	movslq	-80(%rbp), %rcx                 ## 4-byte Folded Reload
	addq	%rax, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rax
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_consume_skb
	incq	%r12
	movq	_CFHSI_MAX_PKTS@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rax
	movl	$0, %ebx
	cmpq	%rax, %r12
	jge	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_cfhsi_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_CFHSI_MAX_PKTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
LBB0_12:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpl	%eax, %r12d
	jl	LBB0_14
	jmp	LBB0_16
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_6:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	cmpl	%eax, %r12d
	jge	LBB0_16
LBB0_14:
	movq	(%r13), %rax
	movl	%r12d, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rax,%rcx,4)
	incq	%rcx
	cmpl	%ecx, (%rdx)
	jg	LBB0_15
LBB0_16:
	movq	%r15, %rdi
	callq	_cfhsi_can_send_aggregate
	movq	_CFHSI_PIGGY_DESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	orl	%ecx, 8(%r13)
	jmp	LBB0_19
LBB0_18:
	notl	%ecx
	andl	%ecx, 8(%r13)
LBB0_19:
	movq	_CFHSI_DESC_SZ@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFHSI_MAX_EMB_FRM_SZ,4,2       ## @CFHSI_MAX_EMB_FRM_SZ
	.comm	_CFHSI_DESC_SHORT_SZ,8,3        ## @CFHSI_DESC_SHORT_SZ
	.comm	_CFHSI_MAX_PKTS,4,2             ## @CFHSI_MAX_PKTS
	.comm	_CFHSI_PIGGY_DESC,4,2           ## @CFHSI_PIGGY_DESC
	.comm	_CFHSI_DESC_SZ,4,2              ## @CFHSI_DESC_SZ
	.no_dead_strip	_cfhsi_tx_frm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfhsi_tx_frm
_cfhsi_tx_frm:                          ; @cfhsi_tx_frm
	.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
	ldr	x23, [x0, #24]
Lloh0:
	adrp	x24, _CFHSI_MAX_EMB_FRM_SZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CFHSI_MAX_EMB_FRM_SZ@GOTPAGEOFF]
	ldrsw	x27, [x24]
	mov	x0, x1
	bl	_cfhsi_dequeue
	cbz	x0, LBB0_18
; %bb.1:
	mov	x21, x0
	str	xzr, [x19, #16]
	ldr	w8, [x0]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.2:
	ldr	w8, [x21, #4]
	add	w0, w8, #1
	ldr	w1, [x20, #20]
	bl	_PAD_POW2
	mov	x22, x0
	add	w25, w0, #1
	ldr	w8, [x21]
	add	w0, w8, w25
	ldr	w1, [x20, #16]
	bl	_PAD_POW2
	ldr	w8, [x21]
	add	w9, w0, w25
	add	w8, w9, w8
	ldr	w9, [x24]
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _CFHSI_DESC_SHORT_SZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CFHSI_DESC_SHORT_SZ@GOTPAGEOFF]
	ldr	x9, [x19, #24]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	sxtw	x8, w22
	str	x8, [x9]
	add	x22, x9, w25, sxtw #3
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
	ldr	d0, [x8]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x21]
	add.2s	v0, v0, v1
	str	d0, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #-1
	bl	_cfhsi_update_aggregation_stats
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	w3, [x21]
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_skb_copy_bits
	mov	x0, x21
	bl	_consume_skb
	mov	x21, #0
LBB0_4:
Lloh5:
	adrp	x22, _CFHSI_MAX_PKTS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CFHSI_MAX_PKTS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x26, #0
	mov	w24, #0
	add	x27, x23, x27, lsl #3
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x21, #4]
	add	w0, w8, #1
	ldr	w1, [x20, #20]
	bl	_PAD_POW2
	mov	x22, x0
	add	w28, w0, #1
	ldr	w8, [x21]
	add	w0, w8, w28
	ldr	w1, [x20, #16]
	bl	_PAD_POW2
	mov	x23, x0
	ldr	w8, [x21]
	add	w9, w0, w28
	add	w8, w9, w8
	lsl	x25, x26, #2
	ldr	x9, [x19]
	str	w8, [x9, x25]
	sxtw	x8, w22
	str	x8, [x27]
	add	x22, x27, w28, sxtw #3
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
	ldr	d0, [x8]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x21]
	add.2s	v0, v0, v1
	str	d0, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #-1
	bl	_cfhsi_update_aggregation_stats
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	w3, [x21]
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_skb_copy_bits
	ldr	x8, [x19]
	ldr	w8, [x8, x25]
	add	w24, w8, w24
	ldr	w8, [x21]
	add	w8, w8, w23
	add	x27, x22, w8, sxtw #3
Lloh7:
	adrp	x22, _CFHSI_MAX_PKTS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _CFHSI_MAX_PKTS@GOTPAGEOFF]
	mov	x0, x21
	bl	_consume_skb
	mov	x21, #0
	add	x26, x26, #1
	ldrsw	x8, [x22]
	cmp	x26, x8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x21, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_cfhsi_dequeue
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.9:
	ldr	w8, [x22]
LBB0_10:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	cmp	w26, w8
	b.lt	LBB0_12
	b	LBB0_14
LBB0_11:
	mov	w24, #0
	mov	w26, #0
	cmp	w26, w8
	b.ge	LBB0_14
LBB0_12:
	ldr	x8, [x19]
	mov	w9, w26
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x8, x9, lsl #2]
	add	x9, x9, #1
	ldr	w10, [x22]
	cmp	w10, w9
	b.gt	LBB0_13
LBB0_14:
	mov	x0, x20
	bl	_cfhsi_can_send_aggregate
Lloh9:
	adrp	x8, _CFHSI_PIGGY_DESC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CFHSI_PIGGY_DESC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_17
LBB0_16:
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_17:
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, _CFHSI_DESC_SZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CFHSI_DESC_SZ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w0, w8, w24
LBB0_18:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CFHSI_MAX_EMB_FRM_SZ,4,2       ; @CFHSI_MAX_EMB_FRM_SZ
	.comm	_CFHSI_DESC_SHORT_SZ,8,3        ; @CFHSI_DESC_SHORT_SZ
	.comm	_CFHSI_MAX_PKTS,4,2             ; @CFHSI_MAX_PKTS
	.comm	_CFHSI_PIGGY_DESC,4,2           ; @CFHSI_PIGGY_DESC
	.comm	_CFHSI_DESC_SZ,4,2              ; @CFHSI_DESC_SZ
	.no_dead_strip	_cfhsi_tx_frm
.subsections_via_symbols
