	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_get_base_qpn              ## -- Begin function mlx4_get_base_qpn
	.p2align	4, 0x90
_mlx4_get_base_qpn:                     ## @mlx4_get_base_qpn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rdx
	leal	-1(%rsi), %eax
	movb	8(%rdi), %cl
	shll	%cl, %eax
	movq	_MLX4_QP_REGION_ETH_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	(%rdx,%rcx,4), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_QP_REGION_ETH_ADDR,8,3    ## @MLX4_QP_REGION_ETH_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_get_base_qpn              ; -- Begin function mlx4_get_base_qpn
	.p2align	2
_mlx4_get_base_qpn:                     ; @mlx4_get_base_qpn
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MLX4_QP_REGION_ETH_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_QP_REGION_ETH_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	sub	w9, w1, #1
	ldr	w10, [x0, #8]
	lsl	w9, w9, w10
	add	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_QP_REGION_ETH_ADDR,8,3    ; @MLX4_QP_REGION_ETH_ADDR
.subsections_via_symbols
