	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_get_pf_info
_qlcnic_sriov_get_pf_info:              ## @qlcnic_sriov_get_pf_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_QLCNIC_CMD_GET_NIC_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_2:
	movq	-32(%rbp), %rax
	movl	$2, 4(%rax)
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	movq	-40(%rbp), %rax
	movzbl	8(%rax), %ecx
	movl	%ecx, (%rbx)
	movzbl	9(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	8(%rax), %edi
	callq	_MSW
	movq	%rax, 104(%rbx)
	movq	-40(%rbp), %rax
	movl	12(%rax), %edi
	callq	_LSW
	movq	%rax, 96(%rbx)
	movq	-40(%rbp), %rax
	movl	12(%rax), %edi
	callq	_MSW
	movq	%rax, 88(%rbx)
	movq	-40(%rbp), %rax
	movl	16(%rax), %edi
	callq	_LSW
	movq	%rax, 80(%rbx)
	movq	-40(%rbp), %rax
	movl	16(%rax), %edi
	callq	_MSW
	movq	%rax, 72(%rbx)
	movq	-40(%rbp), %rax
	movl	20(%rax), %edi
	callq	_LSW
	movq	%rax, 64(%rbx)
	movq	-40(%rbp), %rax
	movl	20(%rax), %edi
	callq	_MSW
	movq	%rax, 56(%rbx)
	movq	-40(%rbp), %rax
	movl	24(%rax), %edi
	callq	_LSW
	movq	%rax, 48(%rbx)
	movq	-40(%rbp), %rax
	movl	24(%rax), %edi
	callq	_MSW
	movq	%rax, 40(%rbx)
	movq	-40(%rbp), %rax
	movl	28(%rax), %edi
	callq	_LSW
	movq	%rax, 32(%rbx)
	movq	-40(%rbp), %rax
	movl	28(%rax), %edi
	callq	_MSW
	movq	%rax, 24(%rbx)
	movq	-40(%rbp), %rax
	movl	32(%rax), %edi
	callq	_LSW
	movq	%rax, 16(%rbx)
	movq	-40(%rbp), %rax
	movl	32(%rax), %edi
	callq	_MSW
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_sriov_set_vf_max_vlan
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_sriov_pf_set_ff_max_res
	movq	(%r15), %rdi
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movq	104(%rbx), %r8
	movq	96(%rbx), %r9
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	pushq	8(%rbx)
	pushq	16(%rbx)
	pushq	24(%rbx)
	pushq	32(%rbx)
	pushq	40(%rbx)
	pushq	48(%rbx)
	pushq	56(%rbx)
	pushq	64(%rbx)
	pushq	72(%rbx)
	pushq	80(%rbx)
	pushq	88(%rbx)
	callq	_dev_info
	addq	$96, %rsp
LBB0_5:
	leaq	-40(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_GET_NIC_INFO,4,2    ## @QLCNIC_CMD_GET_NIC_INFO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get PF info, err=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"\n\ttotal_pf: %d,\n\n\ttotal_rss_engines: %d max_vports: %d max_tx_ques %d,\n\tmax_tx_mac_filters: %d max_rx_mcast_mac_filters: %d,\n\tmax_rx_ucast_mac_filters: 0x%x, max_rx_ip_addr: %d,\n\tmax_rx_lro_flow: %d max_rx_status_rings: %d,\n\tmax_rx_buf_rings: %d, max_rx_ques: %d, max_tx_vlan_keys %d\n\tmax_local_ipv6_addrs: %d, max_remote_ipv6_addrs: %d\n"

	.no_dead_strip	_qlcnic_sriov_get_pf_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_get_pf_info
_qlcnic_sriov_get_pf_info:              ; @qlcnic_sriov_get_pf_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _QLCNIC_CMD_GET_NIC_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_GET_NIC_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	sub	x0, x29, #48
	mov	x1, x21
	bl	_qlcnic_alloc_mbx_args
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_2:
	ldur	x8, [x29, #-40]
	mov	w9, #2
	str	w9, [x8, #4]
	sub	x1, x29, #48
	mov	x0, x21
	bl	_qlcnic_issue_cmd
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldur	x8, [x29, #-48]
	ldrb	w9, [x8, #8]
	str	w9, [x20]
	ldrb	w9, [x8, #9]
	str	w9, [x20, #4]
	ldr	w0, [x8, #8]
	bl	_MSW
	str	x0, [x20, #104]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #12]
	bl	_LSW
	str	x0, [x20, #96]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #12]
	bl	_MSW
	str	x0, [x20, #88]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #16]
	bl	_LSW
	str	x0, [x20, #80]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #16]
	bl	_MSW
	str	x0, [x20, #72]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #20]
	bl	_LSW
	str	x0, [x20, #64]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #20]
	bl	_MSW
	str	x0, [x20, #56]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #24]
	bl	_LSW
	str	x0, [x20, #48]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #24]
	bl	_MSW
	str	x0, [x20, #40]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #28]
	bl	_LSW
	str	x0, [x20, #32]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #28]
	bl	_MSW
	str	x0, [x20, #24]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #32]
	bl	_LSW
	str	x0, [x20, #16]
	ldur	x8, [x29, #-48]
	ldr	w0, [x8, #32]
	bl	_MSW
	str	x0, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_qlcnic_sriov_set_vf_max_vlan
	mov	x0, x21
	mov	x1, x20
	bl	_qlcnic_sriov_pf_set_ff_max_res
	ldr	x0, [x21]
	ldp	w2, w3, [x20]
	ldp	x5, x4, [x20, #96]
	ldp	x7, x6, [x20, #80]
	ldp	x9, x8, [x20, #64]
	ldp	x11, x10, [x20, #48]
	ldp	x13, x12, [x20, #32]
	ldp	x15, x14, [x20, #16]
	ldr	x16, [x20, #8]
	stp	x15, x16, [sp, #56]
	stp	x13, x14, [sp, #40]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
	bl	_dev_info
LBB0_5:
	sub	x0, x29, #48
	bl	_qlcnic_free_mbx_args
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_GET_NIC_INFO,4,2    ; @QLCNIC_CMD_GET_NIC_INFO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get PF info, err=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"\n\ttotal_pf: %d,\n\n\ttotal_rss_engines: %d max_vports: %d max_tx_ques %d,\n\tmax_tx_mac_filters: %d max_rx_mcast_mac_filters: %d,\n\tmax_rx_ucast_mac_filters: 0x%x, max_rx_ip_addr: %d,\n\tmax_rx_lro_flow: %d max_rx_status_rings: %d,\n\tmax_rx_buf_rings: %d, max_rx_ques: %d, max_tx_vlan_keys %d\n\tmax_local_ipv6_addrs: %d, max_remote_ipv6_addrs: %d\n"

	.no_dead_strip	_qlcnic_sriov_get_pf_info
.subsections_via_symbols
