	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_get_pci_info       ## -- Begin function qlcnic_82xx_get_pci_info
	.p2align	4, 0x90
_qlcnic_82xx_get_pci_info:              ## @qlcnic_82xx_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_QLCNIC_MAX_PCI_FUNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,8), %rcx
	leaq	(%rcx,%rcx,2), %r13
	addq	%rax, %r13
	movq	(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r13, %rsi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_memset
	movq	_QLCNIC_CMD_GET_PCI_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	-44(%rbp), %edi
	callq	_MSD
	movq	-56(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movl	-44(%rbp), %edi
	callq	_LSD
	movq	-56(%rbp), %rcx
	movq	%rax, 16(%rcx)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, 24(%rcx)
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_qlcnic_issue_cmd
	movl	%eax, %r13d
	movq	8(%r15), %rax
	movq	$0, (%rax)
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_9
## %bb.3:
	movq	_QLCNIC_MAX_PCI_FUNC@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.4:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	$24, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-12(%rbx,%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, -24(%r12,%r13,2)
	movl	-16(%rbx,%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, -32(%r12,%r13,2)
	movl	-20(%rbx,%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, -40(%r12,%r13,2)
	movl	-48(%r12,%r13,2), %edi
	movl	-24(%rbx,%r13), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	incq	%r14
	addq	$28, %r13
	movq	_QLCNIC_MAX_PCI_FUNC@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jbe	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, (%r12,%r13,2)
	movl	-4(%rbx,%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, -8(%r12,%r13,2)
	movl	-8(%rbx,%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, -16(%r12,%r13,2)
	movq	_QLCNIC_TYPE_NIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15), %rax
	incq	(%rax)
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_9:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %r13d
	jmp	LBB0_10
LBB0_8:
	movl	-60(%rbp), %r13d                ## 4-byte Reload
LBB0_10:
	movq	(%r15), %rdi
	movl	-44(%rbp), %ecx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_dma_free_coherent
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_11:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_MAX_PCI_FUNC,8,3        ## @QLCNIC_MAX_PCI_FUNC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_CMD_GET_PCI_INFO,4,2    ## @QLCNIC_CMD_GET_PCI_INFO
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
	.comm	_QLCNIC_TYPE_NIC,8,3            ## @QLCNIC_TYPE_NIC
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get PCI Info%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_82xx_get_pci_info       ; -- Begin function qlcnic_82xx_get_pci_info
	.p2align	2
_qlcnic_82xx_get_pci_info:              ; @qlcnic_82xx_get_pci_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _QLCNIC_MAX_PCI_FUNC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _QLCNIC_MAX_PCI_FUNC@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w9, #28
	mul	x20, x8, x9
	ldr	x0, [x0]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x2, sp, #4
	mov	x1, x20
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	mov	w1, #0
	mov	x2, x20
	bl	_memset
Lloh5:
	adrp	x8, _QLCNIC_CMD_GET_PCI_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_CMD_GET_PCI_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	ldr	w0, [sp, #4]
	bl	_MSD
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
	ldr	w0, [sp, #4]
	bl	_LSD
	ldr	x8, [sp, #8]
	stp	x0, x20, [x8, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x22, x0
	ldr	x8, [x19, #8]
	str	xzr, [x8]
Lloh8:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x24]
	cbz	x8, LBB0_9
; %bb.3:
	mov	x25, #0
	add	x26, x21, #12
	add	x23, x23, #24
Lloh11:
	adrp	x27, _QLCNIC_TYPE_NIC@GOTPAGE
Lloh12:
	ldr	x27, [x27, _QLCNIC_TYPE_NIC@GOTPAGEOFF]
Lloh13:
	adrp	x28, _ETH_ALEN@GOTPAGE
Lloh14:
	ldr	x28, [x28, _ETH_ALEN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	bl	_le16_to_cpu
	str	x0, [x23]
	ldur	w0, [x26, #-4]
	bl	_le16_to_cpu
	stur	x0, [x23, #-8]
	ldur	w0, [x26, #-8]
	bl	_le16_to_cpu
	stur	x0, [x23, #-16]
	ldur	w0, [x23, #-24]
	ldur	w1, [x26, #-12]
	ldr	w2, [x28]
	bl	_memcpy
	add	x25, x25, #1
	ldr	x8, [x24]
	add	x26, x26, #28
	add	x23, x23, #56
	cmp	x8, x25
	b.ls	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26, #12]
	bl	_le16_to_cpu
	str	x0, [x23, #24]
	ldr	w0, [x26, #8]
	bl	_le16_to_cpu
	str	x0, [x23, #16]
	ldr	w0, [x26, #4]
	bl	_le16_to_cpu
	str	x0, [x23, #8]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	b	LBB0_4
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	ldr	x0, [x19]
	ldr	w3, [sp, #4]
	mov	x1, x20
	mov	x2, x21
	bl	_dma_free_coherent
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_MAX_PCI_FUNC,8,3        ; @QLCNIC_MAX_PCI_FUNC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_CMD_GET_PCI_INFO,4,2    ; @QLCNIC_CMD_GET_PCI_INFO
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
	.comm	_QLCNIC_TYPE_NIC,8,3            ; @QLCNIC_TYPE_NIC
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get PCI Info%d\n"

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