	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __qed_hw_set_soft_resc_size
___qed_hw_set_soft_resc_size:           ## @__qed_hw_set_soft_resc_size
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%edx, %ebx
	movq	%rdi, %r15
	callq	_qed_mcp_set_resc_max_val
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_qed_hw_get_resc_name
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_DP_NOTICE
	jmp	LBB0_4
LBB0_2:
	movq	(%r12), %rax
	movq	_FW_MSG_CODE_RESOURCE_ALLOC_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_qed_hw_get_resc_name
	movq	(%r12), %r8
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_DP_INFO
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MFW response failure for a max value setting of resource %d [%s]\n"

	.comm	_FW_MSG_CODE_RESOURCE_ALLOC_OK,8,3 ## @FW_MSG_CODE_RESOURCE_ALLOC_OK
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set the max value of resource %d [%s]. mcp_resp = 0x%08x.\n"

	.no_dead_strip	___qed_hw_set_soft_resc_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __qed_hw_set_soft_resc_size
___qed_hw_set_soft_resc_size:           ; @__qed_hw_set_soft_resc_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x4
	mov	x19, x2
	mov	x21, x0
	bl	_qed_mcp_set_resc_max_val
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_qed_hw_get_resc_name
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_DP_NOTICE
	b	LBB0_4
LBB0_2:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _FW_MSG_CODE_RESOURCE_ALLOC_OK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FW_MSG_CODE_RESOURCE_ALLOC_OK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_qed_hw_get_resc_name
	mov	x3, x0
	ldr	x4, [x22]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_DP_INFO
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MFW response failure for a max value setting of resource %d [%s]\n"

	.comm	_FW_MSG_CODE_RESOURCE_ALLOC_OK,8,3 ; @FW_MSG_CODE_RESOURCE_ALLOC_OK
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set the max value of resource %d [%s]. mcp_resp = 0x%08x.\n"

	.no_dead_strip	___qed_hw_set_soft_resc_size
.subsections_via_symbols
