	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kalmia_rx_fixup
_kalmia_rx_fixup:                       ## @kalmia_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
	movl	(%rsi), %eax
	movq	_KALMIA_HEADER_LENGTH@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpl	(%rcx), %eax
	jl	LBB0_15
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r14
	movb	$1, %al
	cmpl	$87, (%r14)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$68, 4(%r14)
	setne	%al
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %edi
	callq	_unlikely
	leaq	L_.str.2(%rip), %rsi
	testq	%rax, %rax
	movq	_KALMIA_HEADER_LENGTH@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	_kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_1(%rip), %rsi
	movl	$24, %edx
	callq	_memcmp
	leaq	L_.str(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	_kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_2(%rip), %rsi
	movl	$24, %edx
	callq	_memcmp
	leaq	L_.str(%rip), %rsi
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movl	(%r13), %ecx
	subl	(%rbx), %ecx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	%rbx, %rax
	movl	(%r13), %ebx
	movl	(%rax), %eax
	addl	%eax, %eax
	subl	%eax, %ebx
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_get_unaligned_le16
	movl	%eax, %r12d
	movq	_KALMIA_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_pull
	cmpl	%r12d, %ebx
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_netdev_dbg
	movslq	%r12d, %r14
	shlq	$2, %r14
	movq	8(%r13), %rdi
	addq	%r14, %rdi
	leaq	_kalmia_rx_fixup.HEADER_END_OF_USB_PACKET(%rip), %rsi
	movl	$24, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	addq	8(%r13), %r14
	movl	(%r15), %edi
	movl	(%r13), %ecx
	movq	_KALMIA_HEADER_LENGTH@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	xorl	%r15d, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_clone
	movq	%rbx, %r14
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_skb_trim
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usbnet_skb_return
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_skb_pull
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	cmpl	$0, (%r13)
	jne	LBB0_2
	jmp	LBB0_14
LBB0_9:
	movq	_KALMIA_HEADER_LENGTH@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, %r12d
LBB0_11:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_skb_trim
LBB0_14:
	movl	$1, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r15), %edi
	movl	(%r13), %ecx
	subl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_netdev_err
	xorl	%r15d, %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @kalmia_rx_fixup.HEADER_END_OF_USB_PACKET
_kalmia_rx_fixup.HEADER_END_OF_USB_PACKET:
	.long	87                              ## 0x57
	.long	90                              ## 0x5a
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	8                               ## 0x8
	.long	0                               ## 0x0

	.p2align	4                               ## @kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_1
_kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_1:
	.long	87                              ## 0x57
	.long	67                              ## 0x43
	.long	30                              ## 0x1e
	.long	0                               ## 0x0
	.long	21                              ## 0x15
	.long	2                               ## 0x2

	.p2align	4                               ## @kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_2
_kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_2:
	.long	87                              ## 0x57
	.long	80                              ## 0x50
	.long	14                              ## 0xe
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_KALMIA_HEADER_LENGTH,4,2       ## @KALMIA_HEADER_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received expected unknown frame header: %6phC. Package length: %i\n"

L_.str.1:                               ## @.str.1
	.asciz	"Received unknown frame header: %6phC. Package length: %i\n"

L_.str.2:                               ## @.str.2
	.asciz	"Received header: %6phC. Package length: %i\n"

L_.str.3:                               ## @.str.3
	.asciz	"Correct package length #%i"

L_.str.4:                               ## @.str.4
	.asciz	"End header: %6phC. Package length: %i\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kalmia_rx_fixup
_kalmia_rx_fixup:                       ; @kalmia_rx_fixup
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x28, _KALMIA_HEADER_LENGTH@GOTPAGE
Lloh1:
	ldr	x28, [x28, _KALMIA_HEADER_LENGTH@GOTPAGEOFF]
	ldr	w9, [x28]
	cmp	w8, w9
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_17
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	mov	w25, #1
Lloh2:
	adrp	x21, l_.str.3@PAGE
Lloh3:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh4:
	adrp	x22, _kalmia_rx_fixup.HEADER_END_OF_USB_PACKET@PAGE
