	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_loadopt
_create_loadopt:                        ## @create_loadopt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	cmpq	$0, 16(%rbp)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 24(%rbp)
	jne	LBB0_2
LBB0_3:
	testq	%r13, %r13
	jne	LBB0_5
## %bb.4:
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_5:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r9, %rdi
	callq	_utf8_to_ucs2
	movq	-48(%rbp), %rax
	movq	24(%rbp), %rcx
	addq	%rbx, %rcx
	addq	%rcx, %rax
	addq	$8, %rax
	cmpq	%r15, %rax
	jbe	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_2:
	movq	_BAD_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_le32enc
	leaq	16(%r12), %rdi
	movq	%rbx, %rsi
	callq	_le16enc
	leaq	32(%r12), %rdi
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
	callq	_memcpy
	movq	-48(%rbp), %rax
	leaq	(%r12,%rax,4), %r14
	addq	$32, %r14
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	leaq	(%r14,%rbx,4), %rbx
	movq	16(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.8:
	movq	24(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_memcpy
	leaq	(%rbx,%r14,4), %rbx
LBB0_10:
	subq	%r12, %rbx
	sarq	$2, %rbx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_BAD_LENGTH,8,3                 ## @BAD_LENGTH
	.no_dead_strip	_create_loadopt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_loadopt
_create_loadopt:                        ; @create_loadopt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x7
	mov	x21, x6
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	stp	xzr, xzr, [sp]
	cbnz	x6, LBB0_2
; %bb.1:
	cbnz	x20, LBB0_6
LBB0_2:
	cbnz	x23, LBB0_4
; %bb.3:
	cbnz	x22, LBB0_6
LBB0_4:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x5
	bl	_utf8_to_ucs2
	ldr	x8, [sp]
	add	x9, x22, x20
	add	x8, x9, x8
	add	x8, x8, #8
	cmp	x8, x25
	b.ls	LBB0_8
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_free
LBB0_6:
Lloh0:
	adrp	x8, _BAD_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BAD_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
LBB0_7:
	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
	add	sp, sp, #96
	ret
LBB0_8:
	mov	x0, x19
	mov	x1, x24
	bl	_le32enc
	add	x0, x19, #16
	mov	x1, x22
	bl	_le16enc
	add	x24, x19, #32
	ldp	x2, x1, [sp]
	mov	x0, x24
	bl	_memcpy
	ldp	x8, x0, [sp]
	add	x24, x24, x8, lsl #2
	bl	_free
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	add	x22, x24, x22, lsl #2
	cbz	x21, LBB0_11
; %bb.9:
	cbz	x20, LBB0_11
; %bb.10:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	add	x22, x22, x20, lsl #2
LBB0_11:
	sub	x8, x22, x19
	asr	x0, x8, #2
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BAD_LENGTH,8,3                 ; @BAD_LENGTH
	.no_dead_strip	_create_loadopt
.subsections_via_symbols
