	.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, %rbx
	callq	_get_ocrdma_ah
	movq	%rax, %r14
	movq	8(%rax), %r12
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
	movl	(%r12), %r13d
	movl	$1, %edi
	callq	_Bit
	movq	8(%r14), %r15
	testl	%r13d, %eax
	je	LBB0_1
## %bb.2:
	movl	4(%r12), %edi
	callq	_be16_to_cpu
	sarl	$13, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movl	%eax, (%rbx)
	movq	24(%rbx), %rdi
	movq	24(%r15), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	20(%r15), %edi
	callq	_be32_to_cpu
	movzbl	%al, %eax
	movl	%eax, 8(%rbx)
	movl	16(%r15), %edi
	callq	_be32_to_cpu
	sarl	$24, %eax
	movl	%eax, 12(%rbx)
	movl	16(%r15), %edi
	callq	_be32_to_cpu
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
.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
	bl	_get_ocrdma_ah
	mov	x20, x0
Lloh0:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
	ldr	x22, [x0, #8]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	ldr	w23, [x22]
	mov	w0, #1
	bl	_Bit
	ldr	x21, [x20, #8]
	tst	w0, w23
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22, #4]
	bl	_be16_to_cpu
	asr	w8, w0, #13
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	str	w8, [x19]
	ldr	x0, [x19, #24]
	ldr	x1, [x21, #24]
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x20]
	str	w8, [x19, #20]
	ldr	w0, [x21, #20]
	bl	_be32_to_cpu
	and	w8, w0, #0xff
	str	w8, [x19, #8]
	ldr	w0, [x21, #16]
	bl	_be32_to_cpu
	asr	w8, w0, #24
	str	w8, [x19, #12]
	ldr	w0, [x21, #16]
	bl	_be32_to_cpu
	str	w0, [x19, #16]
	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	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
.subsections_via_symbols
