	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ims_pcu_send_command
_ims_pcu_send_command:                  ## @ims_pcu_send_command
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_IMS_PCU_PROTOCOL_STX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rcx
	movl	%eax, (%rcx)
	movl	%esi, 4(%rcx)
	movl	12(%rdi), %eax
	leal	1(%rax), %ecx
	cmpl	$255, %eax
	movl	$257, %edx                      ## imm = 0x101
	cmovnel	%ecx, %edx
	movl	$256, %r12d                     ## imm = 0x100
	cmovnel	%eax, %r12d
	movl	%edx, 12(%rdi)
	movl	%r12d, %edi
	callq	_ims_pcu_byte_needs_escape
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_IMS_PCU_PROTOCOL_DLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r15), %rax
	movl	%ecx, 8(%rax)
	movl	$3, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	(%r15), %rax
	movl	$2, %ebx
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %ecx
	movl	%r12d, (%rax,%rcx,4)
	addl	%r14d, %r12d
	incl	%ebx
	testl	%r13d, %r13d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_4
## %bb.5:
	movl	%r13d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_IMS_PCU_PROTOCOL_DLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	%ebx, %rdx
	incl	%ebx
	movl	%ecx, (%rax,%rdx,4)
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r14,4), %ecx
	movslq	%ebx, %rbx
	movl	%ecx, (%rax,%rbx,4)
	addl	(%rdx,%r14,4), %r12d
	incq	%r14
	incl	%ebx
	cmpq	%r14, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%r14,4), %edi
	callq	_ims_pcu_byte_needs_escape
	movq	%rax, %r15
	cmpq	$1, %rax
	movl	%ebx, %eax
	sbbl	$0, %eax
	addl	$2, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpl	8(%rdi), %eax
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r13d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_ims_pcu_send_cmd_chunk
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_8
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_4:
	xorl	%r13d, %r13d
LBB0_12:
	negl	%r12d
	movl	%r12d, %edi
	callq	_ims_pcu_byte_needs_escape
	movq	%rax, %r14
	cmpq	$1, %rax
	movl	%ebx, %eax
	sbbl	$0, %eax
	addl	$3, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpl	8(%rdi), %eax
	jl	LBB0_15
## %bb.13:
	incl	%r13d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movq	%rdi, %r15
	callq	_ims_pcu_send_cmd_chunk
	testl	%eax, %eax
	je	LBB0_14
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
LBB0_15:
	testq	%r14, %r14
	je	LBB0_16
## %bb.17:
	movq	_IMS_PCU_PROTOCOL_DLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%rdi), %rax
	movslq	%ebx, %rdx
	incl	%ebx
	movl	%ecx, (%rax,%rdx,4)
	jmp	LBB0_18
LBB0_16:
	movq	(%rdi), %rax
LBB0_18:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movslq	%ebx, %rdx
	movl	%r12d, (%rax,%rdx,4)
	movq	_IMS_PCU_PROTOCOL_ETX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leal	2(%rdx), %ecx
	movl	%ebx, 4(%rax,%rdx,4)
	incl	%r13d
	movl	%r13d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ims_pcu_send_cmd_chunk         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMS_PCU_PROTOCOL_STX,4,2       ## @IMS_PCU_PROTOCOL_STX
	.comm	_IMS_PCU_PROTOCOL_DLE,8,3       ## @IMS_PCU_PROTOCOL_DLE
	.comm	_IMS_PCU_PROTOCOL_ETX,4,2       ## @IMS_PCU_PROTOCOL_ETX
	.no_dead_strip	_ims_pcu_send_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ims_pcu_send_command
_ims_pcu_send_command:                  ; @ims_pcu_send_command
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IMS_PCU_PROTOCOL_STX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMS_PCU_PROTOCOL_STX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
	stp	w8, w1, [x9]
	ldr	w8, [x0, #12]
	mov	w9, #257
	mov	w10, #256
	cmp	w8, #255
	csel	w21, w10, w8, eq
	csinc	w8, w9, w8, eq
	str	w8, [x0, #12]
	mov	x0, x21
	bl	_ims_pcu_byte_needs_escape
Lloh3:
	adrp	x25, _IMS_PCU_PROTOCOL_DLE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IMS_PCU_PROTOCOL_DLE@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x9, [x25]
	ldr	x8, [x20]
	str	w9, [x8, #8]
	mov	w9, #3
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20]
	mov	w9, #2
LBB0_3:
	str	w21, [x8, w9, uxtw #2]
	add	w26, w21, w19
	add	w22, w9, #1
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.4:
	mov	w21, #0
	mov	w27, w24
	mov	w28, #1
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	x24, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x25]
	ldr	x8, [x20]
	str	w9, [x8, w22, sxtw #2]
	add	w22, w22, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x23]
	str	w9, [x8, w22, sxtw #2]
	ldr	w8, [x23], #4
	add	w26, w8, w26
	add	w22, w22, #1
	subs	x27, x27, #1
	b.eq	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_ims_pcu_byte_needs_escape
	mov	x24, x0
	cmp	x0, #0
	cinc	w8, w28, ne
	ldr	w9, [x20, #8]
	add	w8, w8, w22
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, #1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_ims_pcu_send_cmd_chunk
	cbnz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w22, #0
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20]
	b	LBB0_7
LBB0_12:
	mov	w21, #0
LBB0_13:
	neg	w23, w26
	mov	x0, x23
	bl	_ims_pcu_byte_needs_escape
	mov	x24, x0
	cmp	x0, #0
	mov	w8, #2
	cinc	w8, w8, ne
	ldr	w9, [x20, #8]
	add	w8, w8, w22
	cmp	w8, w9
	b.lt	LBB0_17
; %bb.14:
	add	w21, w21, #1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_ims_pcu_send_cmd_chunk
	cbz	w0, LBB0_16
LBB0_15:
	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	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w22, #0
LBB0_17:
	cbz	x24, LBB0_19
; %bb.18:
	ldr	x9, [x25]
	ldr	x8, [x20]
	str	w9, [x8, w22, sxtw #2]
	add	w22, w22, #1
	b	LBB0_20
LBB0_19:
	ldr	x8, [x20]
LBB0_20:
	add	x8, x8, w22, sxtw #2
	str	w23, [x8]
Lloh5:
	adrp	x9, _IMS_PCU_PROTOCOL_ETX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IMS_PCU_PROTOCOL_ETX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w3, w22, #2
	str	w9, [x8, #4]
	add	w2, w21, #1
	mov	x0, x20
	mov	x1, x19
	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	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ims_pcu_send_cmd_chunk
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IMS_PCU_PROTOCOL_STX,4,2       ; @IMS_PCU_PROTOCOL_STX
	.comm	_IMS_PCU_PROTOCOL_DLE,8,3       ; @IMS_PCU_PROTOCOL_DLE
	.comm	_IMS_PCU_PROTOCOL_ETX,4,2       ; @IMS_PCU_PROTOCOL_ETX
	.no_dead_strip	_ims_pcu_send_command
.subsections_via_symbols
