	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_update_qps
_mlx4_ib_update_qps:                    ## @mlx4_ib_update_qps
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MLX4_IB_INVALID_MAC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_dev_base_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_read_lock
	movl	(%rbx), %edi
	callq	_mlx4_mac_to_u64
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_read_unlock
	movslq	%r13d, %rbx
	leaq	-4(,%rbx,4), %rdi
	addq	24(%r14), %rdi
	movq	%r15, %rsi
	callq	_atomic64_set
	movl	8(%r14), %edi
	callq	_mlx4_is_mfunc
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	decq	%rbx
	leaq	(,%rbx,4), %r12
	movq	(%r14), %rdi
	addq	%r12, %rdi
	callq	_mutex_lock
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_7
## %bb.2:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	8(%r13), %rbx
	cmpq	%rbx, %r15
	je	LBB0_7
## %bb.3:
	movl	8(%r14), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	callq	_mlx4_register_mac
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, -64(%rbp)
	movl	8(%r14), %edi
	movl	24(%r13), %esi
	movq	_MLX4_UPDATE_QP_SMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	callq	_mlx4_update_qp
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%r15, %rdx
	jmp	LBB0_8
LBB0_7:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_8:
	movq	_MLX4_IB_INVALID_MAC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_10
## %bb.9:
	movl	8(%r14), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mlx4_unregister_mac
LBB0_10:
	testq	%r13, %r13
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_12:
	addq	(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	cmpl	$0, 16(%r13)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmovneq	%rbx, %rdx
	movq	%r15, 8(%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r13)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%r13)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_IB_INVALID_MAC,8,3        ## @MLX4_IB_INVALID_MAC
	.comm	_dev_base_lock,4,2              ## @dev_base_lock
	.comm	_MLX4_UPDATE_QP_SMAC,4,2        ## @MLX4_UPDATE_QP_SMAC
	.no_dead_strip	_mlx4_ib_update_qps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_update_qps
_mlx4_ib_update_qps:                    ; @mlx4_ib_update_qps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _MLX4_IB_INVALID_MAC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MLX4_IB_INVALID_MAC@GOTPAGEOFF]
	ldr	x21, [x25]
Lloh2:
	adrp	x24, _dev_base_lock@GOTPAGE
Lloh3:
	ldr	x24, [x24, _dev_base_lock@GOTPAGEOFF]
	mov	x0, x24
	bl	_read_lock
	ldr	w0, [x22]
	bl	_mlx4_mac_to_u64
	mov	x23, x0
	mov	x0, x24
	bl	_read_unlock
	ldr	x8, [x19, #24]
	sub	w22, w20, #1
	add	x0, x8, w22, sxtw #2
	mov	x1, x23
	bl	_atomic64_set
	ldr	w0, [x19, #8]
	bl	_mlx4_is_mfunc
	cbz	w0, LBB0_12
; %bb.1:
	sxtw	x26, w22
	ldr	x8, [x19]
	add	x0, x8, x26, lsl #2
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	ldr	x22, [x8, x26, lsl #3]
	cbz	x22, LBB0_7
; %bb.2:
	mov	x0, x22
	bl	_mutex_lock
	ldr	x27, [x22, #8]
	cmp	x23, x27
	b.eq	LBB0_7
; %bb.3:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x23
	bl	_mlx4_register_mac
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x24, x0
	str	w0, [sp, #8]
	ldr	w0, [x19, #8]
	ldr	w1, [x22, #24]
Lloh4:
	adrp	x8, _MLX4_UPDATE_QP_SMAC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX4_UPDATE_QP_SMAC@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_mlx4_update_qp
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x23
	b	LBB0_7
LBB0_6:
	ldr	w8, [x22, #16]
	cmp	w8, #0
	csel	x21, x21, x27, eq
	str	x23, [x22, #8]
	stp	w20, w24, [x22, #16]
LBB0_7:
	ldr	x8, [x25]
	cmp	x21, x8
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x21
	bl	_mlx4_unregister_mac
LBB0_9:
	cbz	x22, LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_11:
	ldr	x8, [x19]
	add	x0, x8, x26, lsl #2
	bl	_mutex_unlock
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_IB_INVALID_MAC,8,3        ; @MLX4_IB_INVALID_MAC
	.comm	_dev_base_lock,4,2              ; @dev_base_lock
	.comm	_MLX4_UPDATE_QP_SMAC,4,2        ; @MLX4_UPDATE_QP_SMAC
	.no_dead_strip	_mlx4_ib_update_qps
.subsections_via_symbols
