	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_pkg_enum_section
_ice_pkg_enum_section:                  ## @ice_pkg_enum_section
	.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	%rsi, %r12
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	%edx, 28(%r12)
LBB0_2:
	movq	%r12, %rsi
	callq	_ice_pkg_advance_sect
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %rbx
	movl	28(%r12), %edi
	callq	_cpu_to_le32
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_ice_pkg_advance_sect
	testl	%eax, %eax
	jne	LBB0_4
LBB0_13:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	movl	8(%rcx,%rax), %edi
	callq	_le16_to_cpu
	movslq	%eax, %r15
	movq	_ICE_MIN_S_OFF@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	%r15, (%rax)
	jg	LBB0_13
## %bb.7:
	movq	_ICE_MAX_S_OFF@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jl	LBB0_13
## %bb.8:
	movq	(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	movl	12(%rcx,%rax), %edi
	callq	_le16_to_cpu
	cltq
	movq	_ICE_MIN_S_SZ@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	%rax, (%rcx)
	jg	LBB0_13
## %bb.9:
	movq	_ICE_MAX_S_SZ@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jl	LBB0_13
## %bb.10:
	addq	%r15, %rax
	movq	_ICE_PKG_BUF_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_12
## %bb.11:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_12:
	movq	(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %rdi
	callq	_le32_to_cpu
	movl	%eax, 24(%r12)
	movq	(%r12), %rax
	movq	16(%r12), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rax
	movl	8(%rcx,%rax), %edi
	callq	_le16_to_cpu
	movslq	%eax, %r14
	addq	%rbx, %r14
	movq	%r14, 8(%r12)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_MIN_S_OFF,8,3              ## @ICE_MIN_S_OFF
	.comm	_ICE_MAX_S_OFF,8,3              ## @ICE_MAX_S_OFF
	.comm	_ICE_MIN_S_SZ,8,3               ## @ICE_MIN_S_SZ
	.comm	_ICE_MAX_S_SZ,8,3               ## @ICE_MAX_S_SZ
	.comm	_ICE_PKG_BUF_SIZE,8,3           ## @ICE_PKG_BUF_SIZE
	.no_dead_strip	_ice_pkg_enum_section
.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_section
_ice_pkg_enum_section:                  ; @ice_pkg_enum_section
	.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_2
; %bb.1:
	str	w2, [x19, #28]
LBB0_2:
	mov	x1, x19
	bl	_ice_pkg_advance_sect
	cbz	w0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x19]
	lsl	x9, x9, #4
	ldr	x20, [x8, x9]
	ldr	w0, [x19, #28]
	bl	_cpu_to_le32
	cmp	x20, x0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
	mov	x1, x19
	bl	_ice_pkg_advance_sect
	cbnz	w0, LBB0_3
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #4
	ldr	w0, [x8, #8]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
Lloh0:
	adrp	x8, _ICE_MIN_S_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_MIN_S_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ICE_MAX_S_OFF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICE_MAX_S_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x20
	ccmp	x9, x20, #8, le
	b.lt	LBB0_8
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #4
	ldr	w0, [x8, #12]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
Lloh6:
	adrp	x9, _ICE_MIN_S_SZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICE_MIN_S_SZ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _ICE_MAX_S_SZ@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ICE_MAX_S_SZ@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x8
	ccmp	x10, x8, #8, le
	b.lt	LBB0_8
; %bb.7:
Lloh12:
	adrp	x9, _ICE_PKG_BUF_SIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ICE_PKG_BUF_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x8, x8, x20
	cmp	x8, x9
	b.le	LBB0_10
LBB0_8:
	mov	x0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x19]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_le32_to_cpu
	str	w0, [x19, #24]
	ldr	x20, [x19, #16]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #4
	ldr	w0, [x8, #8]
	bl	_le16_to_cpu
	add	x0, x20, w0, sxtw
	str	x0, [x19, #8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_MIN_S_OFF,8,3              ; @ICE_MIN_S_OFF
	.comm	_ICE_MAX_S_OFF,8,3              ; @ICE_MAX_S_OFF
	.comm	_ICE_MIN_S_SZ,8,3               ; @ICE_MIN_S_SZ
	.comm	_ICE_MAX_S_SZ,8,3               ; @ICE_MAX_S_SZ
	.comm	_ICE_PKG_BUF_SIZE,8,3           ; @ICE_PKG_BUF_SIZE
	.no_dead_strip	_ice_pkg_enum_section
.subsections_via_symbols
