	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_UPDATE_QP_wrapper         ## -- Begin function mlx4_UPDATE_QP_wrapper
	.p2align	4, 0x90
_mlx4_UPDATE_QP_wrapper:                ## @mlx4_UPDATE_QP_wrapper
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$16777215, %r12d                ## imm = 0xFFFFFF
	andl	(%rdx), %r12d
	movq	8(%rcx), %r15
	movl	24(%r15), %edi
	callq	_be64_to_cpu
	cmpq	$0, 16(%r15)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r15)
	jne	LBB0_3
## %bb.2:
	movq	_MLX4_UPD_QP_PATH_MASK_SUPPORTED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	testq	%rcx, %rax
	je	LBB0_5
LBB0_3:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MLX4_UPD_QP_PATH_MASK_ETH_SRC_CHECK_MC_LB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btq	%rcx, %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jae	LBB0_8
## %bb.6:
	movq	_MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_7
LBB0_8:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_RES_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_get_res
	movl	%r14d, %ecx
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_16
LBB0_10:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_MLX4_UPD_QP_PATH_MASK_MAC_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	btq	%rax, %rcx
	jae	LBB0_13
## %bb.11:
	movq	-72(%rbp), %rax
	xorl	%edx, %edx
	btl	$6, (%rax)
	adcl	$1, %edx
	movl	(%r15), %r15d
	leaq	-80(%rbp), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_mac_find_smac_ix_in_slave
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_mlx4_err
	movq	%rbx, %rdi
	movq	_RES_QP@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_mlx4_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	_MLX4_CMD_UPDATE_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_mlx4_cmd
	testl	%eax, %eax
	movq	%rbx, %rdi
	movq	_RES_QP@GOTPCREL(%rip), %rbx
	je	LBB0_15
## %bb.14:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_mlx4_err
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %r14d
LBB0_15:
	movl	(%rbx), %ecx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	callq	_put_res
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_UPD_QP_PATH_MASK_SUPPORTED,8,3 ## @MLX4_UPD_QP_PATH_MASK_SUPPORTED
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_MLX4_UPD_QP_PATH_MASK_ETH_SRC_CHECK_MC_LB,8,3 ## @MLX4_UPD_QP_PATH_MASK_ETH_SRC_CHECK_MC_LB
	.comm	_MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB,4,2 ## @MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Src check LB for slave %d isn't supported\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_RES_QP,4,2                     ## @RES_QP
L_.str.1:                               ## @.str.1
	.asciz	"Updating qpn 0x%x for slave %d rejected\n"

	.comm	_MLX4_UPD_QP_PATH_MASK_MAC_INDEX,8,3 ## @MLX4_UPD_QP_PATH_MASK_MAC_INDEX
L_.str.2:                               ## @.str.2
	.asciz	"Failed to update qpn 0x%x, MAC is invalid. smac_ix: %d\n"

	.comm	_MLX4_CMD_UPDATE_QP,4,2         ## @MLX4_CMD_UPDATE_QP
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
L_.str.3:                               ## @.str.3
	.asciz	"Failed to update qpn on qpn 0x%x, command failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_UPDATE_QP_wrapper         ; -- Begin function mlx4_UPDATE_QP_wrapper
	.p2align	2
_mlx4_UPDATE_QP_wrapper:                ; @mlx4_UPDATE_QP_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x2]
	ldr	x27, [x3, #8]
	ldr	w0, [x27, #24]
	bl	_be64_to_cpu
	ldr	x8, [x27, #16]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x27, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x25, x0
Lloh0:
	adrp	x8, _MLX4_UPD_QP_PATH_MASK_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_UPD_QP_PATH_MASK_SUPPORTED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bics	xzr, x0, x8
	b.eq	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_5:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
Lloh5:
	adrp	x8, _MLX4_UPD_QP_PATH_MASK_ETH_SRC_CHECK_MC_LB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX4_UPD_QP_PATH_MASK_ETH_SRC_CHECK_MC_LB@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	lsr	x8, x25, x8
	tbz	w8, #0, LBB0_8
; %bb.7:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_8:
	and	w21, w21, #0xffffff
Lloh11:
	adrp	x26, _RES_QP@GOTPAGE
Lloh12:
	ldr	x26, [x26, _RES_QP@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_get_res
	cbz	w0, LBB0_10
; %bb.9:
	mov	x24, x0
	str	x19, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx4_err
	b	LBB0_5
LBB0_10:
Lloh15:
	adrp	x8, _MLX4_UPD_QP_PATH_MASK_MAC_INDEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX4_UPD_QP_PATH_MASK_MAC_INDEX@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	lsr	x8, x25, x8
	tbz	w8, #0, LBB0_14
; %bb.11:
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	ubfx	w8, w8, #6, #1
	add	w2, w8, #1
	ldr	w25, [x27]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	x3, x25
	bl	_mac_find_smac_ix_in_slave
	cbz	w0, LBB0_14
; %bb.12:
	mov	x24, x0
	str	x25, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_mlx4_warn
Lloh22:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
	ldr	w1, [x23]
	ldr	w2, [x22]
Lloh24:
	adrp	x8, _MLX4_CMD_UPDATE_QP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MLX4_CMD_UPDATE_QP@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
Lloh27:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh29:
	ldr	w5, [x8]
Lloh30:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh32:
	ldr	w6, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_mlx4_cmd
	mov	x24, x0
	cbz	w0, LBB0_17
; %bb.15:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	mov	x0, x20
	mov	x2, x21
	bl	_mlx4_err
LBB0_17:
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_put_res
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_UPD_QP_PATH_MASK_SUPPORTED,8,3 ; @MLX4_UPD_QP_PATH_MASK_SUPPORTED
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_MLX4_UPD_QP_PATH_MASK_ETH_SRC_CHECK_MC_LB,8,3 ; @MLX4_UPD_QP_PATH_MASK_ETH_SRC_CHECK_MC_LB
	.comm	_MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB,4,2 ; @MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Src check LB for slave %d isn't supported\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_RES_QP,4,2                     ; @RES_QP
l_.str.1:                               ; @.str.1
	.asciz	"Updating qpn 0x%x for slave %d rejected\n"

	.comm	_MLX4_UPD_QP_PATH_MASK_MAC_INDEX,8,3 ; @MLX4_UPD_QP_PATH_MASK_MAC_INDEX
l_.str.2:                               ; @.str.2
	.asciz	"Failed to update qpn 0x%x, MAC is invalid. smac_ix: %d\n"

	.comm	_MLX4_CMD_UPDATE_QP,4,2         ; @MLX4_CMD_UPDATE_QP
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
l_.str.3:                               ; @.str.3
	.asciz	"Failed to update qpn on qpn 0x%x, command failed\n"

.subsections_via_symbols
