	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_get_qp_per_mgm            ## -- Begin function mlx4_get_qp_per_mgm
	.p2align	4, 0x90
_mlx4_get_qp_per_mgm:                   ## @mlx4_get_qp_per_mgm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_mlx4_get_mgm_entry_size
                                        ## kill: def $eax killed $eax def $rax
	leal	15(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$4, %ecx
	leal	-8(,%rcx,4), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_get_qp_per_mgm            ; -- Begin function mlx4_get_qp_per_mgm
	.p2align	2
_mlx4_get_qp_per_mgm:                   ; @mlx4_get_qp_per_mgm
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_mlx4_get_mgm_entry_size
	add	w8, w0, #15
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #4
	lsl	w8, w8, #2
	sub	w0, w8, #8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
