	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipack_parse_id2
_ipack_parse_id2:                       ## @ipack_parse_id2
	.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
	movq	%rdi, %r12
	movq	24(%rdi), %r15
	movl	12(%r15), %edi
	callq	_be16_to_cpu
	movzbl	%al, %ebx
	shll	$16, %ebx
	movl	16(%r15), %edi
	callq	_be16_to_cpu
	addl	%ebx, %eax
	movl	%eax, (%r12)
	movl	20(%r15), %edi
	callq	_be16_to_cpu
	movl	%eax, 4(%r12)
	movl	40(%r15), %edi
	callq	_be16_to_cpu
	movl	%eax, %ecx
	shrl	%ecx
	andl	$1, %ecx
	movl	%ecx, 8(%r12)
	shrl	$2, %eax
	andl	$1, %eax
	movl	%eax, 12(%r12)
	movq	%r12, %rdi
	callq	_ipack_calc_crc2
	movl	%eax, %r14d
	movl	48(%r15), %edi
	callq	_be16_to_cpu
	xorl	%ecx, %ecx
	cmpl	%eax, %r14d
	sete	%cl
	movl	%ecx, 16(%r12)
	jne	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addq	$20, %r12
	movl	44(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ID CRC invalid found 0x%x, expected 0x%x.\n"

	.no_dead_strip	_ipack_parse_id2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ipack_parse_id2
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	4294967294                      ; 0xfffffffe
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ipack_parse_id2:                       ; @ipack_parse_id2
	.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	x19, x0
	ldr	x21, [x0, #24]
	ldr	w0, [x21, #12]
	bl	_be16_to_cpu
	ubfiz	w20, w0, #16, #8
	ldr	w0, [x21, #16]
	bl	_be16_to_cpu
	add	w8, w20, w0
	str	w8, [x19]
	ldr	w0, [x21, #20]
	bl	_be16_to_cpu
	str	w0, [x19, #4]
	ldr	w0, [x21, #40]
	bl	_be16_to_cpu
	dup.2s	v0, w0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #1
	and.8b	v0, v0, v1
	str	d0, [x19, #8]
	mov	x0, x19
	bl	_ipack_calc_crc2
	mov	x20, x0
	ldr	w0, [x21, #48]
	bl	_be16_to_cpu
	cmp	w20, w0
	cset	w8, eq
	str	w8, [x19, #16]
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	add	x0, x19, #20
	ldr	w2, [x21, #44]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	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
	b	_dev_warn
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ID CRC invalid found 0x%x, expected 0x%x.\n"

	.no_dead_strip	_ipack_parse_id2
.subsections_via_symbols
