	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_siena_sriov_vfs_init
_efx_siena_sriov_vfs_init:              ## @efx_siena_sriov_vfs_init
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r15
	movq	_PCI_EXT_CAP_ID_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_find_ext_capability
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movq	_PCI_SRIOV_VF_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	-68(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_word
	movq	_PCI_SRIOV_VF_STRIDE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pci_read_config_word
	cmpl	$0, (%r14)
	je	LBB0_7
## %bb.2:
	movl	-68(%rbp), %r13d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	addl	(%r15), %r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	$8, %r12d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	leaq	(%rbx,%r12), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -8(%rbx,%r12)
	movq	_EFX_VF_BUFTBL_PER_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_efx_vf_size
	movq	%r14, %r15
	movl	%eax, %r14d
	movl	%r13d, -4(%rbx,%r12)
	movl	4(%rbx,%r12), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_pci_domain_nr
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_PCI_SLOT
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_PCI_FUNC
	movl	%eax, (%rsp)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %esi
	leaq	L_.str(%rip), %rdx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_snprintf
	movq	_EFX_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_efx_nic_alloc_buffer
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	imull	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addl	%r14d, %ecx
	addl	-64(%rbp), %r13d
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movl	(%r15), %eax
	addq	$16, %r12
	cmpq	%rax, %rdx
	movq	%r15, %r14
	jb	LBB0_3
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_efx_siena_sriov_vfs_fini
LBB0_9:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ## @PCI_EXT_CAP_ID_SRIOV
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PCI_SRIOV_VF_OFFSET,8,3        ## @PCI_SRIOV_VF_OFFSET
	.comm	_PCI_SRIOV_VF_STRIDE,8,3        ## @PCI_SRIOV_VF_STRIDE
	.comm	_EFX_VF_BUFTBL_PER_VI,4,2       ## @EFX_VF_BUFTBL_PER_VI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04x:%02x:%02x.%d"

	.comm	_EFX_PAGE_SIZE,4,2              ## @EFX_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_efx_siena_sriov_vfs_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_siena_sriov_vfs_init
_efx_siena_sriov_vfs_init:              ; @efx_siena_sriov_vfs_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	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
	.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	x25, x0
	ldp	x8, x26, [x0, #8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_pci_find_ext_capability
	cbz	w0, LBB0_6
; %bb.1:
	mov	w19, w0
Lloh3:
	adrp	x8, _PCI_SRIOV_VF_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_SRIOV_VF_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x19
	add	x2, sp, #44
	mov	x0, x26
	bl	_pci_read_config_word
Lloh6:
	adrp	x8, _PCI_SRIOV_VF_STRIDE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_SRIOV_VF_STRIDE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x19
	add	x2, sp, #40
	mov	x0, x26
	bl	_pci_read_config_word
	ldr	w8, [x25]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x22, #0
	mov	x28, #0
	ldr	w8, [sp, #44]
	ldr	w9, [x26]
	add	w21, w8, w9
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w20, [x8]
	stp	x26, x25, [sp, #8]              ; 16-byte Folded Spill
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x24, x8, x22
	str	w20, [x24]
Lloh9:
	adrp	x8, _EFX_VF_BUFTBL_PER_VI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFX_VF_BUFTBL_PER_VI@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	mov	x0, x25
	bl	_efx_vf_size
	mov	x23, x0
	str	w21, [x24, #4]
	ldr	w8, [x24, #12]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x0, [x26, #8]
	bl	_pci_domain_nr
	mov	x25, x0
	ldr	x8, [x26, #8]
	ldr	w26, [x8]
	mov	x0, x21
	bl	_PCI_SLOT
	mov	x27, x0
	mov	x0, x21
	bl	_PCI_FUNC
	mov	x6, x0
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	mov	w1, #4
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x25
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	mov	x4, x26
	mov	x5, x27
	bl	_snprintf
	add	x1, x24, #8
Lloh14:
	adrp	x8, _EFX_PAGE_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFX_PAGE_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x25
	bl	_efx_nic_alloc_buffer
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	w20, w23, w19, w20
	ldr	w8, [sp, #40]
	add	w21, w8, w21
	add	x28, x28, #1
	ldr	w8, [x25]
	add	x22, x22, #16
	cmp	x28, x8
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b.lo	LBB0_3
LBB0_5:
	mov	w24, #0
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _ENOENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_8
LBB0_7:
	mov	x24, x0
	mov	x0, x25
	bl	_efx_siena_sriov_vfs_fini
LBB0_8:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ; @PCI_EXT_CAP_ID_SRIOV
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PCI_SRIOV_VF_OFFSET,8,3        ; @PCI_SRIOV_VF_OFFSET
	.comm	_PCI_SRIOV_VF_STRIDE,8,3        ; @PCI_SRIOV_VF_STRIDE
	.comm	_EFX_VF_BUFTBL_PER_VI,4,2       ; @EFX_VF_BUFTBL_PER_VI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04x:%02x:%02x.%d"

	.comm	_EFX_PAGE_SIZE,4,2              ; @EFX_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_efx_siena_sriov_vfs_init
.subsections_via_symbols
