	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_qp
_setup_qp:                              ## @setup_qp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_to_mdev
	movq	%rax, %r15
	movl	16(%r13), %esi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ib_query_pkey
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	16(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_mlx5_ib_warn
	jmp	LBB0_12
LBB0_2:
	cmpq	$0, -48(%rbp)
	je	LBB0_3
## %bb.5:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rbx
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movl	16(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movl	16(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_mlx5_ib_dbg
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, %rdi
	callq	_create_gsi_ud_qp
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_PTR_ERR
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_ib_warn
	jmp	LBB0_12
LBB0_9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_modify_to_rts
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	callq	_WARN_ON_ONCE
	jmp	LBB0_12
LBB0_10:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_WARN_ON_ONCE
	movq	8(%r13), %rax
	movq	%r12, (%rax,%r14,8)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read P_Key at port %d, index %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid P_Key at port %d, index %d.  Skipping.\n"

L_.str.2:                               ## @.str.2
	.asciz	"already existing GSI TX QP at port %d, index %d. Skipping\n"

L_.str.3:                               ## @.str.3
	.asciz	"unable to create hardware UD QP for GSI: %ld\n"

	.no_dead_strip	_setup_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_qp
_setup_qp:                              ; @setup_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_to_mdev
	mov	x21, x0
	ldr	w1, [x20, #16]
	add	x3, sp, #8
	mov	x0, x22
	mov	x2, x19
	bl	_ib_query_pkey
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w2, [x20, #16]
	str	x19, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x21
	bl	_mlx5_ib_warn
	b	LBB0_8
LBB0_3:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	ldr	x22, [x8, x19, lsl #3]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	cbz	x22, LBB0_9
; %bb.5:
	ldr	w2, [x20, #16]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w2, [x20, #16]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x21
	mov	x3, x19
	bl	_mlx5_ib_dbg
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
	add	sp, sp, #64
	ret
LBB0_9:
	mov	x0, x20
	bl	_create_gsi_ud_qp
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_11:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_modify_to_rts
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_WARN_ON_ONCE
	b	LBB0_8
LBB0_13:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	lsl	x19, x19, #3
	ldr	x0, [x8, x19]
	bl	_WARN_ON_ONCE
	ldr	x8, [x20, #8]
	str	x22, [x8, x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read P_Key at port %d, index %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid P_Key at port %d, index %d.  Skipping.\n"

l_.str.2:                               ; @.str.2
	.asciz	"already existing GSI TX QP at port %d, index %d. Skipping\n"

l_.str.3:                               ; @.str.3
	.asciz	"unable to create hardware UD QP for GSI: %ld\n"

	.no_dead_strip	_setup_qp
.subsections_via_symbols
