	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_init_pkg_info
_ice_init_pkg_info:                     ## @ice_init_pkg_info
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_SEGMENT_TYPE_METADATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_ice_find_seg_in_pkg
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movups	4(%rax), %xmm0
	movups	%xmm0, 24(%r15)
	movl	20(%r15), %edi
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	_ICE_DBG_PKG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	8(%rbx), %r9d
	movl	(%rbx), %r10d
	movl	4(%rbx), %ebx
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	callq	_ice_debug
	addq	$16, %rsp
	movq	_SEGMENT_TYPE_ICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_ice_find_seg_in_pkg
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movups	4(%rax), %xmm0
	movups	%xmm0, 4(%r15)
	movl	(%r15), %edi
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r13), %esi
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	8(%rbx), %r9d
	movl	(%rbx), %r10d
	movl	4(%rbx), %ebx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	callq	_ice_debug
	addq	$16, %rsp
	jmp	LBB0_8
LBB0_1:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_ICE_DBG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_5:
	movq	_ICE_DBG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_6:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ice_debug
	movq	_ICE_ERR_CFG@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_SEGMENT_TYPE_METADATA,4,2      ## @SEGMENT_TYPE_METADATA
	.comm	_ICE_DBG_PKG,4,2                ## @ICE_DBG_PKG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pkg: %d.%d.%d.%d, %s\n"

	.comm	_ICE_DBG_INIT,4,2               ## @ICE_DBG_INIT
L_.str.1:                               ## @.str.1
	.asciz	"Did not find metadata segment in driver package\n"

	.comm	_ICE_ERR_CFG,4,2                ## @ICE_ERR_CFG
	.comm	_SEGMENT_TYPE_ICE,4,2           ## @SEGMENT_TYPE_ICE
L_.str.2:                               ## @.str.2
	.asciz	"Ice Pkg: %d.%d.%d.%d, %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Did not find ice segment in driver package\n"

	.no_dead_strip	_ice_init_pkg_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_init_pkg_info
_ice_init_pkg_info:                     ; @ice_init_pkg_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SEGMENT_TYPE_METADATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEGMENT_TYPE_METADATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ice_find_seg_in_pkg
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldur	q0, [x0, #4]
	stur	q0, [x19, #24]
	ldr	w0, [x19, #20]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_memcpy
Lloh3:
	adrp	x22, _ICE_DBG_PKG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ICE_DBG_PKG@GOTPAGEOFF]
	ldr	w1, [x22]
	ldp	w9, w8, [x21, #12]
	ldp	w11, w10, [x21, #4]
	ldr	w12, [x21]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ice_debug
Lloh7:
	adrp	x8, _SEGMENT_TYPE_ICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEGMENT_TYPE_ICE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ice_find_seg_in_pkg
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldur	q0, [x0, #4]
	stur	q0, [x19, #4]
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x22]
	ldp	w9, w8, [x20, #12]
	ldp	w11, w10, [x20, #4]
	ldr	w12, [x20]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ice_debug
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh12:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh14:
	adrp	x8, _ICE_DBG_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ICE_DBG_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x8, _ICE_DBG_INIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ICE_DBG_INIT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_ice_debug
Lloh24:
	adrp	x8, _ICE_ERR_CFG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ICE_ERR_CFG@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_SEGMENT_TYPE_METADATA,4,2      ; @SEGMENT_TYPE_METADATA
	.comm	_ICE_DBG_PKG,4,2                ; @ICE_DBG_PKG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pkg: %d.%d.%d.%d, %s\n"

	.comm	_ICE_DBG_INIT,4,2               ; @ICE_DBG_INIT
l_.str.1:                               ; @.str.1
	.asciz	"Did not find metadata segment in driver package\n"

	.comm	_ICE_ERR_CFG,4,2                ; @ICE_ERR_CFG
	.comm	_SEGMENT_TYPE_ICE,4,2           ; @SEGMENT_TYPE_ICE
l_.str.2:                               ; @.str.2
	.asciz	"Ice Pkg: %d.%d.%d.%d, %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Did not find ice segment in driver package\n"

	.no_dead_strip	_ice_init_pkg_info
.subsections_via_symbols
