	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_res_nameW
_get_res_nameW:                         ## @get_res_nameW
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_IS_INTRESOURCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_LOWORD
	movl	%eax, %edi
	callq	_ULongToPtr
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_2:
	cmpb	$35, (%rbx)
	jne	LBB0_7
## %bb.3:
	incq	%rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_RtlInitUnicodeString
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_RtlUnicodeStringToInteger
	movq	_STATUS_SUCCESS@GOTPCREL(%rip), %r15
	movq	_STATUS_INVALID_PARAMETER@GOTPCREL(%rip), %rbx
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.4:
	movl	-28(%rbp), %edi
	callq	_HIWORD
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	-28(%rbp), %edi
	callq	_ULongToPtr
	movq	%rax, (%r14)
	movq	%r15, %rbx
LBB0_6:
	movq	(%rbx), %rax
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_RtlCreateUnicodeString
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_RtlUpcaseUnicodeString
LBB0_8:
	movq	_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_SUCCESS,8,3             ## @STATUS_SUCCESS
	.comm	_STATUS_INVALID_PARAMETER,8,3   ## @STATUS_INVALID_PARAMETER
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_get_res_nameW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_res_nameW
_get_res_nameW:                         ; @get_res_nameW
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_IS_INTRESOURCE
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_LOWORD
LBB0_2:
	bl	_ULongToPtr
	str	x0, [x19]
	b	LBB0_8
LBB0_3:
	ldrb	w8, [x20]
	cmp	w8, #35
	b.ne	LBB0_7
; %bb.4:
	add	x1, x20, #1
	mov	x0, x19
	bl	_RtlInitUnicodeString
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #10
	bl	_RtlUnicodeStringToInteger
Lloh0:
	adrp	x8, _STATUS_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_HIWORD
	cbz	x0, LBB0_10
LBB0_6:
Lloh3:
	adrp	x8, _STATUS_INVALID_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS_INVALID_PARAMETER@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_RtlCreateUnicodeString
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x19
	bl	_RtlUpcaseUnicodeString
LBB0_8:
Lloh8:
	adrp	x8, _STATUS_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STATUS_SUCCESS@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	ldr	w0, [sp, #12]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_SUCCESS,8,3             ; @STATUS_SUCCESS
	.comm	_STATUS_INVALID_PARAMETER,8,3   ; @STATUS_INVALID_PARAMETER
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_get_res_nameW
.subsections_via_symbols
