	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_ipack
_write_ipack:                           ## @write_ipack
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	l___const.write_ipack.headr+8(%rip), %eax
	movl	%eax, -48(%rbp)
	movq	l___const.write_ipack.headr(%rip), %rax
	movq	%rax, -56(%rbp)
	movl	(%rdi), %edi
	cmpl	$5, %edi
	jg	LBB0_2
## %bb.1:
	movl	4(%r12), %edi
	leaq	-56(%rbp), %rsi
	movl	$3, %edx
	callq	_memcpy
	movl	$6, (%r12)
	movl	$6, %edi
LBB0_2:
	leal	(%rdi,%r14), %eax
	movl	8(%r12), %ebx
	cmpl	%ebx, %eax
	jge	LBB0_4
## %bb.3:
	addl	4(%r12), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	addl	%r14d, (%r12)
	jmp	LBB0_6
LBB0_4:
	subl	%edi, %ebx
	addl	4(%r12), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, (%r12)
	movq	%r12, %rdi
	callq	_send_ipack
	subl	%ebx, %r14d
	jle	LBB0_6
## %bb.5:
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_write_ipack
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.write_ipack.headr
l___const.write_ipack.headr:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1

	.no_dead_strip	_write_ipack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_ipack
_write_ipack:                           ; @write_ipack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.write_ipack.headr@PAGE
Lloh4:
	add	x8, x8, l___const.write_ipack.headr@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #8]
	ldr	w8, [x8, #8]
	str	w8, [sp, #16]
	ldr	w8, [x0]
	cmp	w8, #5
	b.gt	LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	mov	w2, #3
	bl	_memcpy
	mov	w8, #6
	str	w8, [x19]
LBB0_2:
	ldr	w9, [x19, #8]
	add	w10, w8, w21
	cmp	w10, w9
	b.ge	LBB0_4
; %bb.3:
	ldr	w9, [x19, #4]
	add	w0, w9, w8
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	b	LBB0_6
LBB0_4:
	sub	w22, w9, w8
	ldr	w9, [x19, #4]
	add	w0, w9, w8
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, w22
	str	w8, [x19]
	mov	x0, x19
	bl	_send_ipack
	sub	w2, w21, w22
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.5:
	add	x1, x20, w22, sxtw #2
	mov	x0, x19
	bl	_write_ipack
LBB0_6:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.write_ipack.headr
l___const.write_ipack.headr:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1

	.no_dead_strip	_write_ipack
.subsections_via_symbols
