	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_query_ah               ## -- Begin function mlx5_ib_query_ah
	.p2align	4, 0x90
_mlx5_ib_query_ah:                      ## @mlx5_ib_query_ah
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_mah
	movq	%rax, %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movl	20(%r15), %edi
	callq	_be32_to_cpu
	testl	$1073741824, %eax               ## imm = 0x40000000
	je	LBB0_2
## %bb.1:
	movl	%eax, %edx
	andl	$1048575, %edx                  ## imm = 0xFFFFF
	shrl	$20, %eax
	movzbl	%al, %ecx
	movl	12(%r15), %r9d
	movl	16(%r15), %r8d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rdma_ah_set_grh
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_rdma_ah_set_dgid_raw
LBB0_2:
	movl	4(%r15), %edi
	callq	_be16_to_cpu
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rdma_ah_set_dlid
	movl	(%r15), %esi
	sarl	$4, %esi
	movq	%r14, %rdi
	callq	_rdma_ah_set_static_rate
	movl	(%r15), %esi
	andl	$15, %esi
	movq	%r14, %rdi
	callq	_rdma_ah_set_sl
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_mlx5_ib_query_ah               ; -- Begin function mlx5_ib_query_ah
	.p2align	2
_mlx5_ib_query_ah:                      ; @mlx5_ib_query_ah
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	bl	_to_mah
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x21]
	str	w8, [x19]
	ldr	w0, [x20, #20]
	bl	_be32_to_cpu
	tbz	w0, #30, LBB0_2
; %bb.1:
	and	w2, w0, #0xfffff
	ubfx	w3, w0, #20, #8
	ldp	w5, w4, [x20, #12]
	mov	x0, x19
	mov	x1, #0
	bl	_rdma_ah_set_grh
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_rdma_ah_set_dgid_raw
LBB0_2:
	ldr	w0, [x20, #4]
	bl	_be16_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_rdma_ah_set_dlid
	ldr	w8, [x20]
	asr	w1, w8, #4
	mov	x0, x19
	bl	_rdma_ah_set_static_rate
	ldr	w8, [x20]
	and	w1, w8, #0xf
	mov	x0, x19
	bl	_rdma_ah_set_sl
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
