	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_string
_load_string:                           ## @load_string
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r13d
	movl	%edi, %r12d
	movl	%esi, %edi
	callq	_HIWORD
	movl	%r13d, %ebx
	negl	%ebx
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	cmovnel	%r13d, %ebx
	movl	%ebx, %edi
	sarl	$4, %edi
	callq	_LOWORD
	leaq	1(%rax), %rdi
	callq	_MAKEINTRESOURCEW
	movq	_RT_STRING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_FindResourceW
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_LoadResource
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	movl	%eax, %edi
	callq	_LockResource
	movl	%ebx, %ecx
	andl	$15, %ecx
	je	LBB0_9
## %bb.3:
	leal	-1(%rcx), %edx
	andl	$3, %ebx
	je	LBB0_7
## %bb.4:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rax), %rdi
	leaq	(%rax,%rdi,4), %rax
	addq	$4, %rax
	incl	%esi
	cmpl	%esi, %ebx
	jne	LBB0_5
## %bb.6:
	subl	%esi, %ecx
LBB0_7:
	cmpl	$3, %edx
	jb	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rax), %rdx
	leaq	(%rax,%rdx,4), %rsi
	movslq	4(%rax,%rdx,4), %rax
	leaq	(%rsi,%rax,4), %rdx
	addq	$4, %rdx
	movslq	8(%rsi,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rsi
	addq	$4, %rsi
	movslq	8(%rdx,%rax,4), %rax
	leaq	(%rsi,%rax,4), %rax
	addq	$8, %rax
	addl	$-4, %ecx
	jne	LBB0_8
LBB0_9:
	movl	(%rax), %ecx
	testq	%r15, %r15
	je	LBB0_10
## %bb.11:
	leal	-1(%r14), %r13d
	cmpl	%r14d, %ecx
	cmovll	%ecx, %r13d
	testl	%r13d, %r13d
	js	LBB0_13
## %bb.12:
	addq	$4, %rax
	movl	%r13d, %ebx
	leal	(,%r13,4), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_memcpy
	movl	$0, (%r15,%rbx,4)
	jmp	LBB0_13
LBB0_10:
	movl	%ecx, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_STRING,8,3                  ## @RT_STRING
	.no_dead_strip	_load_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_string
_load_string:                           ; @load_string
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_HIWORD
	mov	w8, #65535
	cmp	w0, w8
	cneg	w22, w22, eq
	asr	w0, w22, #4
	bl	_LOWORD
	add	x0, x0, #1
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
Lloh0:
	adrp	x8, _RT_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT_STRING@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_FindResourceW
	cbz	w0, LBB0_7
; %bb.1:
	mov	x1, x0
	mov	x0, x21
	bl	_LoadResource
	cbz	w0, LBB0_7
; %bb.2:
	bl	_LockResource
	ands	w8, w22, #0xf
	b.eq	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x0]
	add	x9, x0, x9, lsl #2
	add	x0, x9, #4
	subs	w8, w8, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w21, [x0]
	cbz	x19, LBB0_8
; %bb.5:
	sub	w8, w20, #1
	cmp	w21, w20
	csel	w21, w21, w8, lt
	tbnz	w21, #31, LBB0_8
; %bb.6:
	add	x1, x0, #4
	lsl	w2, w21, #2
	mov	x0, x19
	bl	_memcpy
	str	wzr, [x19, w21, uxtw #2]
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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	_RT_STRING,8,3                  ; @RT_STRING
	.no_dead_strip	_load_string
.subsections_via_symbols
