	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5dv_get_qp
_mlx5dv_get_qp:                         ## @mlx5dv_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_mqp
	movq	$0, 48(%rbx)
	movl	64(%rax), %ecx
	movl	%ecx, 40(%rbx)
	cmpq	$0, 56(%rax)
	je	LBB0_2
## %bb.1:
	movq	48(%rax), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	40(%rax), %rcx
	addq	24(%rax), %rcx
LBB0_3:
	movq	%rcx, 32(%rbx)
	movl	36(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movb	32(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 24(%rbx)
	movq	16(%rax), %rcx
	addq	24(%rax), %rcx
	movl	$1, %edx
	movq	%rcx, 16(%rbx)
	movl	12(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movb	8(%rax), %cl
	shll	%cl, %edx
	movl	%edx, 8(%rbx)
	movq	(%rax), %rax
	movl	12(%rax), %ecx
	movl	%ecx, 4(%rbx)
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.5:
	movl	8(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlx5dv_get_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5dv_get_qp
_mlx5dv_get_qp:                         ; @mlx5dv_get_qp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_to_mqp
	str	xzr, [x19, #48]
	ldr	w8, [x0, #64]
	str	w8, [x19, #40]
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x0, #48]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x0, #24]
	ldr	x9, [x0, #40]
	add	x8, x9, x8
LBB0_3:
	str	x8, [x19, #32]
	ldp	w9, w8, [x0, #32]
	mov	w10, #1
	lsl	w9, w10, w9
	stp	w9, w8, [x19, #24]
	ldp	x9, x8, [x0, #16]
	add	x8, x9, x8
	str	x8, [x19, #16]
	ldp	w9, w8, [x0, #8]
	str	w8, [x19, #12]
	lsl	w9, w10, w9
	ldr	x8, [x0]
	ldr	w10, [x8, #12]
	stp	w10, w9, [x19, #4]
	ldr	x9, [x8]
	cmp	x9, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	w8, [x8, #8]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlx5dv_get_qp
.subsections_via_symbols
