	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_tunnels_update
_mlx4_ib_tunnels_update:                ## @mlx4_ib_tunnels_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.4:
	leaq	16(%rbx), %r12
	movq	8(%rbx), %rax
	movslq	%r15d, %r15
	movq	-8(%rax,%r15,8), %rax
	movslq	%r14d, %rsi
	movl	(%rax,%rsi,4), %r8d
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	_create_pv_resources
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	20(%rbx), %edi
	callq	_mlx4_master_func_num
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	jne	LBB0_6
## %bb.7:
	leaq	-1(%r15), %rax
	movq	(%rbx), %rcx
	movl	(%rcx,%rax,4), %r8d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_create_pv_resources            ## TAILCALL
LBB0_1:
	movslq	%r15d, %r12
	leaq	-8(,%r12,8), %rdi
	decq	%r12
	addq	8(%rbx), %rdi
	movl	%r14d, %esi
	callq	_clean_vf_mcast
	movl	20(%rbx), %edi
	callq	_mlx4_master_func_num
	cmpl	%r14d, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$1, %r8d
	callq	_destroy_pv_resources
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$1, %r8d
	callq	_destroy_pv_resources
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlx4_ib_tunnels_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_tunnels_update
_mlx4_ib_tunnels_update:                ; @mlx4_ib_tunnels_update
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbz	w3, LBB0_4
; %bb.1:
	add	x22, x21, #16
	ldr	x8, [x21, #8]
	mov	x9, x19
	sxtw	x9, w9
	sub	x23, x9, #1
	ldr	x8, [x8, x23, lsl #3]
	ldr	w4, [x8, w20, sxtw #2]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	bl	_create_pv_resources
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w0, [x21, #20]
	bl	_mlx4_master_func_num
	cmp	w0, w20
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x21]
	ldr	w4, [x8, x23, lsl #2]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	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
	b	_create_pv_resources
LBB0_4:
	ldr	x8, [x21, #8]
	sxtw	x9, w19
	sub	x22, x9, #1
	add	x0, x8, x22, lsl #3
	mov	x1, x20
	bl	_clean_vf_mcast
	ldr	w0, [x21, #20]
	bl	_mlx4_master_func_num
	cmp	w0, w20
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x21]
	ldr	w3, [x8, x22, lsl #2]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #1
	bl	_destroy_pv_resources
LBB0_6:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w3, [x8, w20, sxtw #2]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #1
	bl	_destroy_pv_resources
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlx4_ib_tunnels_update
.subsections_via_symbols
