	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_ncm_fill_tx_frame          ## -- Begin function cdc_ncm_fill_tx_frame
	.p2align	4, 0x90
_cdc_ncm_fill_tx_frame:                 ## @cdc_ncm_fill_tx_frame
	.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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	72(%r14), %rsi
	movq	%r12, %rdi
	callq	_swap
	movq	64(%r14), %rsi
	movq	%r13, %rdi
	callq	_swap
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_1:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	24(%r14), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rbx
	cmpq	16(%r14), %rbx
	jge	LBB0_23
LBB0_10:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	64(%r14), %r13
	movq	72(%r14), %r12
	movq	$0, 72(%r14)
	testq	%r12, %r12
	je	LBB0_25
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	(%r12), %rcx
	addq	88(%r14), %rcx
	addq	80(%r14), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_cdc_ncm_ndp
	movq	%rax, %rbx
	movq	88(%r14), %rsi
	movq	80(%r14), %rdx
	movl	(%r14), %ecx
	movq	%r15, %rdi
	callq	_cdc_ncm_align_tail
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r12), %eax
	addl	(%r15), %eax
	cmpl	(%r14), %eax
	jg	LBB0_15
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%r12, %r13
	movq	%rax, %r12
	leaq	-16(%rax), %r14
	shrq	$2, %r14
	movq	%r14, %r15
	shlq	$4, %r15
	movslq	(%r13), %rdi
	callq	_cpu_to_le16
	movq	8(%rbx), %rcx
	movq	%rax, -8(%rcx,%r15)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	8(%rbx), %rcx
	movq	%rax, -16(%rcx,%r15)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_skb_put
	movq	8(%r13), %rsi
	movl	(%r13), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	_CDC_NCM_DPT_DATAGRAMS_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jg	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movl	$0, %r12d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpq	16(%r14), %rbx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_11
	jmp	LBB0_25
LBB0_5:
	movl	(%r14), %edi
	incl	%edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_skb_put
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%rax, %rbx
	movq	_USB_CDC_NCM_NTH16_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 24(%rbx)
	movl	$32, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movslq	96(%r14), %rdi
	leal	1(%rdi), %eax
	movl	%eax, 96(%r14)
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	xorl	%ebx, %ebx
	movq	$0, 8(%r14)
	cmpq	16(%r14), %rbx
	jl	LBB0_10
LBB0_23:
	testq	%r12, %r12
	je	LBB0_25
## %bb.24:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	32(%r14), %rax
	incl	4(%rax)
	jmp	LBB0_25
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.17:
	movq	72(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_dev_kfree_skb_any
	movq	32(%r14), %rax
	incl	4(%rax)
LBB0_19:
	movq	%r12, 72(%r14)
	movq	%r13, 64(%r14)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_25
LBB0_6:
	testq	%r12, %r12
	je	LBB0_34
## %bb.7:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	32(%r14), %rax
	incl	4(%rax)
	movq	24(%r14), %r15
	jmp	LBB0_27
LBB0_21:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_25:
	movq	%rbx, 8(%r14)
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.30:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_35
## %bb.31:
	cmpq	16(%r14), %rbx
	jge	LBB0_35
## %bb.32:
	movq	%r15, 24(%r14)
	movq	_CDC_NCM_RESTART_TIMER_DATAGRAM_CNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jge	LBB0_27
## %bb.33:
	movq	_CDC_NCM_TIMER_PENDING_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
LBB0_34:
	movq	24(%r14), %r15
	jmp	LBB0_27
LBB0_35:
	movl	(%r15), %ebx
	movq	_CDC_NCM_MIN_TX_PKT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_37
## %bb.36:
	movl	(%r14), %esi
	subl	%ebx, %esi
	movq	%r15, %rdi
	callq	_skb_put
	movl	(%r14), %edx
	subl	(%r15), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r15), %ebx
LBB0_37:
	movslq	%ebx, %r12
	movq	48(%r14), %rax
	movq	(%rax), %rdi
	callq	_le16_to_cpu
	movq	%rax, %rcx
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_38
## %bb.39:
	movq	%r12, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	jne	LBB0_44
	jmp	LBB0_41
LBB0_38:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_44
LBB0_41:
	movslq	(%r15), %rbx
	movl	40(%r14), %edi
	callq	_le32_to_cpu
	cmpq	%rbx, %rax
	jle	LBB0_44
## %bb.42:
	movq	%r15, %rdi
	callq	_skb_tailroom
	testq	%rax, %rax
	je	LBB0_44
