	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_init_pci_info           ## -- Begin function qlcnic_init_pci_info
	.p2align	4, 0x90
_qlcnic_init_pci_info:                  ## @qlcnic_init_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_QLCNIC_MAX_PCI_FUNC@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$56, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_qlcnic_get_pci_info
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_23:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_24
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_QLCNIC_NIU_MAX_XG_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_21
## %bb.6:
	movl	(%r13), %r10d
	testl	%r10d, %r10d
	jle	LBB0_10
## %bb.7:
	xorl	%ecx, %ecx
	movq	_QLCNIC_TYPE_NIC@GOTPCREL(%rip), %r8
	movq	%r14, %rsi
	xorl	%r9d, %r9d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	movslq	%r10d, %rdx
	addq	$56, %rsi
	cmpq	%rdx, %rcx
	jge	LBB0_10
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edx
	cmpl	%r10d, %edx
	jge	LBB0_9
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%rsi), %edi
	testl	%edi, %edi
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rsi), %r11
	cmpq	(%r8), %r11
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15), %r10
	movslq	%r9d, %r9
	imulq	$56, %r9, %rbx
	movl	%edx, 16(%r10,%rbx)
	movl	%edi, 4(%r10,%rbx)
	movslq	%r11d, %rdx
	movq	%rdx, 8(%r10,%rbx)
	movl	48(%rsi), %edx
	movl	%edx, 20(%r10,%rbx)
	movl	36(%rsi), %edx
	movl	%edx, 40(%r10,%rbx)
	movl	28(%rsi), %edx
	movl	%edx, 32(%r10,%rbx)
	incl	%r9d
	movl	(%r13), %r10d
	jmp	LBB0_19
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_10:
	movq	_QLCNIC_NIU_MAX_XG_PORTS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_20
## %bb.11:
	movl	$24, %r12d
	xorl	%ebx, %ebx
	movq	_QLCNIC_SWITCH_ENABLE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	orl	%ecx, (%rax,%r12)
	movq	%r15, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_qlcnic_enable_eswitch
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movq	_QLCNIC_NIU_MAX_XG_PORTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r15), %rax
	addq	$56, %r12
	jmp	LBB0_12
LBB0_20:
	movq	%r14, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_9:
	movq	_QL_STATUS_INVALID_PARAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%rax, %rdi
	callq	_kfree
	movq	$0, 8(%r15)
LBB0_22:
	movq	(%r15), %rdi
	callq	_kfree
	movq	$0, (%r15)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_MAX_PCI_FUNC,4,2        ## @QLCNIC_MAX_PCI_FUNC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_NIU_MAX_XG_PORTS,4,2    ## @QLCNIC_NIU_MAX_XG_PORTS
	.comm	_QL_STATUS_INVALID_PARAM,4,2    ## @QL_STATUS_INVALID_PARAM
	.comm	_QLCNIC_TYPE_NIC,8,3            ## @QLCNIC_TYPE_NIC
	.comm	_QLCNIC_SWITCH_ENABLE,4,2       ## @QLCNIC_SWITCH_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_init_pci_info           ; -- Begin function qlcnic_init_pci_info
	.p2align	2
_qlcnic_init_pci_info:                  ; @qlcnic_init_pci_info
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x23, _QLCNIC_MAX_PCI_FUNC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QLCNIC_MAX_PCI_FUNC@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #56
	bl	_kcalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_qlcnic_get_pci_info
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	lsl	w0, w8, #2
	ldr	w1, [x24]
	bl	_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_14
; %bb.6:
Lloh7:
	adrp	x22, _QLCNIC_NIU_MAX_XG_PORTS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _QLCNIC_NIU_MAX_XG_PORTS@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w0, w8, #2
	ldr	w1, [x24]
	bl	_kzalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_22
; %bb.7:
	ldr	w13, [x23]
	cmp	w13, #1
	b.lt	LBB0_15
; %bb.8:
	mov	x8, #0
	mov	w9, #0
Lloh9:
	adrp	x10, _QLCNIC_TYPE_NIC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _QLCNIC_TYPE_NIC@GOTPAGEOFF]
	mov	w11, #56
	mov	x12, x19
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #1
	add	x12, x12, #56
	cmp	x8, w13, sxtw
	b.ge	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12]
	cmp	w14, w13
	b.ge	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w15, [x12, #4]
	cbz	w15, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x16, [x12, #8]
	ldr	x17, [x10]
	cmp	x16, x17
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x13, [x20]
	smaddl	x13, w9, w11, x13
	str	w15, [x13, #4]
	sxtw	x15, w16
	str	x15, [x13, #8]
	ldr	x15, [x12, #48]
	stp	w14, w15, [x13, #16]
	ldr	w14, [x12, #36]
	str	w14, [x13, #40]
	ldr	w14, [x12, #28]
	str	w14, [x13, #32]
	add	w9, w9, #1
	ldr	w13, [x23]
	b	LBB0_9
LBB0_14:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_2
LBB0_15:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.16:
	mov	x21, #0
	mov	w23, #24
Lloh14:
	adrp	x24, _QLCNIC_SWITCH_ENABLE@GOTPAGE
Lloh15:
	ldr	x24, [x24, _QLCNIC_SWITCH_ENABLE@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	ldr	w9, [x0, x23]
	orr	w8, w9, w8
	str	w8, [x0, x23]
	mov	x0, x20
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_qlcnic_enable_eswitch
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.ge	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x0, [x20, #8]
	add	x23, x23, #56
	b	LBB0_17
LBB0_21:
	mov	x0, x19
	bl	_kfree
	mov	w21, #0
	b	LBB0_4
LBB0_22:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_24
LBB0_23:
Lloh19:
	adrp	x8, _QL_STATUS_INVALID_PARAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QL_STATUS_INVALID_PARAM@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	bl	_kfree
	str	xzr, [x20, #8]
LBB0_24:
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_MAX_PCI_FUNC,4,2        ; @QLCNIC_MAX_PCI_FUNC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_NIU_MAX_XG_PORTS,4,2    ; @QLCNIC_NIU_MAX_XG_PORTS
	.comm	_QL_STATUS_INVALID_PARAM,4,2    ; @QL_STATUS_INVALID_PARAM
	.comm	_QLCNIC_TYPE_NIC,8,3            ; @QLCNIC_TYPE_NIC
	.comm	_QLCNIC_SWITCH_ENABLE,4,2       ; @QLCNIC_SWITCH_ENABLE
.subsections_via_symbols
