	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_init_sriov             ## -- Begin function mlx4_ib_init_sriov
	.p2align	4, 0x90
_mlx4_ib_init_sriov:                    ## @mlx4_ib_init_sriov
	.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	%rdi, %r13
	movq	40(%rdi), %rdi
	callq	_mlx4_is_mfunc
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	$0, 32(%r13)
	leaq	24(%r13), %rdi
	callq	_spin_lock_init
	movq	%r13, %rdi
	callq	_mlx4_ib_cm_paravirt_init
	leaq	48(%r13), %r15
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_ib_warn
	movq	40(%r13), %rdi
	callq	_mlx4_is_slave
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_ib_warn
	jmp	LBB0_29
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_29
LBB0_4:
	movq	40(%r13), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_mlx4_ib_gen_node_guid
	movl	%eax, %edx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mlx4_put_slave_node_guid
	incl	%ebx
	movq	40(%r13), %rdi
	cmpl	(%rdi), %ebx
	jge	LBB0_10
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	callq	_mlx4_master_func_num
	movq	40(%r13), %r14
	cmpl	%eax, %ebx
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %edx
	jmp	LBB0_7
LBB0_10:
	movq	%r13, %rdi
	callq	_mlx4_ib_init_alias_guid_service
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_ib_warn
	jmp	LBB0_28
LBB0_12:
	movq	%r13, %rdi
	callq	_mlx4_ib_device_register_sysfs
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_ib_warn
	jmp	LBB0_27
LBB0_14:
	movq	40(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_ib_warn
	cmpl	$0, (%r13)
	jle	LBB0_20
## %bb.15:
	movl	$1, %r12d
	movq	$-16, %rbx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	leaq	-56(%rbp), %rcx
	movl	$1, %r8d
	callq	___mlx4_ib_query_gid
	testl	%eax, %eax
	jne	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	-52(%rbp), %eax
	movq	8(%r13), %rcx
	movq	24(%rcx,%rbx), %rdx
	movl	%eax, (%rdx)
	leaq	(%rcx,%rbx), %r14
	addq	$16, %r14
	movl	-56(%rbp), %edi
	callq	_be64_to_cpu
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_atomic64_set
	movq	40(%r13), %rdi
	callq	_mlx4_master_func_num
	movq	16(%r13), %rcx
	addq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_alloc_pv_object
	testl	%eax, %eax
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r13), %rax
	leaq	(%rax,%rbx), %rsi
	addq	$16, %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_mlx4_ib_alloc_demux_ctx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movslq	(%r13), %rax
	leaq	1(%r12), %rcx
	addq	$16, %rbx
	addq	$4, -48(%rbp)                   ## 8-byte Folded Spill
	cmpq	%rax, %r12
	movq	%rcx, %r12
	jl	LBB0_16
LBB0_20:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_mlx4_ib_master_tunnels
	xorl	%r14d, %r14d
	jmp	LBB0_29
LBB0_22:
	movl	%eax, %r14d
	jmp	LBB0_24
LBB0_23:
	movl	%eax, %r14d
	movq	40(%r13), %rdi
	callq	_mlx4_master_func_num
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_free_pv_object
LBB0_24:
	cmpl	$1, %r12d
	je	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rdi
	callq	_mlx4_master_func_num
	decq	%r12
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_free_pv_object
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	callq	_mlx4_ib_free_demux_ctx
	addq	$-16, %rbx
	cmpq	$1, %r12
	ja	LBB0_25
LBB0_26:
	movq	%r13, %rdi
	callq	_mlx4_ib_device_unregister_sysfs
LBB0_27:
	movq	%r13, %rdi
	callq	_mlx4_ib_destroy_alias_guid_service
LBB0_28:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_mlx4_ib_cm_paravirt_clean
LBB0_29:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multi-function enabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"operating in qp1 tunnel mode\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed init alias guid process.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to register sysfs\n"

