	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_bin_wasm_get_elements        ## -- Begin function r_bin_wasm_get_elements
	.p2align	4, 0x90
_r_bin_wasm_get_elements:               ## @r_bin_wasm_get_elements
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	_R_BIN_WASM_SECTION_ELEMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_r_bin_wasm_get_sections_by_id
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_r_list_first
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_r_bin_wasm_get_element_entries
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_r_list_free
	movq	(%rbx), %rax
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_r_list_free
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_r_list_new                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R_BIN_WASM_SECTION_ELEMENT,4,2 ## @R_BIN_WASM_SECTION_ELEMENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_bin_wasm_get_elements        ; -- Begin function r_bin_wasm_get_elements
	.p2align	2
_r_bin_wasm_get_elements:               ; @r_bin_wasm_get_elements
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x0, [x19]
	cbnz	x0, LBB0_7
; %bb.3:
Lloh0:
	adrp	x9, _R_BIN_WASM_SECTION_ELEMENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _R_BIN_WASM_SECTION_ELEMENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_r_bin_wasm_get_sections_by_id
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	bl	_r_list_first
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, x0
	mov	x0, x19
	bl	_r_bin_wasm_get_element_entries
	str	x0, [x19]
	mov	x0, x20
	bl	_r_list_free
	ldr	x0, [x19]
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	bl	_r_list_free
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_r_list_new
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R_BIN_WASM_SECTION_ELEMENT,4,2 ; @R_BIN_WASM_SECTION_ELEMENT
.subsections_via_symbols
