	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_set_func_resources  ## -- Begin function bnxt_qplib_set_func_resources
	.p2align	4, 0x90
_bnxt_qplib_set_func_resources:         ## @bnxt_qplib_set_func_resources
	.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	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_SET_FUNC_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-40(%rbp), %rax
	movq	%rax, 64(%rsp)
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	-72(%rbp), %xmm2
	movups	-56(%rbp), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	callq	_RCFW_CMD_PREP
	movl	32(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -40(%rbp)
	movl	28(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -48(%rbp)
	movl	24(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -56(%rbp)
	movl	20(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movl	16(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -72(%rbp)
	movl	12(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
	movl	8(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -88(%rbp)
	movl	4(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -96(%rbp)
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -104(%rbp)
	leaq	-104(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_bnxt_qplib_rcfw_send_message
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_FUNC_RESOURCES,4,2         ## @SET_FUNC_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set function resources\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_set_func_resources  ; -- Begin function bnxt_qplib_set_func_resources
	.p2align	2
_bnxt_qplib_set_func_resources:         ; @bnxt_qplib_set_func_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SET_FUNC_RESOURCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SET_FUNC_RESOURCES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_RCFW_CMD_PREP
	ldr	w0, [x21, #32]
	bl	_cpu_to_le32
	str	x0, [sp, #72]
	ldr	w0, [x21, #28]
	bl	_cpu_to_le32
	str	x0, [sp, #64]
	ldr	w0, [x21, #24]
	bl	_cpu_to_le32
	str	x0, [sp, #56]
	ldr	w0, [x21, #20]
	bl	_cpu_to_le32
	str	x0, [sp, #48]
	ldr	w0, [x21, #16]
	bl	_cpu_to_le32
	str	x0, [sp, #40]
	ldr	w0, [x21, #12]
	bl	_cpu_to_le32
	str	x0, [sp, #32]
	ldr	w0, [x21, #8]
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	ldr	w0, [x21, #4]
	bl	_cpu_to_le32
	str	x0, [sp, #16]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	mov	x3, #0
	mov	w4, #0
	bl	_bnxt_qplib_rcfw_send_message
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_FUNC_RESOURCES,4,2         ; @SET_FUNC_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set function resources\n"

.subsections_via_symbols