L_.str.4:                               ## @.str.4
	.asciz	"initializing demux service for %d qp1 clients\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_init_sriov             ; -- Begin function mlx4_ib_init_sriov
	.p2align	2
_mlx4_ib_init_sriov:                    ; @mlx4_ib_init_sriov
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x0, [x0, #40]
	bl	_mlx4_is_mfunc
	cbz	w0, LBB0_3
; %bb.1:
	str	xzr, [x19, #32]
	add	x0, x19, #24
	bl	_spin_lock_init
	mov	x0, x19
	bl	_mlx4_ib_cm_paravirt_init
	add	x20, x19, #48
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx4_ib_warn
	ldr	x0, [x19, #40]
	bl	_mlx4_is_slave
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mlx4_ib_warn
LBB0_3:
	mov	w22, #0
	b	LBB0_29
LBB0_4:
	ldr	x0, [x19, #40]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_mlx4_ib_gen_node_guid
	mov	x2, x0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_mlx4_put_slave_node_guid
	add	w21, w21, #1
	ldr	x0, [x19, #40]
	ldr	w8, [x0]
	cmp	w21, w8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_mlx4_master_func_num
	ldr	x22, [x19, #40]
	cmp	w21, w0
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x20]
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_mlx4_ib_init_alias_guid_service
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_mlx4_ib_warn
	b	LBB0_28
LBB0_12:
	mov	x0, x19
	bl	_mlx4_ib_device_register_sysfs
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_mlx4_ib_warn
	b	LBB0_27
LBB0_14:
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_mlx4_ib_warn
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.15:
	mov	x24, #0
	mov	x23, #0
	mov	w21, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w4, #1
	bl	___mlx4_ib_query_gid
	cbnz	w0, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [sp, #12]
	ldr	x9, [x19, #8]
	add	x22, x9, x23
	ldr	x9, [x22, #8]
	str	w8, [x9]
	ldr	w0, [sp, #8]
	bl	_be64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_atomic64_set
	ldr	x0, [x19, #40]
	bl	_mlx4_master_func_num
	mov	x1, x0
	ldr	x8, [x19, #16]
	add	x3, x8, x24
	mov	x0, x19
	mov	x2, x21
	bl	_alloc_pv_object
	cbnz	w0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x23
	mov	x0, x19
	mov	x2, x21
	bl	_mlx4_ib_alloc_demux_ctx
	cbnz	w0, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrsw	x8, [x19]
	add	x9, x21, #1
	add	x23, x23, #16
	add	x24, x24, #4
	cmp	x21, x8
	mov	x21, x9
	b.lt	LBB0_16
LBB0_20:
	mov	x0, x19
	mov	w1, #1
	bl	_mlx4_ib_master_tunnels
	mov	w22, #0
	b	LBB0_29
LBB0_21:
	mov	x22, x0
	b	LBB0_23
LBB0_22:
	mov	x22, x0
	ldr	x0, [x19, #40]
	bl	_mlx4_master_func_num
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_free_pv_object
LBB0_23:
	cmp	w21, #1
	b.eq	LBB0_26
; %bb.24:
	sub	x20, x23, #16
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #40]
	bl	_mlx4_master_func_num
	mov	x1, x0
	sub	x21, x21, #1
	mov	x0, x19
	mov	x2, x21
	bl	_free_pv_object
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_mlx4_ib_free_demux_ctx
	sub	x20, x20, #16
	cmp	x21, #1
	b.hi	LBB0_25
LBB0_26:
	mov	x0, x19
	bl	_mlx4_ib_device_unregister_sysfs
LBB0_27:
	mov	x0, x19
	bl	_mlx4_ib_destroy_alias_guid_service
LBB0_28:
	mov	x0, x19
	mov	w1, #-1
	bl	_mlx4_ib_cm_paravirt_clean
LBB0_29:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multi-function enabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"operating in qp1 tunnel mode\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed init alias guid process.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to register sysfs\n"

l_.str.4:                               ; @.str.4
	.asciz	"initializing demux service for %d qp1 clients\n"

.subsections_via_symbols
