	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_set_qkey
_cma_set_qkey:                          ## @cma_set_qkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	cmpq	%rsi, %rcx
	je	LBB0_14
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_4:
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	%rsi, (%rbx)
	jmp	LBB0_13
LBB0_6:
	movl	8(%rbx), %ecx
	xorl	%eax, %eax
	cmpl	$130, %ecx
	je	LBB0_9
## %bb.7:
	cmpl	$129, %ecx
	je	LBB0_10
## %bb.8:
	cmpl	$128, %ecx
	jne	LBB0_14
LBB0_9:
	movq	_RDMA_UDP_QKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:
	movq	%rax, (%rbx)
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	leaq	20(%rbx), %rdi
	leaq	-20(%rbp), %r14
	movq	%r14, %rsi
	callq	_ib_addr_get_mgid
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	leaq	-24(%rbp), %rcx
	movq	%r14, %rdx
	callq	_ib_sa_get_mcmember_rec
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movl	-24(%rbp), %edi
	callq	_be32_to_cpu
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDMA_UDP_QKEY,8,3              ## @RDMA_UDP_QKEY
	.no_dead_strip	_cma_set_qkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_set_qkey
_cma_set_qkey:                          ; @cma_set_qkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	w0, #0
	cbz	x1, LBB0_14
; %bb.2:
	cmp	x8, x1
	b.eq	LBB0_14
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_4:
	mov	x19, x0
	cbz	x1, LBB0_6
; %bb.5:
	mov	w0, #0
	str	x1, [x19]
	b	LBB0_14
LBB0_6:
	ldr	w8, [x19, #8]
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #128
	b.ne	LBB0_13
LBB0_9:
	mov	w0, #0
Lloh3:
	adrp	x8, _RDMA_UDP_QKEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDMA_UDP_QKEY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
LBB0_10:
	str	x8, [x19]
	b	LBB0_14
LBB0_11:
	add	x0, x19, #20
	add	x8, sp, #8
	orr	x20, x8, #0x4
	mov	x1, x20
	bl	_ib_addr_get_mgid
	ldp	w1, w0, [x19, #12]
	add	x3, sp, #8
	mov	x2, x20
	bl	_ib_sa_get_mcmember_rec
	cbnz	w0, LBB0_14
; %bb.12:
	ldr	w0, [sp, #8]
	bl	_be32_to_cpu
	mov	x8, x0
	mov	w0, #0
	b	LBB0_10
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDMA_UDP_QKEY,8,3              ; @RDMA_UDP_QKEY
	.no_dead_strip	_cma_set_qkey
.subsections_via_symbols