## %bb.43:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_skb_put
	movq	$0, (%rax)
LBB0_44:
	movq	8(%r15), %rbx
	movslq	(%r15), %rdi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	$0, 24(%r14)
	movl	8(%r14), %eax
	movq	32(%r14), %rcx
	addl	%eax, (%rcx)
	jmp	LBB0_45
LBB0_16:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	32(%r14), %rax
	incl	4(%rax)
	movq	$0, 8(%r14)
LBB0_26:
	movq	%r15, 24(%r14)
LBB0_27:
	testq	%r15, %r15
	je	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	callq	_cdc_ncm_tx_timeout_start
LBB0_29:
	xorl	%r15d, %r15d
LBB0_45:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_USB_CDC_NCM_NTH16_SIGN,4,2     ## @USB_CDC_NCM_NTH16_SIGN
	.comm	_CDC_NCM_DPT_DATAGRAMS_MAX,8,3  ## @CDC_NCM_DPT_DATAGRAMS_MAX
	.comm	_CDC_NCM_RESTART_TIMER_DATAGRAM_CNT,8,3 ## @CDC_NCM_RESTART_TIMER_DATAGRAM_CNT
	.comm	_CDC_NCM_TIMER_PENDING_CNT,4,2  ## @CDC_NCM_TIMER_PENDING_CNT
	.comm	_CDC_NCM_MIN_TX_PKT,4,2         ## @CDC_NCM_MIN_TX_PKT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_ncm_fill_tx_frame          ; -- Begin function cdc_ncm_fill_tx_frame
	.p2align	2
