	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_modules
_search_modules:                        ## @search_modules
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movl	(%rdx), %edi
	movl	12(%r14), %esi
	callq	_heim_dict_copy_value
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rax, %rbx
	movq	(%rax), %r12
	testq	%r12, %r12
	jne	LBB0_9
	jmp	LBB0_11
LBB0_1:
	cmpq	$0, 8(%r15)
	je	LBB0_12
## %bb.2:
	movq	_plug_free@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$16, %edi
	callq	_heim_alloc
	movq	%rax, %rbx
	movq	8(%r15), %rdi
	movl	20(%r14), %esi
	callq	_dlsym
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	addq	$8, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	$0, (%rbx)
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movl	(%r15), %edi
	movl	12(%r14), %esi
	movq	%rbx, %rdx
	callq	_heim_dict_add_value
	testq	%r12, %r12
	je	LBB0_11
LBB0_9:
	movq	8(%r12), %rax
	cmpq	(%r14), %rax
	jl	LBB0_11
## %bb.10:
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_heim_array_append_value
LBB0_11:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_heim_release                   ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"struct-plug"

	.comm	_plug_free,4,2                  ## @plug_free
	.no_dead_strip	_search_modules
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search_modules
_search_modules:                        ; @search_modules
	.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	x21, x2
	mov	x19, x0
	ldr	w0, [x2]
	ldr	w1, [x19, #12]
	bl	_heim_dict_copy_value
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x22, [x0]
	cbnz	x22, LBB0_7
	b	LBB0_9
LBB0_2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _plug_free@GOTPAGE
Lloh1:
	ldr	x8, [x8, _plug_free@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #16
	bl	_heim_alloc
	mov	x20, x0
	ldr	x0, [x21, #8]
	ldr	w1, [x19, #20]
	bl	_dlsym
	mov	x22, x0
	str	x0, [x20]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x22]
	ldr	w0, [x19, #16]
	add	x1, x20, #8
	blr	x8
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, #0
	str	xzr, [x20]
LBB0_6:
	ldr	w0, [x21]
	ldr	w1, [x19, #12]
	mov	x2, x20
	bl	_heim_dict_add_value
	cbz	x22, LBB0_9
LBB0_7:
	ldr	x8, [x22, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_heim_array_append_value
LBB0_9:
	mov	x0, x20
	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
	b	_heim_release
LBB0_10:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"struct-plug"

	.comm	_plug_free,4,2                  ; @plug_free
	.no_dead_strip	_search_modules
.subsections_via_symbols
