	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_get_pkg_info
_ice_get_pkg_info:                      ## @ice_get_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ICE_PKG_CNT@GOTPCREL(%rip), %rax
	imull	$56, (%rax), %ebx
	movq	%rdi, %r14
	addl	$-40, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_ice_aq_get_pkg_info_list
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_3
LBB0_15:
	movq	%r13, %rdi
	callq	_kfree
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_16
LBB0_1:
	movq	_ICE_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	leaq	12(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ICE_DBG_PKG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	16(%rax,%r12), %r8d
	movl	12(%rax,%r12), %r9d
	movl	8(%rax,%r12), %r10d
	movl	(%rax,%r12), %r11d
	movl	4(%rax,%r12), %eax
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	leaq	-48(%rbp), %r15
	pushq	%r15
	pushq	%r11
	pushq	%rax
	pushq	%r10
	callq	_ice_debug
	addq	$32, %rsp
	incq	%rbx
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	addq	$56, %r12
	cmpq	%rax, %rbx
	jae	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movb	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	movq	(%r13), %rax
	cmpq	$0, 48(%rax,%r12)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$65, -48(%rbp)
	movups	4(%rax,%r12), %xmm0
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	movl	8(%r14), %edi
	movq	(%r13), %rax
	movl	(%rax,%r12), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	24(%rax,%r12), %rcx
	movq	%rcx, (%r14)
	movl	$1, %ecx
	cmpq	$0, 40(%rax,%r12)
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	$66, -48(%rbp,%rcx)
	incq	%rcx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 32(%rax,%r12)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$77, -48(%rbp,%rcx)
	incq	%rcx
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 24(%rax,%r12)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$78, -48(%rbp,%rcx)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	cmpq	$0, 40(%rax,%r12)
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_PKG_CNT,4,2                ## @ICE_PKG_CNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ## @ICE_ERR_NO_MEMORY
	.comm	_ICE_DBG_PKG,4,2                ## @ICE_DBG_PKG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pkg[%d]: %d.%d.%d.%d,%s,%s\n"

	.comm	_ICE_PKG_FLAG_COUNT,4,2         ## @ICE_PKG_FLAG_COUNT
	.no_dead_strip	_ice_get_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_get_pkg_info
_ice_get_pkg_info:                      ; @ice_get_pkg_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _ICE_PKG_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_PKG_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #56
	mul	w8, w8, w9
	sub	w21, w8, #40
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, #0
	bl	_ice_aq_get_pkg_info_list
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ICE_ERR_NO_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	ldr	w0, [x20, #8]
	bl	_le32_to_cpu
	cbz	x0, LBB0_2
; %bb.6:
	mov	x24, #0
	mov	x22, #0
	add	x25, x19, #12
Lloh9:
	adrp	x26, _ICE_DBG_PKG@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ICE_DBG_PKG@GOTPAGEOFF]
	add	x27, sp, #24
	mov	w28, #65
Lloh11:
	adrp	x23, l_.str@PAGE
Lloh12:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x26]
	ldp	w5, w4, [x8, #12]
	ldp	w7, w6, [x8, #4]
	ldr	w8, [x8]
	str	x27, [sp, #8]
	str	w8, [sp]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	bl	_ice_debug
	add	x22, x22, #1
	ldr	w0, [x20, #8]
	bl	_le32_to_cpu
	add	x24, x24, #56
	cmp	x22, x0
	b.hs	LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	strb	wzr, [sp, #28]
	str	wzr, [sp, #24]
	ldr	x8, [x20]
	add	x9, x8, x24
	ldr	x10, [x9, #48]
	cbz	x10, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	strb	w28, [sp, #24]
	ldur	q0, [x9, #4]
	str	q0, [x25]
	ldr	w0, [x19, #8]
	ldr	x8, [x20]
	ldr	w1, [x8, x24]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20]
	add	x9, x8, x24
	ldr	x9, [x9, #24]
	str	x9, [x19]
	mov	w9, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, #0
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x8, x24
	ldr	x11, [x10, #40]
	cbz	x11, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	orr	x11, x27, x9
	add	x9, x9, #1
	mov	w12, #66
	strb	w12, [x11]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x10, #32]
	cbz	x10, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	orr	x10, x27, x9
	add	x9, x9, #1
	mov	w11, #77
	strb	w11, [x10]
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, x24
	ldr	x10, [x8, #24]
	cbz	x10, LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w10, #78
	strb	w10, [x27, x9]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_PKG_CNT,4,2                ; @ICE_PKG_CNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ; @ICE_ERR_NO_MEMORY
	.comm	_ICE_DBG_PKG,4,2                ; @ICE_DBG_PKG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pkg[%d]: %d.%d.%d.%d,%s,%s\n"

	.comm	_ICE_PKG_FLAG_COUNT,4,2         ; @ICE_PKG_FLAG_COUNT
	.no_dead_strip	_ice_get_pkg_info
.subsections_via_symbols
