	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_ncm_rx_fixup               ## -- Begin function cdc_ncm_rx_fixup
	.p2align	4, 0x90
_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	$72, %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, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_cdc_ncm_rx_verify_nth16
	testl	%eax, %eax
	js	LBB0_21
## %bb.1:
	movl	%eax, %r14d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$50, %ebx
	xorl	%r13d, %r13d
	movq	%r15, -64(%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_21
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rbx
	movslq	%r14d, %r15
	movq	(%rbx,%r15), %r14
	movq	_USB_CDC_NCM_NDP16_NOCRC_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	cmpq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15,%rbx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%r12d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%r13d, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movl	4(%rbx,%r12,8), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	(%rbx,%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	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %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	-72(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_netdev_alloc_skb_ip_align
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%rax, %rbx
	movslq	%r14d, %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_skb_put_data
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_usbnet_skb_return
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	incq	%r12
	movl	%r13d, %eax
	cmpl	%r12d, -104(%rbp)               ## 4-byte Folded Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_6
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax), %rdi
	callq	_le32_to_cpu
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%r14d, %edx
	leaq	L_.str(%rip), %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %edx
	leaq	L_.str.1(%rip), %rcx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_netif_dbg
	addq	$16, %rsp
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15,%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	subl	$1, %ebx
	setb	%al
	testl	%r14d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	je	LBB0_2
LBB0_18:
	movl	(%r15), %eax
	subl	%r13d, %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, 8(%rcx)
	incl	4(%rcx)
	movl	$1, %eax
	jmp	LBB0_22
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$72, %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,4,2 ## @USB_CDC_NCM_NDP16_NOCRC_SIGN
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid DPT16 signature <%#010x>\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"

.subsections_via_symbols

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

.subsections_via_symbols
