	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_mcp_resc_allocation_msg
_qed_mcp_resc_allocation_msg:           ## @qed_mcp_resc_allocation_msg
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-216(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movl	8(%r13), %edi
	callq	_qed_mcp_get_mfw_res_id
	movq	%rax, -216(%rbp)
	movq	_RESOURCE_NUM_INVALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%r13), %r14d
	movl	%r14d, %edi
	callq	_qed_hw_get_resc_name
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DP_ERR
	jmp	LBB0_8
LBB0_2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edx
	cmpl	$129, %edx
	leaq	-216(%rbp), %rbx
	je	LBB0_5
## %bb.3:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.4:
	movl	4(%r13), %eax
	movl	%eax, -180(%rbp)
LBB0_5:
	movq	%r14, %r12
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movl	(%r13), %r14d
	movl	%r14d, -136(%rbp)
	movq	_QED_RESC_ALLOC_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	%rbx, -88(%rbp)
	movabsq	$309237645384, %rax             ## imm = 0x4800000048
	movq	%rax, -132(%rbp)
	movq	%rbx, -80(%rbp)
	movq	_QED_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %r15d
	movl	%r15d, %edi
	callq	_qed_hw_get_resc_name
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-96(%rbp), %edi
	movq	_DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QED_MFW_GET_FIELD
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-96(%rbp), %edi
	movq	_DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QED_MFW_GET_FIELD
	movl	%eax, %r10d
	movl	4(%r13), %ebx
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_DP_VERBOSE
	addq	$32, %rsp
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	-144(%rbp), %rdx
	callq	_qed_mcp_cmd_and_union
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	-100(%rbp), %eax
	movl	%eax, 24(%r12)
	movl	-104(%rbp), %edi
	movl	%edi, 20(%r12)
	movl	-180(%rbp), %eax
	movl	%eax, 16(%r12)
	movups	-196(%rbp), %xmm0
	movups	%xmm0, (%r12)
	movq	_QED_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QED_MFW_GET_FIELD
	movl	%eax, %r15d
	movl	20(%r12), %edi
	movq	_FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QED_MFW_GET_FIELD
	movl	16(%r12), %r9d
	movl	12(%r12), %r10d
	movl	8(%r12), %r11d
	movl	(%r12), %ebx
	movl	4(%r12), %r12d
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	_DP_VERBOSE
	addq	$32, %rsp
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_DP_ERR
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESOURCE_NUM_INVALID,8,3       ## @RESOURCE_NUM_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to match resource %d [%s] with the MFW resources\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Unexpected resource alloc command [0x%08x]\n"

	.comm	_QED_RESC_ALLOC_VERSION,4,2     ## @QED_RESC_ALLOC_VERSION
	.comm	_QED_MSG_SP,4,2                 ## @QED_MSG_SP
L_.str.2:                               ## @.str.2
	.asciz	"Resource message request: cmd 0x%08x, res_id %d [%s], hsi_version %d.%d, val 0x%x\n"

	.comm	_DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR,4,2 ## @DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR
	.comm	_DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR,4,2 ## @DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR
L_.str.3:                               ## @.str.3
	.asciz	"Resource message response: mfw_hsi_version %d.%d, num 0x%x, start 0x%x, vf_num 0x%x, vf_start 0x%x, flags 0x%08x\n"

	.comm	_FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR,4,2 ## @FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR
	.comm	_FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR,4,2 ## @FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR
	.no_dead_strip	_qed_mcp_resc_allocation_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_mcp_resc_allocation_msg
_qed_mcp_resc_allocation_msg:           ; @qed_mcp_resc_allocation_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	w0, [x22, #8]
	bl	_qed_mcp_get_mfw_res_id
	str	x0, [sp, #24]
Lloh0:
	adrp	x8, _RESOURCE_NUM_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESOURCE_NUM_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w20, [x22, #8]
	mov	x0, x20
	bl	_qed_hw_get_resc_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	b	LBB0_8
LBB0_2:
	ldr	w2, [x22]
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x22, #4]
	str	w8, [sp, #60]
LBB0_5:
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	w23, [x22]
Lloh5:
	adrp	x8, _QED_RESC_ALLOC_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QED_RESC_ALLOC_VERSION@GOTPAGEOFF]
	str	w23, [sp, #104]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #144]
	add	x8, sp, #24
	stp	x8, x8, [sp, #152]
	movi.2s	v0, #72
	stur	d0, [sp, #108]
Lloh8:
	adrp	x28, _QED_MSG_SP@GOTPAGE
Lloh9:
	ldr	x28, [x28, _QED_MSG_SP@GOTPAGEOFF]
	ldr	w24, [x28]
	ldr	w25, [x22, #8]
	mov	x0, x25
	bl	_qed_hw_get_resc_name
	mov	x26, x0
	ldr	w0, [sp, #144]
Lloh10:
	adrp	x8, _DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_QED_MFW_GET_FIELD
	mov	x27, x0
	ldr	w0, [sp, #144]
Lloh13:
	adrp	x8, _DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_QED_MFW_GET_FIELD
	mov	x7, x0
	ldr	w8, [x22, #4]
	str	w8, [sp]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x24
	mov	x3, x23
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	bl	_DP_VERBOSE
	add	x2, sp, #96
	mov	x0, x19
	mov	x1, x21
	bl	_qed_mcp_cmd_and_union
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	d0, [sp, #136]
	stur	d0, [x20, #20]
	ldr	w8, [sp, #60]
	str	w8, [x20, #16]
	ldur	q1, [sp, #44]
	str	q1, [x20]
	ldr	w21, [x28]
Lloh18:
	adrp	x8, _FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	fmov	w0, s0
	bl	_QED_MFW_GET_FIELD
	mov	x22, x0
	ldr	w0, [x20, #20]
Lloh21:
	adrp	x8, _FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_QED_MFW_GET_FIELD
	mov	x4, x0
	ldp	w6, w5, [x20, #12]
	ldp	w8, w7, [x20, #4]
	ldr	w9, [x20]
	str	x9, [sp, #8]
	str	w8, [sp]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_DP_VERBOSE
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_8:
	bl	_DP_ERR
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_RESOURCE_NUM_INVALID,8,3       ; @RESOURCE_NUM_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to match resource %d [%s] with the MFW resources\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Unexpected resource alloc command [0x%08x]\n"

	.comm	_QED_RESC_ALLOC_VERSION,4,2     ; @QED_RESC_ALLOC_VERSION
	.comm	_QED_MSG_SP,4,2                 ; @QED_MSG_SP
l_.str.2:                               ; @.str.2
	.asciz	"Resource message request: cmd 0x%08x, res_id %d [%s], hsi_version %d.%d, val 0x%x\n"

	.comm	_DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR,4,2 ; @DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR
	.comm	_DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR,4,2 ; @DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR
l_.str.3:                               ; @.str.3
	.asciz	"Resource message response: mfw_hsi_version %d.%d, num 0x%x, start 0x%x, vf_num 0x%x, vf_start 0x%x, flags 0x%08x\n"

	.comm	_FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR,4,2 ; @FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR
	.comm	_FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR,4,2 ; @FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR
	.no_dead_strip	_qed_mcp_resc_allocation_msg
.subsections_via_symbols
