	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_message
_load_message:                          ## @load_message
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_TRACE
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_GetModuleHandleW
	movq	%rax, %rbx
LBB0_2:
	movq	_RT_MESSAGETABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_RtlFindMessage
	movq	_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	-40(%rbp), %rax
	movq	_MESSAGE_RESOURCE_UNICODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	8(%rax), %rdi
	callq	_strlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r14d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	movq	-40(%rbp), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movq	%rbx, %r12
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %edi
	callq	_RtlNtStatusToDosError
	movl	%eax, %edi
	callq	_SetLastError
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_7:
	movq	_CP_ACP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	8(%rax), %rdx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	(,%r14,4), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %r15
	movl	(%rbx), %edi
	movq	-40(%rbp), %rax
	movq	8(%rax), %rdx
	xorl	%esi, %esi
	movl	$-1, %ecx
	movq	%r15, %r8
	movl	%r14d, %r9d
	callq	_MultiByteToWideChar
	movq	%r15, %r12
LBB0_9:
	movq	%r12, %rdi
	callq	_wine_dbgstr_w
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_10:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"module = %p, id = %08x\n"

	.comm	_RT_MESSAGETABLE,8,3            ## @RT_MESSAGETABLE
	.comm	_STATUS_SUCCESS,4,2             ## @STATUS_SUCCESS
	.comm	_MESSAGE_RESOURCE_UNICODE,4,2   ## @MESSAGE_RESOURCE_UNICODE
	.comm	_CP_ACP,4,2                     ## @CP_ACP
L_.str.1:                               ## @.str.1
	.asciz	"returning %s\n"

	.no_dead_strip	_load_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_message
_load_message:                          ; @load_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	cbnz	x21, LBB0_2
; %bb.1:
	mov	x0, #0
	bl	_GetModuleHandleW
	mov	x21, x0
LBB0_2:
Lloh2:
	adrp	x8, _RT_MESSAGETABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RT_MESSAGETABLE@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, x19
	mov	x3, x20
	bl	_RtlFindMessage
Lloh5:
	adrp	x8, _STATUS_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATUS_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
Lloh8:
	adrp	x10, _MESSAGE_RESOURCE_UNICODE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MESSAGE_RESOURCE_UNICODE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.4:
	ldr	x0, [x8, #8]
	bl	_strlenW
	lsl	w8, w0, #2
	add	w20, w8, #4
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapAlloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x1, [x8, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_memcpy
	b	LBB0_9
LBB0_6:
	bl	_RtlNtStatusToDosError
	bl	_SetLastError
	mov	x19, #0
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x21, _CP_ACP@GOTPAGE
Lloh12:
	ldr	x21, [x21, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x2, [x8, #8]
	mov	w1, #0
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	mov	x20, x0
	bl	_GetProcessHeap
	lsl	w2, w20, #2
	mov	w1, #0
	bl	_HeapAlloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w0, [x21]
	ldr	x8, [sp, #8]
	ldr	x2, [x8, #8]
	mov	w1, #0
	mov	w3, #-1
	mov	x4, x19
	mov	x5, x20
	bl	_MultiByteToWideChar
LBB0_9:
	mov	x0, x19
	bl	_wine_dbgstr_w
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"module = %p, id = %08x\n"

	.comm	_RT_MESSAGETABLE,8,3            ; @RT_MESSAGETABLE
	.comm	_STATUS_SUCCESS,4,2             ; @STATUS_SUCCESS
	.comm	_MESSAGE_RESOURCE_UNICODE,4,2   ; @MESSAGE_RESOURCE_UNICODE
	.comm	_CP_ACP,4,2                     ; @CP_ACP
l_.str.1:                               ; @.str.1
	.asciz	"returning %s\n"

	.no_dead_strip	_load_message
.subsections_via_symbols
