	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __load_plugins
___load_plugins:                        ## @__load_plugins
	.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
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rdi
	jmp	LBB0_2
LBB0_3:
	movl	(%r13), %edi
	movq	_R_LIB_TYPE_ASM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	___lib_asm_cb@GOTPCREL(%rip), %rcx
	xorl	%r8d, %r8d
	movq	%r13, %r9
	callq	_r_lib_add_handler
	movl	(%r13), %edi
	movq	_R_LIB_TYPE_ANAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	___lib_anal_cb@GOTPCREL(%rip), %rcx
	xorl	%r8d, %r8d
	movq	%r13, %r9
	callq	_r_lib_add_handler
	movq	_R_LIB_ENV@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_r_sys_getenv
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpb	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_r_lib_opendir
LBB0_6:
	movq	_R2_HOME_PLUGINS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_r_str_home
	movq	%rax, %rbx
	movl	(%r13), %edi
	movq	%rax, %rsi
	callq	_r_lib_opendir
	movq	%rbx, %rdi
	callq	_free
	movq	_R2_PLUGINS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_r_str_r2_prefix
	movq	%rax, %r15
	movq	_R2_EXTRAS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_r_str_r2_prefix
	movq	%rax, %r12
	movq	_R2_BINDINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_r_str_r2_prefix
	movq	%rax, %rbx
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_r_lib_opendir
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_r_lib_opendir
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_r_lib_opendir
	movq	%r15, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	xorl	%edi, %edi
	callq	_free
	movq	%r14, %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RASM2_NOPLUGINS"

	.comm	_R_LIB_TYPE_ASM,4,2             ## @R_LIB_TYPE_ASM
L_.str.1:                               ## @.str.1
	.asciz	"(dis)assembly plugins"

	.comm	___lib_asm_cb,4,2               ## @__lib_asm_cb
	.comm	_R_LIB_TYPE_ANAL,4,2            ## @R_LIB_TYPE_ANAL
L_.str.2:                               ## @.str.2
	.asciz	"analysis/emulation plugins"

	.comm	___lib_anal_cb,4,2              ## @__lib_anal_cb
	.comm	_R_LIB_ENV,8,3                  ## @R_LIB_ENV
	.comm	_R2_HOME_PLUGINS,4,2            ## @R2_HOME_PLUGINS
	.comm	_R2_PLUGINS,4,2                 ## @R2_PLUGINS
	.comm	_R2_EXTRAS,4,2                  ## @R2_EXTRAS
	.comm	_R2_BINDINGS,4,2                ## @R2_BINDINGS
	.no_dead_strip	___load_plugins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __load_plugins
___load_plugins:                        ; @__load_plugins
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_sys_getenv
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _R_LIB_TYPE_ASM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_LIB_TYPE_ASM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh7:
	adrp	x3, ___lib_asm_cb@GOTPAGE
Lloh8:
	ldr	x3, [x3, ___lib_asm_cb@GOTPAGEOFF]
	mov	x4, #0
	mov	x5, x19
	bl	_r_lib_add_handler
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _R_LIB_TYPE_ANAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R_LIB_TYPE_ANAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
Lloh14:
	adrp	x3, ___lib_anal_cb@GOTPAGE
Lloh15:
	ldr	x3, [x3, ___lib_anal_cb@GOTPAGEOFF]
	mov	x4, #0
	mov	x5, x19
	bl	_r_lib_add_handler
Lloh16:
	adrp	x8, _R_LIB_ENV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _R_LIB_ENV@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	bl	_r_sys_getenv
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldrb	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_r_lib_opendir
LBB0_4:
Lloh19:
	adrp	x8, _R2_HOME_PLUGINS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _R2_HOME_PLUGINS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_r_str_home
	mov	x21, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_r_lib_opendir
	mov	x0, x21
	bl	_free
Lloh22:
	adrp	x8, _R2_PLUGINS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _R2_PLUGINS@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_r_str_r2_prefix
	mov	x21, x0
Lloh25:
	adrp	x8, _R2_EXTRAS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _R2_EXTRAS@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_r_str_r2_prefix
	mov	x22, x0
Lloh28:
	adrp	x8, _R2_BINDINGS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _R2_BINDINGS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_r_str_r2_prefix
	mov	x23, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_r_lib_opendir
	ldr	w0, [x19]
	mov	x1, x22
	bl	_r_lib_opendir
	ldr	w0, [x19]
	mov	x1, x23
	bl	_r_lib_opendir
	mov	x0, x21
	bl	_free
	mov	x0, x22
	bl	_free
	mov	x0, x23
	bl	_free
	mov	x0, #0
	bl	_free
	mov	x0, x20
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RASM2_NOPLUGINS"

	.comm	_R_LIB_TYPE_ASM,4,2             ; @R_LIB_TYPE_ASM
l_.str.1:                               ; @.str.1
	.asciz	"(dis)assembly plugins"

	.comm	___lib_asm_cb,4,2               ; @__lib_asm_cb
	.comm	_R_LIB_TYPE_ANAL,4,2            ; @R_LIB_TYPE_ANAL
l_.str.2:                               ; @.str.2
	.asciz	"analysis/emulation plugins"

	.comm	___lib_anal_cb,4,2              ; @__lib_anal_cb
	.comm	_R_LIB_ENV,8,3                  ; @R_LIB_ENV
	.comm	_R2_HOME_PLUGINS,4,2            ; @R2_HOME_PLUGINS
	.comm	_R2_PLUGINS,4,2                 ; @R2_PLUGINS
	.comm	_R2_EXTRAS,4,2                  ; @R2_EXTRAS
	.comm	_R2_BINDINGS,4,2                ; @R2_BINDINGS
	.no_dead_strip	___load_plugins
.subsections_via_symbols
