	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rndis_rx_fixup                 ## -- Begin function rndis_rx_fixup
	.p2align	4, 0x90
_rndis_rx_fixup:                        ## @rndis_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	movq	(%r14), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdi
	jl	LBB0_13
## %bb.1:
	movq	%rsi, %r15
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r13
	movl	(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movl	12(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, %r12
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, %r14
	movl	4(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movb	$1, %al
	movq	_RNDIS_MSG_PACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r12, (%r15)
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	addq	$8, %rax
	cmpq	%r12, %rax
	setg	%al
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_skb_pull
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rax
	subq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	$17, %rax
	setb	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skb_clone
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$-16, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_skb_pull
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_skb_trim
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_usbnet_skb_return
	movl	(%r15), %edi
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_12
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	incl	8(%rbx)
	movl	(%r13), %edi
	callq	_le32_to_cpu
	movq	(%r15), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movq	%r12, %rcx
	movq	%r14, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_netdev_dbg
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_skb_trim
LBB0_12:
	movl	$1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RNDIS_MSG_PACKET,8,3           ## @RNDIS_MSG_PACKET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad rndis message %d/%d/%d/%d, len %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rndis_rx_fixup                 ; -- Begin function rndis_rx_fixup
	.p2align	2
_rndis_rx_fixup:                        ; @rndis_rx_fixup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldr	x0, [x1]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_13
LBB0_2:
	mov	x19, x1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_likely
	cbz	x0, LBB0_12
; %bb.3:
Lloh0:
	adrp	x25, _RNDIS_MSG_PACKET@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RNDIS_MSG_PACKET@GOTPAGEOFF]
	mov	w26, #1
Lloh2:
	adrp	x27, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x27, [x27, _GFP_ATOMIC@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #8]
	ldr	w0, [x28]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	w0, [x28, #12]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x28, #8]
	bl	_le32_to_cpu
	mov	x23, x0
	ldr	w0, [x28, #4]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	x8, [x25]
	cmp	x24, x8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x9, x23, x21
	add	x9, x9, #8
	cmp	x9, x22
	cset	w9, gt
	cmp	x8, x22
	csel	w0, w26, w9, lt
	bl	_unlikely
	cbz	x0, LBB0_7
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x23, #8
	mov	x0, x19
	bl	_skb_pull
	ldr	x8, [x19]
	sub	x8, x21, x8
	cmp	x8, #17
	cset	w0, lo
	bl	_likely
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	bl	_skb_clone
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x1, x22, #16
	mov	x0, x19
	bl	_skb_pull
	mov	x0, x23
	mov	x1, x21
	bl	_skb_trim
	mov	x0, x20
	mov	x1, x23
	bl	_usbnet_skb_return
	ldr	w0, [x19]
	bl	_likely
	cbnz	x0, LBB0_4
	b	LBB0_12
LBB0_10:
	ldr	x20, [x20]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	w0, [x28]
	bl	_le32_to_cpu
	mov	x2, x0
	ldr	x6, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	mov	x4, x23
	mov	x5, x21
	bl	_netdev_dbg
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_skb_trim
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RNDIS_MSG_PACKET,8,3           ; @RNDIS_MSG_PACKET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad rndis message %d/%d/%d/%d, len %d\n"

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