	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_mad_qp
_create_mad_qp:                         ## @create_mad_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-104(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	24(%rbx), %rax
	movl	16(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movl	%ecx, -52(%rbp)
	movq	_IB_SIGNAL_ALL_WR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	_mad_sendq_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)
	movq	_mad_recvq_size@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	%rcx, -72(%rbp)
	movq	_IB_MAD_SEND_REQ_MAX_SG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -76(%rbp)
	movq	_IB_MAD_RECV_REQ_MAX_SG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -80(%rbp)
	movl	%r15d, -104(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -88(%rbp)
	movq	%rbx, -96(%rbp)
	movq	_qp_event_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -100(%rbp)
	movl	8(%rax), %edi
	movq	%r12, %rsi
	callq	_ib_create_qp
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	movq	(%rax), %r14
	movl	%r15d, %edi
	callq	_get_spl_qp_index
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	16(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_mad_sendq_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	(%r13), %rax
	movq	%rax, (%rbx)
LBB0_3:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SIGNAL_ALL_WR,4,2           ## @IB_SIGNAL_ALL_WR
	.comm	_mad_sendq_size,8,3             ## @mad_sendq_size
	.comm	_mad_recvq_size,8,3             ## @mad_recvq_size
	.comm	_IB_MAD_SEND_REQ_MAX_SG,4,2     ## @IB_MAD_SEND_REQ_MAX_SG
	.comm	_IB_MAD_RECV_REQ_MAX_SG,4,2     ## @IB_MAD_RECV_REQ_MAX_SG
	.comm	_qp_event_handler,4,2           ## @qp_event_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't create ib_mad QP%d\n"

	.no_dead_strip	_create_mad_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_mad_qp
_create_mad_qp:                         ; @create_mad_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	x8, [x19, #24]
	ldr	w9, [x8, #16]
	str	w9, [sp, #56]
Lloh0:
	adrp	x10, _IB_SIGNAL_ALL_WR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IB_SIGNAL_ALL_WR@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x21, _mad_sendq_size@GOTPAGE
Lloh4:
	ldr	x21, [x21, _mad_sendq_size@GOTPAGEOFF]
	stp	w10, w9, [sp, #48]
	ldr	x9, [x21]
Lloh5:
	adrp	x22, _mad_recvq_size@GOTPAGE
Lloh6:
	ldr	x22, [x22, _mad_recvq_size@GOTPAGEOFF]
	ldr	x10, [x22]
	stp	x10, x9, [sp, #32]
Lloh7:
	adrp	x9, _IB_MAD_SEND_REQ_MAX_SG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IB_MAD_SEND_REQ_MAX_SG@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _IB_MAD_RECV_REQ_MAX_SG@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IB_MAD_RECV_REQ_MAX_SG@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	stp	w10, w9, [sp, #24]
	ldr	w9, [x8, #12]
	str	w9, [sp, #16]
	str	x19, [sp, #8]
Lloh13:
	adrp	x9, _qp_event_handler@GOTPAGE
Lloh14:
	ldr	x9, [x9, _qp_event_handler@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w20, w9, [sp]
	ldr	w0, [x8, #8]
	mov	x1, sp
	bl	_ib_create_qp
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x21, [x8]
	mov	x0, x20
	bl	_get_spl_qp_index
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x19, #16]
	bl	_PTR_ERR
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21]
	ldr	x9, [x22]
	stp	x9, x8, [x19]
LBB0_3:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SIGNAL_ALL_WR,4,2           ; @IB_SIGNAL_ALL_WR
	.comm	_mad_sendq_size,8,3             ; @mad_sendq_size
	.comm	_mad_recvq_size,8,3             ; @mad_recvq_size
	.comm	_IB_MAD_SEND_REQ_MAX_SG,4,2     ; @IB_MAD_SEND_REQ_MAX_SG
	.comm	_IB_MAD_RECV_REQ_MAX_SG,4,2     ; @IB_MAD_RECV_REQ_MAX_SG
	.comm	_qp_event_handler,4,2           ; @qp_event_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't create ib_mad QP%d\n"

	.no_dead_strip	_create_mad_qp
.subsections_via_symbols
