	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osal_dynlib_open               ## -- Begin function osal_dynlib_open
	.p2align	4, 0x90
_osal_dynlib_open:                      ## @osal_dynlib_open
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	%r14, %rdi
	callq	_LoadLibrary
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_M64ERR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_M64ERR_INPUT_ASSERT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %r15d
	movq	_FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movq	_FORMAT_MESSAGE_FROM_SYSTEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_LANG_NEUTRAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SUBLANG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAKELANGID
	leaq	-32(%rbp), %r8
	movq	$0, (%rsp)
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%r9d, %r9d
	callq	_FormatMessage
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-32(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movq	-32(%rbp), %rdi
	callq	_LocalFree
	movq	_M64ERR_INPUT_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M64ERR_INPUT_ASSERT,4,2        ## @M64ERR_INPUT_ASSERT
	.comm	_FORMAT_MESSAGE_ALLOCATE_BUFFER,4,2 ## @FORMAT_MESSAGE_ALLOCATE_BUFFER
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ## @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_LANG_NEUTRAL,4,2               ## @LANG_NEUTRAL
	.comm	_SUBLANG_DEFAULT,4,2            ## @SUBLANG_DEFAULT
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LoadLibrary('%s') error: %s\n"

	.comm	_M64ERR_INPUT_NOT_FOUND,4,2     ## @M64ERR_INPUT_NOT_FOUND
	.comm	_M64ERR_SUCCESS,4,2             ## @M64ERR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osal_dynlib_open               ; -- Begin function osal_dynlib_open
	.p2align	2
_osal_dynlib_open:                      ; @osal_dynlib_open
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_LoadLibrary
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _M64ERR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M64ERR_SUCCESS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _M64ERR_INPUT_ASSERT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M64ERR_INPUT_ASSERT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	bl	_GetLastError
	mov	x20, x0
Lloh4:
	adrp	x8, _FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w21, w9, w8
Lloh10:
	adrp	x8, _LANG_NEUTRAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LANG_NEUTRAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _SUBLANG_DEFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SUBLANG_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_MAKELANGID
	mov	x3, x0
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, #0
	mov	x2, x20
	mov	w5, #0
	mov	x6, #0
	bl	_FormatMessage
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x3, [sp, #8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	x0, [sp, #8]
	bl	_LocalFree
Lloh21:
	adrp	x8, _M64ERR_INPUT_NOT_FOUND@GOTPAGE
Lloh22:
	ldr	x8, [x8, _M64ERR_INPUT_NOT_FOUND@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_M64ERR_INPUT_ASSERT,4,2        ; @M64ERR_INPUT_ASSERT
	.comm	_FORMAT_MESSAGE_ALLOCATE_BUFFER,4,2 ; @FORMAT_MESSAGE_ALLOCATE_BUFFER
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ; @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_LANG_NEUTRAL,4,2               ; @LANG_NEUTRAL
	.comm	_SUBLANG_DEFAULT,4,2            ; @SUBLANG_DEFAULT
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LoadLibrary('%s') error: %s\n"

	.comm	_M64ERR_INPUT_NOT_FOUND,4,2     ; @M64ERR_INPUT_NOT_FOUND
	.comm	_M64ERR_SUCCESS,4,2             ; @M64ERR_SUCCESS
.subsections_via_symbols
