	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_get_pci_info       ## -- Begin function qlcnic_83xx_get_pci_info
	.p2align	4, 0x90
_qlcnic_83xx_get_pci_info:              ## @qlcnic_83xx_get_pci_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	%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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %r13
	movq	_QLCNIC_CMD_GET_PCI_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_mbx_args
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_qlcnic_issue_cmd
	movl	%eax, %edx
	movl	$0, 16(%r13)
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_11
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	movzbl	4(%rax), %ecx
	movl	%ecx, (%r13)
	movq	_QLCNIC_MAX_PCI_FUNC@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_9
## %bb.2:
	addq	$32, %rbx
	movl	$16, %r14d
	movl	$1, %r15d
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	-8(%rax,%r14), %ecx
	movl	%ecx, -32(%rbx)
	movzwl	-6(%rax,%r14), %ecx
	movl	%ecx, -28(%rbx)
	movzwl	-4(%rax,%r14), %ecx
	movl	%ecx, -24(%rbx)
	movq	_QLCNIC_TYPE_NIC@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%r13)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzwl	-2(%rax,%r14), %ecx
	movq	%rcx, (%rbx)
	leaq	(%rax,%r14), %rsi
	addq	$8, %rsi
	movzwl	(%rax,%r14), %ecx
	movl	%ecx, -20(%rbx)
	movzwl	2(%rax,%r14), %eax
	movq	%rax, -8(%rbx)
	movl	-16(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$-2, %edx
	callq	_memcpy
	movl	-16(%rbx), %edi
	addl	$8, %edi
	movq	-48(%rbp), %rax
	leaq	(%rax,%r14), %rsi
	addq	$12, %rsi
	movl	$2, %edx
	callq	_memcpy
	movq	8(%r13), %rax
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-32(%rbx), %edx
	movl	-28(%rbx), %ecx
	movl	-24(%rbx), %r8d
	movq	(%rbx), %r9
	movl	-20(%rbx), %r10d
	movl	-16(%rbx), %r11d
	subq	$8, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r11
	pushq	-8(%rbx)
	pushq	%r10
	callq	_dev_info
	addq	$32, %rsp
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_QLCNIC_MAX_PCI_FUNC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	addq	$32, %r14
	addq	$40, %rbx
	incl	%r15d
	jmp	LBB0_3
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	movq	8(%r13), %rax
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_12
## %bb.10:
	movl	(%r13), %edx
	movl	16(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_info
LBB0_12:
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_GET_PCI_INFO,4,2    ## @QLCNIC_CMD_GET_PCI_INFO
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
	.comm	_QLCNIC_MAX_PCI_FUNC,4,2        ## @QLCNIC_MAX_PCI_FUNC
	.comm	_QLCNIC_TYPE_NIC,4,2            ## @QLCNIC_TYPE_NIC
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_QLCNIC_MGMT_FUNC,8,3           ## @QLCNIC_MGMT_FUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"id = %d active = %d type = %d\n\tport = %d min bw = %d max bw = %d\n\tmac_addr =  %pM\n"

L_.str.1:                               ## @.str.1
	.asciz	"Max vNIC functions = %d, active vNIC functions = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get PCI Info, error = %d\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_get_pci_info       ; -- Begin function qlcnic_83xx_get_pci_info
	.p2align	2
_qlcnic_83xx_get_pci_info:              ; @qlcnic_83xx_get_pci_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x1
	mov	x19, x0
	ldp	x20, x22, [x0]
Lloh0:
	adrp	x8, _QLCNIC_CMD_GET_PCI_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_GET_PCI_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #56
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	add	x1, sp, #56
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x2, x0
	str	wzr, [x22, #16]
Lloh3:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.1:
	str	w2, [sp, #52]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #56]
	ldrb	w9, [x8, #4]
	str	w9, [x22]
Lloh6:
	adrp	x23, _QLCNIC_MAX_PCI_FUNC@GOTPAGE
Lloh7:
	ldr	x23, [x23, _QLCNIC_MAX_PCI_FUNC@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh8:
	adrp	x24, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh9:
	ldr	x24, [x24, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x25, #0
	add	x26, x21, #16
	mov	w27, #1
Lloh10:
	adrp	x28, _QLCNIC_TYPE_NIC@GOTPAGE
Lloh11:
	ldr	x28, [x28, _QLCNIC_TYPE_NIC@GOTPAGEOFF]
Lloh12:
	adrp	x19, _ETH_ALEN@GOTPAGE
Lloh13:
	ldr	x19, [x19, _ETH_ALEN@GOTPAGEOFF]
Lloh14:
	adrp	x21, l_.str@PAGE
Lloh15:
	add	x21, x21, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x25
	ldrh	w9, [x8, #8]
	stur	w9, [x26, #-16]
	ldrh	w9, [x8, #10]
	stur	w9, [x26, #-12]
	ldrh	w9, [x8, #12]
	stur	w9, [x26, #-8]
	ldr	w10, [x28]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x22, #16]
	add	w9, w9, #1
	str	w9, [x22, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrh	w9, [x8, #14]
	ldrh	w10, [x8, #16]
	stur	w10, [x26, #-4]
	ldrh	w10, [x8, #18]
	stp	x10, x9, [x26, #8]
	ldr	w0, [x26]
	add	x1, x8, #24
	ldr	w8, [x19]
	sub	w2, w8, #2
	bl	_memcpy
	ldr	w8, [x26]
	add	w0, w8, #8
	ldr	x8, [sp, #56]
	add	x8, x8, x25
	add	x1, x8, #28
	mov	w2, #2
	bl	_memcpy
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w2, w3, [x26, #-16]
	ldp	x9, x8, [x26, #8]
	ldp	w10, w11, [x26, #-8]
	ldr	w12, [x26]
	stp	x9, x12, [sp, #24]
	stp	x8, x11, [sp, #8]
	str	x10, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_dev_info
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	cmp	w27, w8
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #56]
	add	x25, x25, #32
	add	w27, w27, #1
	add	x26, x26, #40
	b	LBB0_3
LBB0_9:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_10:
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	ldr	w19, [sp, #52]                  ; 4-byte Folded Reload
	b.ne	LBB0_12
; %bb.11:
	ldr	w2, [x22]
	ldr	w3, [x22, #16]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_12:
	add	x0, sp, #56
	bl	_qlcnic_free_mbx_args
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_GET_PCI_INFO,4,2    ; @QLCNIC_CMD_GET_PCI_INFO
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
	.comm	_QLCNIC_MAX_PCI_FUNC,4,2        ; @QLCNIC_MAX_PCI_FUNC
	.comm	_QLCNIC_TYPE_NIC,4,2            ; @QLCNIC_TYPE_NIC
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_QLCNIC_MGMT_FUNC,8,3           ; @QLCNIC_MGMT_FUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"id = %d active = %d type = %d\n\tport = %d min bw = %d max bw = %d\n\tmac_addr =  %pM\n"

l_.str.1:                               ; @.str.1
	.asciz	"Max vNIC functions = %d, active vNIC functions = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get PCI Info, error = %d\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
