	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_get_act_pci_func
_qlcnic_get_act_pci_func:               ## @qlcnic_get_act_pci_func
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rcx
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.6:
	movq	8(%rcx), %rdx
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_10
## %bb.7:
	movq	%rdi, %rbx
	movl	16(%rcx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_qlcnic_get_pci_info
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	movl	%ebx, %eax
	jmp	LBB0_10
LBB0_1:
	movl	(%rcx), %edx
	xorl	%eax, %eax
	cmpl	$128, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_10
## %bb.3:
	movq	_QLCNIC_NIU_MAX_GBE_PORTS@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_5:
	movq	_QLCNIC_NIU_MAX_XG_PORTS@GOTPCREL(%rip), %rdx
LBB0_4:
	movl	(%rdx), %edx
	movl	%edx, 20(%rcx)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ## @QLCNIC_ESWITCH_ENABLED
	.comm	_QLCNIC_NIU_MAX_GBE_PORTS,4,2   ## @QLCNIC_NIU_MAX_GBE_PORTS
	.comm	_QLCNIC_NIU_MAX_XG_PORTS,4,2    ## @QLCNIC_NIU_MAX_XG_PORTS
	.comm	_QLCNIC_MGMT_FUNC,8,3           ## @QLCNIC_MGMT_FUNC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_qlcnic_get_act_pci_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_get_act_pci_func
_qlcnic_get_act_pci_func:               ; @qlcnic_get_act_pci_func
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.1:
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x10, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	w0, [x8, #16]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_qlcnic_get_pci_info
	mov	x19, x0
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	b	LBB0_11
LBB0_4:
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_9
; %bb.5:
	cmp	w9, #129
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
Lloh9:
	adrp	x9, _QLCNIC_NIU_MAX_GBE_PORTS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QLCNIC_NIU_MAX_GBE_PORTS@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
	mov	w0, #0
Lloh14:
	adrp	x9, _QLCNIC_NIU_MAX_XG_PORTS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QLCNIC_NIU_MAX_XG_PORTS@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	str	w9, [x8, #20]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ; @QLCNIC_ESWITCH_ENABLED
	.comm	_QLCNIC_NIU_MAX_GBE_PORTS,4,2   ; @QLCNIC_NIU_MAX_GBE_PORTS
	.comm	_QLCNIC_NIU_MAX_XG_PORTS,4,2    ; @QLCNIC_NIU_MAX_XG_PORTS
	.comm	_QLCNIC_MGMT_FUNC,8,3           ; @QLCNIC_MGMT_FUNC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_qlcnic_get_act_pci_func
.subsections_via_symbols
