	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redrat3_read_packet_start
_redrat3_read_packet_start:             ## @redrat3_read_packet_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	8(%rbx), %edi
	callq	_be16_to_cpu
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	callq	_be16_to_cpu
	cmpl	$5, %r15d
	jb	LBB0_1
## %bb.8:
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_1:
	cmpl	$128, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	cmpl	$12, %r14d
	jb	LBB0_7
## %bb.4:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	movq	%r12, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_redrat3_dump_fw_error          ## TAILCALL
LBB0_5:
	leaq	16(%r12), %rdi
	movq	8(%r12), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, (%r12)
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_6:
	movl	4(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet length %u too large\n"

L_.str.1:                               ## @.str.1
	.asciz	"bytes_read %d, pktlen %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"ignoring packet with type 0x%02x, len of %d, 0x%02x\n"

	.no_dead_strip	_redrat3_read_packet_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redrat3_read_packet_start
_redrat3_read_packet_start:             ; @redrat3_read_packet_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x22, #8]
	bl	_be16_to_cpu
	mov	x21, x0
	ldr	w0, [x22, #4]
	bl	_be16_to_cpu
	cmp	w21, #5
	b.lo	LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dev_warn
LBB0_2:
	mov	x2, x0
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w2, #129
	b.ne	LBB0_7
; %bb.4:
	cmp	w19, #12
	b.lo	LBB0_8
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_be16_to_cpu
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_redrat3_dump_fw_error
LBB0_6:
	add	x0, x20, #16
	ldr	x1, [x20, #8]
	mov	x2, x19
	bl	_memcpy
	str	w19, [x20]
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dev_dbg
LBB0_7:
	ldr	w0, [x20, #4]
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x19
	bl	_dev_dbg
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet length %u too large\n"

l_.str.1:                               ; @.str.1
	.asciz	"bytes_read %d, pktlen %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"ignoring packet with type 0x%02x, len of %d, 0x%02x\n"

	.no_dead_strip	_redrat3_read_packet_start
.subsections_via_symbols
