	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_verify_pkg
_ice_verify_pkg:                        ## @ice_verify_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
	cmpl	$47, %esi
	ja	LBB0_1
LBB0_12:
	movq	_ICE_ERR_BUF_TOO_SHORT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_ICE_PKG_FMT_VER_MAJ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	24(%rbx), %rax
	movq	_ICE_PKG_FMT_VER_MNR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	32(%rbx), %rax
	movq	_ICE_PKG_FMT_VER_UPD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	40(%rbx), %rax
	movq	_ICE_PKG_FMT_VER_DFT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movl	%esi, %r14d
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.7:
	movslq	%r14d, %r15
	leal	-1(%rax), %ecx
	leaq	48(,%rcx,8), %rcx
	cmpq	%r15, %rcx
	ja	LBB0_12
## %bb.8:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	callq	_le32_to_cpu
	movslq	%eax, %r12
	leaq	4(%r12), %rax
	cmpq	%r15, %rax
	ja	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rbx,%r12,4), %edi
	callq	_le32_to_cpu
	addl	%eax, %r12d
	cmpl	%r14d, %r12d
	jg	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	xorl	%eax, %eax
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_10
	jmp	LBB0_14
LBB0_5:
	movq	_ICE_ERR_CFG@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_BUF_TOO_SHORT,4,2      ## @ICE_ERR_BUF_TOO_SHORT
	.comm	_ICE_PKG_FMT_VER_MAJ,8,3        ## @ICE_PKG_FMT_VER_MAJ
	.comm	_ICE_PKG_FMT_VER_MNR,8,3        ## @ICE_PKG_FMT_VER_MNR
	.comm	_ICE_PKG_FMT_VER_UPD,8,3        ## @ICE_PKG_FMT_VER_UPD
	.comm	_ICE_PKG_FMT_VER_DFT,8,3        ## @ICE_PKG_FMT_VER_DFT
	.comm	_ICE_ERR_CFG,4,2                ## @ICE_ERR_CFG
	.no_dead_strip	_ice_verify_pkg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_verify_pkg
_ice_verify_pkg:                        ; @ice_verify_pkg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w1, #47
	b.hi	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _ICE_ERR_BUF_TOO_SHORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_ERR_BUF_TOO_SHORT@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh2:
	adrp	x9, _ICE_PKG_FMT_VER_MAJ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ICE_PKG_FMT_VER_MAJ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.3:
	ldr	x8, [x20, #24]
Lloh5:
	adrp	x9, _ICE_PKG_FMT_VER_MNR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ICE_PKG_FMT_VER_MNR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:
	ldr	x8, [x20, #32]
Lloh8:
	adrp	x9, _ICE_PKG_FMT_VER_UPD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ICE_PKG_FMT_VER_UPD@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.5:
	ldr	x8, [x20, #40]
Lloh11:
	adrp	x9, _ICE_PKG_FMT_VER_DFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ICE_PKG_FMT_VER_DFT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	mov	x19, x1
	ldr	w0, [x20, #8]
	bl	_le32_to_cpu
	cmp	w0, #0
	b.le	LBB0_12
; %bb.7:
	sxtw	x21, w19
	sub	w8, w0, #1
	lsl	x8, x8, #3
	add	x8, x8, #48
	cmp	x8, x21
	b.hi	LBB0_1
; %bb.8:
	mov	x22, #0
	mov	w8, w0
	lsl	x23, x8, #2
Lloh14:
	adrp	x24, _ICE_ERR_BUF_TOO_SHORT@GOTPAGE
Lloh15:
	ldr	x24, [x24, _ICE_ERR_BUF_TOO_SHORT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x22]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	add	x8, x25, #4
	cmp	x8, x21
	b.hi	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x20, x25, lsl #2]
	bl	_le32_to_cpu
	add	w8, w0, w25
	cmp	w8, w19
	b.gt	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #0
	add	x22, x22, #4
	cmp	x23, x22
	b.ne	LBB0_9
	b	LBB0_14
LBB0_12:
Lloh16:
	adrp	x8, _ICE_ERR_CFG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ICE_ERR_CFG@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w0, [x24]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_BUF_TOO_SHORT,4,2      ; @ICE_ERR_BUF_TOO_SHORT
	.comm	_ICE_PKG_FMT_VER_MAJ,8,3        ; @ICE_PKG_FMT_VER_MAJ
	.comm	_ICE_PKG_FMT_VER_MNR,8,3        ; @ICE_PKG_FMT_VER_MNR
	.comm	_ICE_PKG_FMT_VER_UPD,8,3        ; @ICE_PKG_FMT_VER_UPD
	.comm	_ICE_PKG_FMT_VER_DFT,8,3        ; @ICE_PKG_FMT_VER_DFT
	.comm	_ICE_ERR_CFG,4,2                ; @ICE_ERR_CFG
	.no_dead_strip	_ice_verify_pkg
.subsections_via_symbols
