	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_qp_to_ready               ## -- Begin function mlx4_qp_to_ready
	.p2align	4, 0x90
_mlx4_qp_to_ready:                      ## @mlx4_qp_to_ready
	.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
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MLX4_QP_STATE_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_MLX4_QP_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_MLX4_QP_STATE_RTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_MLX4_QP_STATE_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	xorl	%r14d, %r14d
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.1:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$268435455, %edi                ## imm = 0xFFFFFFF
	callq	_cpu_to_be32
	andl	%eax, (%rbx)
	movl	-60(%rbp,%r15,4), %edi
	shll	$28, %edi
	callq	_cpu_to_be32
	orl	%eax, (%rbx)
	movl	-64(%rbp,%r15,4), %edx
	movl	-60(%rbp,%r15,4), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_mlx4_qp_modify
	addq	$16, %rsp
	movl	-60(%rbp,%r15,4), %edx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	cltq
	cmpq	%rax, %r15
	jl	LBB0_2
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_mlx4_err
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_QP_STATE_RST,4,2          ## @MLX4_QP_STATE_RST
	.comm	_MLX4_QP_STATE_INIT,4,2         ## @MLX4_QP_STATE_INIT
	.comm	_MLX4_QP_STATE_RTR,4,2          ## @MLX4_QP_STATE_RTR
	.comm	_MLX4_QP_STATE_RTS,4,2          ## @MLX4_QP_STATE_RTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to bring QP to state: %d with error: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_qp_to_ready               ; -- Begin function mlx4_qp_to_ready
	.p2align	2
_mlx4_qp_to_ready:                      ; @mlx4_qp_to_ready
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _MLX4_QP_STATE_RST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_QP_STATE_RST@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MLX4_QP_STATE_INIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLX4_QP_STATE_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _MLX4_QP_STATE_RTR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_QP_STATE_RTR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MLX4_QP_STATE_RTS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MLX4_QP_STATE_RTS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	add	x25, sp, #8
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.1:
	mov	x26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #268435455
	bl	_cpu_to_be32
	ldr	w8, [x22]
	and	w8, w8, w0
	str	w8, [x22]
	add	x27, x25, x26, lsl #2
	ldr	w8, [x27, #4]
	lsl	w0, w8, #28
	bl	_cpu_to_be32
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	w8, [x22]
	ldp	w2, w3, [x27]
	mov	x0, x19
	mov	x1, x23
	mov	x4, x22
	mov	w5, #0
	mov	w6, #0
	mov	x7, x21
	bl	_mlx4_qp_modify
	ldr	w2, [x27, #4]
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	str	w2, [x20]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	cmp	x26, w8, sxtw
	b.lt	LBB0_2
LBB0_4:
	mov	w24, #0
	b	LBB0_6
LBB0_5:
	mov	x24, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	bl	_mlx4_err
LBB0_6:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_QP_STATE_RST,4,2          ; @MLX4_QP_STATE_RST
	.comm	_MLX4_QP_STATE_INIT,4,2         ; @MLX4_QP_STATE_INIT
	.comm	_MLX4_QP_STATE_RTR,4,2          ; @MLX4_QP_STATE_RTR
	.comm	_MLX4_QP_STATE_RTS,4,2          ; @MLX4_QP_STATE_RTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to bring QP to state: %d with error: %d\n"

.subsections_via_symbols
