	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpi_receive_802_11
_mpi_receive_802_11:                    ## @mpi_receive_802_11
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	leaq	4(%r15), %rbx
	movl	8(%rax), %esi
	leaq	-64(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy_fromio
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	-72(%rbp), %rdi
	callq	_le16_to_cpu
	testb	$2, %al
	je	LBB0_2
## %bb.1:
	movq	$0, -80(%rbp)
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	-80(%rbp), %rdi
	jmp	LBB0_5
LBB0_4:
	movq	$0, -80(%rbp)
	xorl	%edi, %edi
LBB0_5:
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	_AIRO_DEF_MTU@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_7
## %bb.6:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_airo_print_err
	cmpl	$0, -64(%rbp)
	jne	LBB0_17
	jmp	LBB0_16
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.8:
	addq	$28, %r15
	movq	%r15, %rdi
	callq	_get_unaligned
	movl	%eax, %edi
	callq	_header_len
	movl	%eax, %r13d
	leal	(%rbx,%r13), %edi
	addl	$2, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movl	%ebx, %esi
	addl	%r13d, %esi
	movq	%rax, %rdi
	callq	_skb_put
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movslq	%r13d, %rcx
	leaq	(%r15,%rcx), %rax
	cmpl	$24, %r13d
	movq	%rcx, %r13
	leaq	6(%r15,%rcx), %r15
	cmovneq	%rax, %r15
	movq	%r15, %rdi
	callq	_get_unaligned_le16
	addq	$4, %r15
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$8, %eax
	jg	LBB0_13
## %bb.12:
	cltq
	addq	%rax, %r15
	jmp	LBB0_14
LBB0_9:
	movq	16(%r14), %rax
	incl	4(%rax)
LBB0_15:
	cmpl	$0, -64(%rbp)
	jne	LBB0_17
LBB0_16:
	movl	$1, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	_PKTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	(%r14), %rax
	movl	8(%rax), %edi
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy_toio
LBB0_17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_airo_print_err
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_skb_reset_mac_header
	movq	_PACKET_OTHERHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	8(%r14), %rax
	movq	%rax, 8(%r12)
	movq	_ETH_P_802_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 4(%r12)
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_netif_rx
	cmpl	$0, -64(%rbp)
	jne	LBB0_17
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AIRO_DEF_MTU,4,2               ## @AIRO_DEF_MTU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad size %d"

L_.str.1:                               ## @.str.1
	.asciz	"gaplen too big. Problems will follow..."

	.comm	_PACKET_OTHERHOST,4,2           ## @PACKET_OTHERHOST
	.comm	_ETH_P_802_2,4,2                ## @ETH_P_802_2
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_PKTSIZE,4,2                    ## @PKTSIZE
	.comm	_IW_QUAL_DBM,4,2                ## @IW_QUAL_DBM
	.comm	_IW_QUAL_LEVEL_UPDATED,4,2      ## @IW_QUAL_LEVEL_UPDATED
	.comm	_IW_QUAL_QUAL_UPDATED,4,2       ## @IW_QUAL_QUAL_UPDATED
	.no_dead_strip	_mpi_receive_802_11
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpi_receive_802_11
_mpi_receive_802_11:                    ; @mpi_receive_802_11
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
	add	x20, x21, #4
	ldr	w1, [x8, #8]
	add	x0, sp, #32
	mov	w2, #16
	bl	_memcpy_fromio
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	ldr	x0, [sp, #24]
	bl	_le16_to_cpu
	tbz	w0, #1, LBB0_2
; %bb.1:
	str	xzr, [sp, #16]
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [sp, #16]
	b	LBB0_5
LBB0_4:
	mov	x0, #0
	str	xzr, [sp, #16]
LBB0_5:
	bl	_le16_to_cpu
	mov	x20, x0
Lloh0:
	adrp	x8, _AIRO_DEF_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AIRO_DEF_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_airo_print_err
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_15
	b	LBB0_14
LBB0_7:
	cbz	w20, LBB0_13
; %bb.8:
	add	x23, x21, #28
	mov	x0, x23
	bl	_get_unaligned
	bl	_header_len
	mov	x24, x0
	add	w22, w0, w20
	add	w0, w22, #2
	bl	_dev_alloc_skb
	cbz	x0, LBB0_12
; %bb.9:
	mov	x21, x0
	mov	x1, x22
	bl	_skb_put
	mov	x22, x0
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	sxtw	x25, w24
	cmp	w24, #24
	mov	w8, #6
	csel	x8, x8, xzr, eq
	add	x9, x23, x25
	add	x23, x9, x8
	mov	x0, x23
	bl	_get_unaligned_le16
	add	x23, x23, #4
	cbz	w0, LBB0_17
; %bb.10:
	cmp	w0, #8
	b.gt	LBB0_16
; %bb.11:
	add	x23, x23, w0, sxtw
	b	LBB0_17
LBB0_12:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_13:
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_15
LBB0_14:
	mov	w8, #1
Lloh5:
	adrp	x9, _PKTSIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PKTSIZE@GOTPAGEOFF]
	str	xzr, [sp, #40]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	add	x1, sp, #32
	mov	w2, #16
	bl	_memcpy_toio
LBB0_15:
	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
	add	sp, sp, #128
	ret
LBB0_16:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_airo_print_err
LBB0_17:
	add	x0, x22, x25
	mov	x1, x23
	mov	x2, x20
	bl	_memcpy
	mov	x0, x21
	bl	_skb_reset_mac_header
Lloh10:
	adrp	x8, _PACKET_OTHERHOST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PACKET_OTHERHOST@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	x8, [x19, #8]
	str	x8, [x21, #8]
Lloh13:
	adrp	x8, _ETH_P_802_2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_P_802_2@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_htons
Lloh16:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	w8, w0, [x21]
	mov	x0, x21
	bl	_netif_rx
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_15
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AIRO_DEF_MTU,4,2               ; @AIRO_DEF_MTU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad size %d"

l_.str.1:                               ; @.str.1
	.asciz	"gaplen too big. Problems will follow..."

	.comm	_PACKET_OTHERHOST,4,2           ; @PACKET_OTHERHOST
	.comm	_ETH_P_802_2,4,2                ; @ETH_P_802_2
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_PKTSIZE,4,2                    ; @PKTSIZE
	.comm	_IW_QUAL_DBM,4,2                ; @IW_QUAL_DBM
	.comm	_IW_QUAL_LEVEL_UPDATED,4,2      ; @IW_QUAL_LEVEL_UPDATED
	.comm	_IW_QUAL_QUAL_UPDATED,4,2       ; @IW_QUAL_QUAL_UPDATED
	.no_dead_strip	_mpi_receive_802_11
.subsections_via_symbols
