	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ims_pcu_process_data
_ims_pcu_process_data:                  ## @ims_pcu_process_data
	.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
	cmpl	$0, (%rsi)
	jle	LBB0_21
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	movq	_IMS_PCU_MIN_PACKET_LEN@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 12(%rbx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, 12(%rbx)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rcx
	movq	32(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 32(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	addl	%eax, 24(%rbx)
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_21
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %eax
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_20
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbx), %edi
	movq	32(%rbx), %rdx
	movq	%r13, %rsi
	callq	_dev_warn
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$1, 8(%rbx)
	movq	$0, 32(%rbx)
	movl	$0, 24(%rbx)
	jmp	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 12(%rbx)
	jmp	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rdx
	cmpq	(%r15), %rdx
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 24(%rbx)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_ims_pcu_handle_response
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%rbx)
	movq	$0, 32(%rbx)
	jmp	LBB0_20
LBB0_21:
	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	"Unexpected STX at byte %d, discarding old data\n"

	.comm	_IMS_PCU_MIN_PACKET_LEN,8,3     ## @IMS_PCU_MIN_PACKET_LEN
L_.str.1:                               ## @.str.1
	.asciz	"Short packet received (%d bytes), ignoring\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid checksum in packet (%d bytes), ignoring\n"

	.no_dead_strip	_ims_pcu_process_data
.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 ims_pcu_process_data
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ims_pcu_process_data:                  ; @ims_pcu_process_data
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -88
	.cfi_offset b9, -96
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x24, #0
	mov	w25, #1
Lloh0:
	adrp	x26, _IMS_PCU_MIN_PACKET_LEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IMS_PCU_MIN_PACKET_LEN@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x20, #12]
	cbz	w10, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x20, #12]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x20, #16]
	ldr	x10, [x20, #32]
	add	x11, x10, #1
	str	x11, [x20, #32]
	str	w8, [x9, x10, lsl #2]
	ldr	w9, [x20, #24]
	add	w8, w9, w8
	str	w8, [x20, #24]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.ge	LBB0_21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8, x24, lsl #2]
	ldr	w9, [x20, #8]
	cbnz	w9, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #128
	b.ne	LBB0_5
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #130
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #129
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w9, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20, #40]
	ldr	x2, [x20, #32]
	mov	x1, x23
	bl	_dev_warn
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	str	d8, [x20, #8]
	str	xzr, [x20, #32]
	str	wzr, [x20, #24]
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w25, [x20, #12]
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x20, #32]
	ldr	x8, [x26]
	cmp	x2, x8
	b.ge	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20, #40]
	mov	x1, x21
	bl	_dev_warn
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20, #40]
	mov	x1, x22
	bl	_dev_warn
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_ims_pcu_handle_response
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x20, #8]
	str	xzr, [x20, #32]
	b	LBB0_5
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected STX at byte %d, discarding old data\n"

	.comm	_IMS_PCU_MIN_PACKET_LEN,8,3     ; @IMS_PCU_MIN_PACKET_LEN
l_.str.1:                               ; @.str.1
	.asciz	"Short packet received (%d bytes), ignoring\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid checksum in packet (%d bytes), ignoring\n"

	.no_dead_strip	_ims_pcu_process_data
.subsections_via_symbols
