	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdc_ncm_rx_fixup
_cdc_ncm_rx_fixup:                      ## @cdc_ncm_rx_fixup
	.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, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_cdc_ncm_rx_verify_nth16
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	movl	%eax, %r14d
	movl	$50, %ebx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_cdc_ncm_rx_verify_ndp16
	testl	%eax, %eax
	js	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %r15
	movslq	%r14d, %rbx
	movl	16(%r15,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	_USB_CDC_NCM_NDP16_NOCRC_SIGN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rax,%rcx,4), %r15
	movl	%r12d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r15,%r12,8), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	(%r15,%r12,8), %edi
	callq	_le16_to_cpu
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leal	(%r14,%r13), %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpl	(%rbx), %eax
	jg	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r13d
	jg	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_clone
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movl	%r13d, (%rax)
	movslq	%r14d, %rax
	shlq	$2, %rax
	addq	8(%rcx), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_set_tail_pointer
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_usbnet_skb_return
	incq	%r12
	cmpl	%r12d, -88(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_6
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15,%rbx,4), %edi
	callq	_le32_to_cpu
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_pr_debug
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	$1, %ebx
	setb	%cl
	movl	$1, %eax
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	%cl, %cl
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_2
	jmp	LBB0_20
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_CDC_NCM_NDP16_NOCRC_SIGN,8,3 ## @USB_CDC_NCM_NDP16_NOCRC_SIGN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid DPT16 signature <%u>\n"

	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
L_.str.1:                               ## @.str.1
	.asciz	"invalid frame detected (ignored)offset[%u]=%u, length=%u, skb=%p\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_cdc_ncm_rx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdc_ncm_rx_fixup
_cdc_ncm_rx_fixup:                      ; @cdc_ncm_rx_fixup
	.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
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x0]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_cdc_ncm_rx_verify_nth16
	tbnz	w0, #31, LBB0_15
; %bb.1:
	mov	x25, x0
	mov	w22, #50
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23, #16]
	bl	_le32_to_cpu
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_pr_debug
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	bl	_le16_to_cpu
	mov	x25, x0
	cmp	w0, #0
	ccmp	w22, #0, #4, ne
	sub	w22, w22, #1
	b.eq	LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x19
	mov	x1, x25
	bl	_cdc_ncm_rx_verify_ndp16
	tbnz	w0, #31, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldr	x8, [x19, #8]
	add	x23, x8, w25, sxtw #2
	ldr	w0, [x23, #16]
	bl	_le32_to_cpu
Lloh2:
	adrp	x8, _USB_CDC_NCM_NDP16_NOCRC_SIGN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_CDC_NCM_NDP16_NOCRC_SIGN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w25, #0
	ldr	x8, [x23, #8]
	add	x20, x8, #4
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x26, x0
	ldur	w0, [x20, #-4]
	bl	_le16_to_cpu
	cmp	w26, #0
	ccmp	w0, #0, #4, ne
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x27, x0
	ldr	w8, [x19]
	add	w9, w0, w26
	cmp	w9, w8
	b.gt	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w27, w8
	ccmp	w27, w9, #8, le
	b.lt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
Lloh8:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_clone
	cbz	x0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x28, x0
	str	w27, [x0]
	ldr	x8, [x19, #8]
	add	x8, x8, w26, sxtw #2
	str	x8, [x0, #8]
	mov	x1, x27
	bl	_skb_set_tail_pointer
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x28
	bl	_usbnet_skb_return
	add	w25, w25, #1
	add	x20, x20, #8
	cmp	w24, w25
	b.ne	LBB0_9
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x27, x19, [sp, #8]
	str	x26, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	b	LBB0_3
LBB0_15:
	mov	w0, #0
	b	LBB0_17
LBB0_16:
	mov	w0, #1
LBB0_17:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_CDC_NCM_NDP16_NOCRC_SIGN,8,3 ; @USB_CDC_NCM_NDP16_NOCRC_SIGN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid DPT16 signature <%u>\n"

	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
l_.str.1:                               ; @.str.1
	.asciz	"invalid frame detected (ignored)offset[%u]=%u, length=%u, skb=%p\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_cdc_ncm_rx_fixup
.subsections_via_symbols