_cdc_ncm_fill_tx_frame:                 ; @cdc_ncm_fill_tx_frame
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x1, [x19, #72]
	mov	x0, x21
	bl	_swap
	ldr	x1, [x19, #64]
	mov	x0, x22
	bl	_swap
	mov	w24, #0
	ldr	x20, [x19, #24]
	cbz	x20, LBB0_4
LBB0_2:
	ldr	x26, [x19, #8]
	b	LBB0_6
LBB0_3:
	mov	w24, #1
	ldr	x20, [x19, #24]
	cbnz	x20, LBB0_2
LBB0_4:
	ldr	w8, [x19]
	add	w0, w8, #1
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_21
; %bb.5:
	mov	x20, x0
	mov	w1, #32
	bl	_skb_put
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x23, x0
Lloh3:
	adrp	x8, _USB_CDC_NCM_NTH16_SIGN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_CDC_NCM_NTH16_SIGN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x23, #24]
	mov	w0, #32
	bl	_cpu_to_le16
	str	x0, [x23, #16]
	ldrsw	x0, [x19, #96]
	add	w8, w0, #1
	str	w8, [x19, #96]
	bl	_cpu_to_le16
	mov	x26, #0
	str	x0, [x23, #8]
	str	xzr, [x19, #8]
LBB0_6:
	ldr	x8, [x19, #16]
	cmp	x26, x8
	b.ge	LBB0_15
; %bb.7:
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
Lloh6:
	adrp	x27, _CDC_NCM_DPT_DATAGRAMS_MAX@GOTPAGE
Lloh7:
	ldr	x27, [x27, _CDC_NCM_DPT_DATAGRAMS_MAX@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x21, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldp	x22, x21, [x19, #64]
	str	xzr, [x19, #72]
	cbz	x21, LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [x21]
	ldp	x10, x9, [x19, #80]
	add	x8, x9, x8
	add	x3, x8, x10
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_cdc_ncm_ndp
	mov	x23, x0
	ldp	x2, x1, [x19, #80]
	ldr	w3, [x19]
	mov	x0, x20
	bl	_cdc_ncm_align_tail
	cbz	x23, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	ldr	w10, [x19]
	add	w8, w9, w8
	cmp	w8, w10
	b.gt	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x23]
	bl	_le16_to_cpu
	mov	x24, x0
	sub	x8, x0, #16
	lsr	x28, x8, #2
	lsl	x25, x28, #4
	ldrsw	x0, [x21]
	bl	_cpu_to_le16
	ldr	x8, [x23, #8]
	sub	x25, x25, #16
	add	x8, x8, x25
	str	x0, [x8, #8]
	ldrsw	x0, [x20]
	bl	_cpu_to_le16
	ldr	x8, [x23, #8]
	str	x0, [x8, x25]
	add	x0, x24, #4
	bl	_cpu_to_le16
	str	x0, [x23]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_skb_put
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	bl	_memcpy
	mov	x0, x21
	bl	_dev_kfree_skb_any
	ldr	x8, [x27]
	cmp	x28, x8
	b.gt	LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, #0
	add	x26, x26, #1
	ldr	x8, [x19, #16]
	cmp	x26, x8
	b.lt	LBB0_8
LBB0_14:
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	str	x26, [x19, #8]
	cbnz	x26, LBB0_25
	b	LBB0_38
LBB0_15:
	cbz	x21, LBB0_24
; %bb.16:
	mov	x0, x21
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #32]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	str	x26, [x19, #8]
	cbnz	x26, LBB0_25
	b	LBB0_38
LBB0_17:
	cbz	x26, LBB0_37
; %bb.18:
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #32]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_20:
	stp	x22, x21, [x19, #64]
	mov	w24, #1
	str	x26, [x19, #8]
	cbnz	x26, LBB0_25
	b	LBB0_38
LBB0_21:
	cbz	x21, LBB0_29
; %bb.22:
	mov	x0, x21
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #32]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	ldr	x20, [x19, #24]
	b	LBB0_39
LBB0_23:
	mov	w24, #1
LBB0_24:
	str	x26, [x19, #8]
	cbz	x26, LBB0_38
LBB0_25:
	cbnz	w24, LBB0_30
; %bb.26:
	ldr	x8, [x19, #16]
	cmp	x26, x8
	b.ge	LBB0_30
; %bb.27:
	str	x20, [x19, #24]
Lloh8:
	adrp	x8, _CDC_NCM_RESTART_TIMER_DATAGRAM_CNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CDC_NCM_RESTART_TIMER_DATAGRAM_CNT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ge	LBB0_39
; %bb.28:
Lloh11:
	adrp	x8, _CDC_NCM_TIMER_PENDING_CNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CDC_NCM_TIMER_PENDING_CNT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #56]
LBB0_29:
	ldr	x20, [x19, #24]
	b	LBB0_39
LBB0_30:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _CDC_NCM_MIN_TX_PKT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CDC_NCM_MIN_TX_PKT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_32
; %bb.31:
	ldr	w9, [x19]
	sub	w1, w9, w8
	mov	x0, x20
	bl	_skb_put
	ldr	w8, [x19]
	ldr	w9, [x20]
	sub	w2, w8, w9
	mov	w1, #0
	bl	_memset
	ldr	w8, [x20]
LBB0_32:
	sxtw	x21, w8
	ldr	x8, [x19, #48]
	ldr	x0, [x8]
	bl	_le16_to_cpu
	sdiv	x8, x21, x0
	msub	x8, x8, x0, x21
	cbnz	x8, LBB0_36
; %bb.33:
	ldrsw	x21, [x20]
	ldr	w0, [x19, #40]
	bl	_le32_to_cpu
	cmp	x0, x21
	b.le	LBB0_36
; %bb.34:
	mov	x0, x20
	bl	_skb_tailroom
	cbz	x0, LBB0_36
; %bb.35:
	mov	x0, x20
	mov	w1, #1
	bl	_skb_put
	str	xzr, [x0]
LBB0_36:
	ldr	x21, [x20, #8]
	ldrsw	x0, [x20]
	bl	_cpu_to_le16
	str	x0, [x21]
	str	xzr, [x19, #24]
	ldr	w8, [x19, #8]
	ldr	x9, [x19, #32]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	b	LBB0_41
LBB0_37:
	mov	x0, x21
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #32]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	str	xzr, [x19, #8]
LBB0_38:
	str	x20, [x19, #24]
LBB0_39:
	cbz	x20, LBB0_41
; %bb.40:
	mov	x0, x19
	bl	_cdc_ncm_tx_timeout_start
	mov	x20, #0
LBB0_41:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_USB_CDC_NCM_NTH16_SIGN,4,2     ; @USB_CDC_NCM_NTH16_SIGN
	.comm	_CDC_NCM_DPT_DATAGRAMS_MAX,8,3  ; @CDC_NCM_DPT_DATAGRAMS_MAX
	.comm	_CDC_NCM_RESTART_TIMER_DATAGRAM_CNT,8,3 ; @CDC_NCM_RESTART_TIMER_DATAGRAM_CNT
	.comm	_CDC_NCM_TIMER_PENDING_CNT,4,2  ; @CDC_NCM_TIMER_PENDING_CNT
	.comm	_CDC_NCM_MIN_TX_PKT,4,2         ; @CDC_NCM_MIN_TX_PKT
.subsections_via_symbols