Lloh5:
	add	x22, x22, _kalmia_rx_fixup.HEADER_END_OF_USB_PACKET@PAGEOFF
Lloh6:
	adrp	x23, l_.str.4@PAGE
Lloh7:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh8:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #8]
	ldr	w8, [x26]
	cmp	w8, #87
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26, #4]
	cmp	w8, #68
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
Lloh10:
	adrp	x1, _kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_1@PAGE
Lloh11:
	add	x1, x1, _kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_1@PAGEOFF
	mov	w2, #24
	bl	_memcmp
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
Lloh12:
	adrp	x1, _kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_2@PAGE
Lloh13:
	add	x1, x1, _kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_2@PAGEOFF
	mov	w2, #24
	bl	_memcmp
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	cbz	x0, LBB0_10
	b	LBB0_18
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	ldr	w8, [x19]
	ldr	w9, [x28]
	sub	w8, w8, w9
	stp	x26, x8, [sp]
	bl	_netdev_dbg
	ldr	w8, [x19]
	ldr	w9, [x28]
	sub	w27, w8, w9, lsl #1
	add	x0, x26, #8
	bl	_get_unaligned_le16
	mov	x26, x0
	ldr	w1, [x28]
	mov	x0, x19
	bl	_skb_pull
	cmp	w27, w26
	b.lt	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	str	x25, [sp]
	mov	x1, x21
	bl	_netdev_dbg
	ldr	x8, [x19, #8]
	add	x0, x8, w26, sxtw #2
	mov	x1, x22
	mov	w2, #24
	bl	_memcmp
	cbz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w26
	ldr	x9, [x19, #8]
	add	x8, x9, x8, lsl #2
	ldr	w0, [x20]
	ldr	w9, [x19]
	ldr	w10, [x28]
	sub	w9, w9, w10
	stp	x8, x9, [sp]
	mov	x1, x23
	bl	_netdev_dbg
	ldr	w1, [x24]
	mov	x0, x19
	bl	_skb_clone
	mov	x27, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	mov	x1, x26
	bl	_skb_trim
	mov	x0, x20
	mov	x1, x27
	bl	_usbnet_skb_return
	mov	x0, x19
	mov	x1, x26
	bl	_skb_pull
	ldr	w8, [x19]
	add	w25, w25, #1
	cbnz	w8, LBB0_3
	b	LBB0_16
LBB0_14:
	ldr	w8, [x28]
	add	w26, w8, w27
LBB0_15:
	mov	x0, x19
	mov	x1, x26
	bl	_skb_trim
LBB0_16:
	mov	w0, #1
LBB0_17:
	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
LBB0_18:
	ldr	w0, [x20]
	ldr	w8, [x19]
	ldr	w9, [x28]
	sub	w3, w8, w9
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	bl	_netdev_err
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @kalmia_rx_fixup.HEADER_END_OF_USB_PACKET
_kalmia_rx_fixup.HEADER_END_OF_USB_PACKET:
	.long	87                              ; 0x57
	.long	90                              ; 0x5a
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	8                               ; 0x8
	.long	0                               ; 0x0

	.p2align	2                               ; @kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_1
_kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_1:
	.long	87                              ; 0x57
	.long	67                              ; 0x43
	.long	30                              ; 0x1e
	.long	0                               ; 0x0
	.long	21                              ; 0x15
	.long	2                               ; 0x2

	.p2align	2                               ; @kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_2
_kalmia_rx_fixup.EXPECTED_UNKNOWN_HEADER_2:
	.long	87                              ; 0x57
	.long	80                              ; 0x50
	.long	14                              ; 0xe
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_KALMIA_HEADER_LENGTH,4,2       ; @KALMIA_HEADER_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received expected unknown frame header: %6phC. Package length: %i\n"

l_.str.1:                               ; @.str.1
	.asciz	"Received unknown frame header: %6phC. Package length: %i\n"

l_.str.2:                               ; @.str.2
	.asciz	"Received header: %6phC. Package length: %i\n"

l_.str.3:                               ; @.str.3
	.asciz	"Correct package length #%i"

l_.str.4:                               ; @.str.4
	.asciz	"End header: %6phC. Package length: %i\n"

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