	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_pkg_enum_buf
_ice_pkg_enum_buf:                      ## @ice_pkg_enum_buf
	.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
	movq	%rsi, %rbx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_ice_find_buf_table
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	$0, (%rbx)
	movq	(%rax), %rdi
	jmp	LBB0_5
LBB0_3:
	movq	(%rbx), %r14
	movq	8(%rbx), %rax
	incq	%r14
	movq	%r14, (%rbx)
	movl	8(%rax), %edi
	callq	_le32_to_cpu
	cmpq	%rax, %r14
	jge	LBB0_6
## %bb.4:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rax
	addq	(%rax), %rdi
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ice_pkg_val_buf                ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ice_pkg_enum_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_pkg_enum_buf
_ice_pkg_enum_buf:                      ; @ice_pkg_enum_buf
	.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
	mov	x19, x1
	cbz	x0, LBB0_3
; %bb.1:
	bl	_ice_find_buf_table
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.2:
	str	xzr, [x19]
	ldr	x0, [x0]
	b	LBB0_5
LBB0_3:
	ldp	x8, x9, [x19]
	add	x20, x8, #1
	str	x20, [x19]
	ldr	w0, [x9, #8]
	bl	_le32_to_cpu
	cmp	x20, x0
	b.ge	LBB0_6
; %bb.4:
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	add	x0, x9, x8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ice_pkg_val_buf
LBB0_6:
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ice_pkg_enum_buf
.subsections_via_symbols
