	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_find_seg_in_pkg
_ice_find_seg_in_pkg:                   ## @ice_find_seg_in_pkg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	_ICE_DBG_PKG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rdx), %ecx
	movl	20(%rdx), %r8d
	movl	12(%rdx), %eax
	movl	16(%rdx), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	callq	_ice_debug
	movl	8(%r12), %edi
	callq	_le32_to_cpu
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	%rax, %r13
	movl	(%r12,%rax,4), %edi
	callq	_le32_to_cpu
	cmpq	%r14, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	8(%r12), %edi
	callq	_le32_to_cpu
	cmpq	%rax, %rbx
	jb	LBB0_2
	jmp	LBB0_4
LBB0_3:
	leaq	(%r12,%r13,4), %r15
LBB0_4:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_DBG_PKG,4,2                ## @ICE_DBG_PKG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Package format version: %d.%d.%d.%d\n"

	.no_dead_strip	_ice_find_seg_in_pkg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_find_seg_in_pkg
_ice_find_seg_in_pkg:                   ; @ice_find_seg_in_pkg
	.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	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _ICE_DBG_PKG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_DBG_PKG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w4, w3, [x2, #20]
	ldp	w6, w5, [x2, #12]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ice_debug
	ldr	w0, [x19, #8]
	bl	_le32_to_cpu
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x22, lsl #2]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	w0, [x19, x0, lsl #2]
	bl	_le32_to_cpu
	cmp	x0, x20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	w0, [x19, #8]
	bl	_le32_to_cpu
	cmp	x22, x0
	b.lo	LBB0_2
; %bb.4:
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	add	x0, x19, x21, lsl #2
LBB0_6:
	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
	.comm	_ICE_DBG_PKG,4,2                ; @ICE_DBG_PKG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Package format version: %d.%d.%d.%d\n"

	.no_dead_strip	_ice_find_seg_in_pkg
.subsections_via_symbols
