	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_bin_wasm_get_custom_name_entries
_r_bin_wasm_get_custom_name_entries:    ## @r_bin_wasm_get_custom_name_entries
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_r_list_new
	movq	%rax, %r14
	movq	(%r15), %r15
	movq	(%rbx), %rsi
	movq	_R_BUF_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_r_buf_seek
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	(%rax,%rcx), %rbx
	decq	%rbx
	movq	%r15, %rdi
	callq	_r_buf_size
	cmpq	%rax, %rbx
	jg	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_r_buf_tell
	cmpq	%rbx, %rax
	jge	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_parse_custom_name_entry
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_r_list_append
	testl	%eax, %eax
	jne	LBB0_1
LBB0_4:
	movq	%r14, %rdi
	callq	_r_list_free
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_BUF_SET,4,2                  ## @R_BUF_SET
	.no_dead_strip	_r_bin_wasm_get_custom_name_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_bin_wasm_get_custom_name_entries
_r_bin_wasm_get_custom_name_entries:    ; @r_bin_wasm_get_custom_name_entries
	.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, x1
	mov	x20, x0
	bl	_r_list_new
	mov	x19, x0
	ldr	x20, [x20]
	ldr	x1, [x21]
Lloh0:
	adrp	x8, _R_BUF_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_BUF_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_r_buf_seek
	ldp	x8, x9, [x21]
	add	x8, x8, x9
	sub	x21, x8, #1
	mov	x0, x20
	bl	_r_buf_size
	cmp	x21, x0
	b.gt	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_r_buf_tell
	cmp	x0, x21
	b.ge	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_parse_custom_name_entry
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_r_list_append
	cbnz	w0, LBB0_1
LBB0_4:
	mov	x0, x19
	bl	_r_list_free
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R_BUF_SET,4,2                  ; @R_BUF_SET
	.no_dead_strip	_r_bin_wasm_get_custom_name_entries
.subsections_via_symbols
