	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_load_pkg
_ice_load_pkg:                          ## @ice_load_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %rax
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -20(%rbp)
	movq	16(%rsi), %rsi
	movq	24(%rbx), %rdi
	leaq	8(%rbx), %r14
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.2:
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_ice_copy_and_init_pkg
	jmp	LBB0_5
LBB0_3:
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_ice_init_pkg
LBB0_5:
	movl	%eax, -20(%rbp)
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ice_log_pkg_init
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_7:
	cmpl	$0, -20(%rbp)
	movq	_ICE_FLAG_ADV_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	je	LBB0_9
## %bb.8:
	callq	_clear_bit
	jmp	LBB0_10
LBB0_9:
	callq	_set_bit
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The DDP package file failed to load. Entering Safe Mode.\n"

	.comm	_ICE_FLAG_ADV_FEATURES,4,2      ## @ICE_FLAG_ADV_FEATURES
	.no_dead_strip	_ice_load_pkg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_load_pkg
_ice_load_pkg:                          ; @ice_load_pkg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x20, x1, #8
	ldp	x1, x8, [x1, #16]
	cbz	x0, LBB0_3
; %bb.1:
	cbnz	x1, LBB0_6
; %bb.2:
	ldp	w2, w1, [x0]
	mov	x0, x20
	bl	_ice_copy_and_init_pkg
	b	LBB0_5
LBB0_3:
	cbz	x1, LBB0_6
; %bb.4:
	ldr	w2, [x20]
	mov	x0, x20
	bl	_ice_init_pkg
LBB0_5:
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	x0, x20
	bl	_ice_log_pkg_init
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_err
LBB0_7:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _ICE_FLAG_ADV_FEATURES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ICE_FLAG_ADV_FEATURES@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	ldr	w1, [x19]
	cbz	w8, LBB0_9
; %bb.8:
	bl	_clear_bit
	b	LBB0_10
LBB0_9:
	bl	_set_bit
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The DDP package file failed to load. Entering Safe Mode.\n"

	.comm	_ICE_FLAG_ADV_FEATURES,4,2      ; @ICE_FLAG_ADV_FEATURES
	.no_dead_strip	_ice_load_pkg
.subsections_via_symbols
