	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_query_ah                ## -- Begin function ocrdma_query_ah
	.p2align	4, 0x90
_ocrdma_query_ah:                       ## @ocrdma_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_get_ocrdma_ah
	movq	%rax, %r14
	movq	8(%rax), %r13
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movq	_OCRDMA_AV_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_1
## %bb.2:
	movl	4(%r13), %edi
	callq	_be16_to_cpu
	movl	%eax, %esi
	sarl	$13, %esi
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
LBB0_3:
	movq	%r15, %rdi
	callq	_rdma_ah_set_sl
	movl	24(%r13), %edi
	callq	_be32_to_cpu
	movl	%eax, %r12d
	movl	(%r14), %r14d
	movl	28(%r13), %edi
	callq	_be32_to_cpu
	movzbl	%al, %ebx
	movl	24(%r13), %edi
	callq	_be32_to_cpu
	sarl	$24, %eax
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_rdma_ah_set_grh
	movq	16(%r13), %rsi
	movq	%r15, %rdi
	callq	_rdma_ah_set_dgid_raw
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_AV_VALID,4,2            ## @OCRDMA_AV_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_query_ah                ; -- Begin function ocrdma_query_ah
	.p2align	2
_ocrdma_query_ah:                       ; @ocrdma_query_ah
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	bl	_get_ocrdma_ah
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	w8, [x21]
	str	w8, [x19]
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _OCRDMA_AV_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCRDMA_AV_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x23, #4]
	bl	_be16_to_cpu
	asr	w1, w0, #13
	b	LBB0_3
LBB0_2:
	mov	w1, #0
LBB0_3:
	mov	x0, x19
	bl	_rdma_ah_set_sl
	ldr	w0, [x23, #24]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w20, [x20]
	ldr	w0, [x23, #28]
	bl	_be32_to_cpu
	and	w22, w0, #0xff
	ldr	w0, [x23, #24]
	bl	_be32_to_cpu
	asr	w5, w0, #24
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_rdma_ah_set_grh
	ldr	x1, [x23, #16]
	mov	x0, x19
	bl	_rdma_ah_set_dgid_raw
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_AV_VALID,4,2            ; @OCRDMA_AV_VALID
.subsections_via_symbols
