	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcs_unwrap_mir
_mcs_unwrap_mir:                        ## @mcs_unwrap_mir
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leal	-2(%rbx), %r13d
	xorl	%edi, %edi
	cmpl	$3, %edx
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movl	24(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %edx
	callq	_IRDA_ERROR
	movq	(%r14), %rax
	incl	16(%rax)
	addq	$20, %rax
	movl	$1, %r13d
	jmp	LBB0_7
LBB0_2:
	movl	$-1, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_irda_calc_crc16
	movq	_GOOD_FCS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	decl	%ebx
	movl	%ebx, %edi
	callq	_dev_alloc_skb
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rax
	addq	$8, %rax
	movl	$1, %r13d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_IRDA_ERROR
	movq	(%r14), %rax
	incl	16(%rax)
	addq	$12, %rax
	movl	$1, %r13d
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_skb_reserve
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_skb_copy_to_linear_data
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	%r12, %rdi
	callq	_skb_reset_mac_header
	movq	_ETH_P_IRDA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 8(%r12)
	movq	(%r14), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_netif_rx
	movq	(%r14), %rax
	incl	4(%rax)
LBB0_7:
	addl	%r13d, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s short frame length %d\n"

	.comm	_GOOD_FCS,4,2                   ## @GOOD_FCS
L_.str.1:                               ## @.str.1
	.asciz	"crc error calc 0x%x len %d\n"

	.comm	_ETH_P_IRDA,4,2                 ## @ETH_P_IRDA
	.no_dead_strip	_mcs_unwrap_mir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcs_unwrap_mir
_mcs_unwrap_mir:                        ; @mcs_unwrap_mir
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	sub	w19, w2, #2
	cmp	w2, #3
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w1, [x8, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_IRDA_ERROR
	ldr	x8, [x20]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
	add	x8, x8, #20
	mov	w19, #1
	b	LBB0_7
LBB0_2:
	mov	w0, #-1
	mov	x1, x21
	mov	x2, x22
	bl	_irda_calc_crc16
Lloh2:
	adrp	x8, _GOOD_FCS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GOOD_FCS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	sub	w0, w22, #1
	bl	_dev_alloc_skb
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x20]
	add	x8, x8, #8
	mov	w19, #1
	b	LBB0_7
LBB0_5:
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_IRDA_ERROR
	ldr	x8, [x20]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
	add	x8, x8, #12
	mov	w19, #1
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	mov	w1, #1
	bl	_skb_reserve
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_skb_copy_to_linear_data
	mov	x0, x22
	mov	x1, x19
	bl	_skb_put
	mov	x0, x22
	bl	_skb_reset_mac_header
Lloh7:
	adrp	x8, _ETH_P_IRDA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETH_P_IRDA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x22, #8]
	ldr	x8, [x20]
	str	x8, [x22]
	mov	x0, x22
	bl	_netif_rx
	ldr	x8, [x20]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_7:
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s short frame length %d\n"

	.comm	_GOOD_FCS,4,2                   ; @GOOD_FCS
l_.str.1:                               ; @.str.1
	.asciz	"crc error calc 0x%x len %d\n"

	.comm	_ETH_P_IRDA,4,2                 ; @ETH_P_IRDA
	.no_dead_strip	_mcs_unwrap_mir
.subsections_via_symbols
