	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_model1_to_5
_update_model1_to_5:                    ## @update_model1_to_5
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movslq	(%rdi), %rbx
	movl	%ebx, %r14d
	movl	%ebx, -80(%rbp)
	testq	%rbx, %rbx
	jg	LBB0_1
## %bb.7:
	movq	%rdi, %r15
	movq	_uint8_t@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_cmpbytes@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_AV_QSORT
	movl	$256, %eax                      ## imm = 0x100
	subq	%rbx, %rax
	movl	$5, -52(%rbp)
	movq	%rax, -48(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	movl	$48, %edx
	callq	_memcpy
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$4, %ebx
	jb	LBB0_2
## %bb.3:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_update_model1_to_5.cold.1
	testb	$1, %al
	jne	LBB0_6
## %bb.4:
	movq	-32(%rbp), %rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_5
LBB0_6:
	movq	_uint8_t@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_cmpbytes@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_AV_QSORT
	ud2
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function update_model1_to_5.cold.1
_update_model1_to_5.cold.1:             ## @update_model1_to_5.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	andl	$-4, %eax
	movq	%rax, (%rsi)
	leaq	-4(%rax), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	movl	%edx, %ecx
	andl	$7, %ecx
	cmpq	$28, %rsi
	jb	LBB1_3
## %bb.1:
	andq	$-8, %rdx
LBB1_2:                                 ## =>This Inner Loop Header: Depth=1
	addq	$-8, %rdx
	jne	LBB1_2
LBB1_3:
	testq	%rcx, %rcx
	je	LBB1_5
LBB1_4:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rcx
	jne	LBB1_4
LBB1_5:
	cmpq	%rdi, %rax
	jne	LBB1_8
## %bb.6:
	movb	$1, %al
	jmp	LBB1_7
LBB1_8:
	xorl	%eax, %eax
LBB1_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uint8_t,4,2                    ## @uint8_t
	.comm	_cmpbytes,4,2                   ## @cmpbytes
	.no_dead_strip	_update_model1_to_5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_model1_to_5
_update_model1_to_5:                    ; @update_model1_to_5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldrsw	x20, [x0]
	and	x1, x20, #0xffffffff
	str	w20, [sp]
	cmp	w20, #0
	b.gt	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _uint8_t@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uint8_t@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _cmpbytes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cmpbytes@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, #0
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_AV_QSORT
	mov	w8, #256
	sub	x8, x8, x20
	mov	w9, #5
	str	w9, [sp, #28]
	str	x8, [sp, #32]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #48
	bl	_memcpy
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	cmp	w20, #8
	b.hs	LBB0_4
; %bb.3:
	mov	x8, #0
	b	LBB0_7
LBB0_4:
	and	x8, x1, #0xfffffff8
	mov	x9, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	subs	x9, x9, #8
	b.ne	LBB0_5
; %bb.6:
	cmp	x8, x1
	b.eq	LBB0_9
LBB0_7:
	lsl	x9, x8, #3
	sub	x8, x1, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
Lloh6:
	adrp	x8, _uint8_t@GOTPAGE
Lloh7:
	ldr	x8, [x8, _uint8_t@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _cmpbytes@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cmpbytes@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, #0
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_AV_QSORT
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_uint8_t,4,2                    ; @uint8_t
	.comm	_cmpbytes,4,2                   ; @cmpbytes
	.no_dead_strip	_update_model1_to_5
.subsections_via_symbols
