	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_aq_download_pkg
_ice_aq_download_pkg:                   ## @ice_aq_download_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r12
	movl	%ecx, %r14d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	$0, (%r12)
LBB0_2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	$0, (%r15)
LBB0_4:
	movq	_ice_aqc_opc_download_pkg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_ice_fill_dflt_direct_cmd_desc
	movq	_ICE_AQ_FLAG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -48(%rbp)
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	_ICE_AQC_DOWNLOAD_PKG_LAST_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movq	%rbx, %r14
	movq	%rbx, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	16(%rbp), %r8
	callq	_ice_aq_send_cmd
	movl	%eax, %ebx
	movq	_ICE_ERR_AQ_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_11
## %bb.7:
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movl	4(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, (%r12)
LBB0_9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, (%r15)
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ice_aqc_opc_download_pkg,4,2   ## @ice_aqc_opc_download_pkg
	.comm	_ICE_AQ_FLAG_RD,4,2             ## @ICE_AQ_FLAG_RD
	.comm	_ICE_AQC_DOWNLOAD_PKG_LAST_BUF,4,2 ## @ICE_AQC_DOWNLOAD_PKG_LAST_BUF
	.comm	_ICE_ERR_AQ_ERROR,4,2           ## @ICE_ERR_AQ_ERROR
	.no_dead_strip	_ice_aq_download_pkg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_aq_download_pkg
_ice_aq_download_pkg:                   ; @ice_aq_download_pkg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x6
	mov	x19, x5
	mov	x21, x4
	mov	x25, x3
	mov	x23, x2
	mov	x20, x1
	mov	x24, x0
	cbz	x4, LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	str	xzr, [x19]
LBB0_4:
Lloh0:
	adrp	x8, _ice_aqc_opc_download_pkg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ice_aqc_opc_download_pkg@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_ice_fill_dflt_direct_cmd_desc
Lloh3:
	adrp	x8, _ICE_AQ_FLAG_RD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_AQ_FLAG_RD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
	cbz	w25, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _ICE_AQC_DOWNLOAD_PKG_LAST_BUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_AQC_DOWNLOAD_PKG_LAST_BUF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_6:
	add	x1, sp, #8
	mov	x0, x24
	mov	x2, x20
	mov	x3, x23
	mov	x4, x22
	bl	_ice_aq_send_cmd
	mov	x22, x0
Lloh9:
	adrp	x8, _ICE_ERR_AQ_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_ERR_AQ_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.7:
	cbz	x21, LBB0_9
; %bb.8:
	ldr	w0, [x20, #4]
	bl	_le32_to_cpu
	str	x0, [x21]
LBB0_9:
	cbz	x19, LBB0_11
; %bb.10:
	ldr	w0, [x20]
	bl	_le32_to_cpu
	str	x0, [x19]
LBB0_11:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ice_aqc_opc_download_pkg,4,2   ; @ice_aqc_opc_download_pkg
	.comm	_ICE_AQ_FLAG_RD,4,2             ; @ICE_AQ_FLAG_RD
	.comm	_ICE_AQC_DOWNLOAD_PKG_LAST_BUF,4,2 ; @ICE_AQC_DOWNLOAD_PKG_LAST_BUF
	.comm	_ICE_ERR_AQ_ERROR,4,2           ; @ICE_ERR_AQ_ERROR
	.no_dead_strip	_ice_aq_download_pkg
.subsections_via_symbols
