	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upgrade_stco_atom
_upgrade_stco_atom:                     ## @upgrade_stco_atom
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rsi), %rdi
	addq	$4, %rdi
	callq	_BE_32
	movl	%eax, %r15d
	movl	(%r12), %edi
	movq	(%r14), %rsi
	movslq	8(%r14), %rax
	subq	%rax, %rsi
	leal	8(%rax), %edx
	callq	_memcpy
	movl	(%r12), %edi
	addl	$4, %edi
	movq	_CO64_ATOM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AV_WB32
	movl	(%r12), %edi
	movl	8(%r14), %esi
	leal	(%rsi,%r15,8), %edx
	addl	$8, %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_set_atom_size
	movl	8(%r14), %eax
	movl	(%r12), %ecx
	addl	%ecx, %eax
	addl	$8, %eax
	movl	%eax, (%r12)
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movq	(%r14), %rbx
	shll	$2, %r15d
	movslq	%r15d, %rax
	leaq	(%rax,%rbx), %r14
	addq	$8, %r14
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_BE_32
	movslq	4(%r12), %rcx
	movslq	%eax, %rsi
	subq	%rcx, %rsi
	addq	8(%r12), %rsi
	movl	(%r12), %edi
	callq	_AV_WB64
	addl	$8, (%r12)
	addq	$4, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CO64_ATOM,4,2                  ## @CO64_ATOM
	.no_dead_strip	_upgrade_stco_atom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upgrade_stco_atom
_upgrade_stco_atom:                     ; @upgrade_stco_atom
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	add	x0, x8, #4
	bl	_BE_32
	mov	x21, x0
	ldr	w0, [x19]
	ldr	x8, [x20]
	ldrsw	x9, [x20, #8]
	sub	x1, x8, x9
	add	w2, w9, #8
	bl	_memcpy
	ldr	w8, [x19]
	add	w0, w8, #4
Lloh0:
	adrp	x8, _CO64_ATOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CO64_ATOM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_AV_WB32
	ldr	w0, [x19]
	ldr	w1, [x20, #8]
	add	w8, w1, w21, lsl #3
	add	w2, w8, #8
	bl	_set_atom_size
	ldr	w8, [x20, #8]
	ldr	w9, [x19]
	add	w8, w8, w9
	add	w8, w8, #8
	str	w8, [x19]
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	lsl	w9, w21, #2
	add	x9, x8, w9, sxtw
	add	x21, x9, #8
	add	x20, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_BE_32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19, #8]
	ldp	w0, w10, [x19]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	sub	x8, x8, x10
	add	x1, x9, x8
	bl	_AV_WB64
	ldr	w8, [x19]
	add	w8, w8, #8
	str	w8, [x19]
	add	x20, x20, #4
	cmp	x20, x21
	b.lo	LBB0_2
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CO64_ATOM,4,2                  ; @CO64_ATOM
	.no_dead_strip	_upgrade_stco_atom
.subsections_via_symbols
