	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_ring_eq_db
_ocrdma_ring_eq_db:                     ## @ocrdma_ring_eq_db
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %r9d
	movq	_OCRDMA_EQ_ID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	andl	%esi, %r10d
	movq	_OCRDMA_EQ_ID_EXT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movq	_OCRDMA_EQ_ID_EXT_MASK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_OCRDMA_REARM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%esi, %r10d
	testl	%edx, %edx
	cmovel	%edx, %eax
	movl	$1, %edx
	orl	%r10d, %eax
	movq	_OCRDMA_EQ_CLR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	testl	%r9d, %r9d
	cmovel	%r9d, %edx
	orl	%eax, %edx
	movq	_OCRDMA_EQ_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_OCRDMA_NUM_EQE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r8d
	orl	%r8d, %edx
	movq	_OCRDMA_DB_EQ_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rdi), %rsi
	movl	%edx, %edi
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_EQ_ID_MASK,4,2          ## @OCRDMA_EQ_ID_MASK
	.comm	_OCRDMA_EQ_ID_EXT_MASK,4,2      ## @OCRDMA_EQ_ID_EXT_MASK
	.comm	_OCRDMA_EQ_ID_EXT_MASK_SHIFT,4,2 ## @OCRDMA_EQ_ID_EXT_MASK_SHIFT
	.comm	_OCRDMA_REARM_SHIFT,4,2         ## @OCRDMA_REARM_SHIFT
	.comm	_OCRDMA_EQ_CLR_SHIFT,4,2        ## @OCRDMA_EQ_CLR_SHIFT
	.comm	_OCRDMA_EQ_TYPE_SHIFT,4,2       ## @OCRDMA_EQ_TYPE_SHIFT
	.comm	_OCRDMA_NUM_EQE_SHIFT,4,2       ## @OCRDMA_NUM_EQE_SHIFT
	.comm	_OCRDMA_DB_EQ_OFFSET,8,3        ## @OCRDMA_DB_EQ_OFFSET
	.no_dead_strip	_ocrdma_ring_eq_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_ring_eq_db
_ocrdma_ring_eq_db:                     ; @ocrdma_ring_eq_db
	.cfi_startproc
; %bb.0:
	mov	w8, #1
Lloh0:
	adrp	x9, _OCRDMA_EQ_ID_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCRDMA_EQ_ID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w1
Lloh3:
	adrp	x10, _OCRDMA_EQ_ID_EXT_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OCRDMA_EQ_ID_EXT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w10, w10, w1
Lloh6:
	adrp	x11, _OCRDMA_EQ_ID_EXT_MASK_SHIFT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _OCRDMA_EQ_ID_EXT_MASK_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	lsl	w10, w10, w11
Lloh9:
	adrp	x11, _OCRDMA_REARM_SHIFT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _OCRDMA_REARM_SHIFT@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh11:
	ldr	w10, [x11]
	lsl	w10, w8, w10
	cmp	w2, #0
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _OCRDMA_EQ_CLR_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OCRDMA_EQ_CLR_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	cmp	w3, #0
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh15:
	adrp	x10, _OCRDMA_EQ_TYPE_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _OCRDMA_EQ_TYPE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _OCRDMA_NUM_EQE_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OCRDMA_NUM_EQE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsl	w9, w4, w9
	orr	w8, w8, w9
	ldr	x9, [x0]
Lloh21:
	adrp	x10, _OCRDMA_DB_EQ_OFFSET@GOTPAGE
Lloh22:
	ldr	x10, [x10, _OCRDMA_DB_EQ_OFFSET@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	add	x1, x10, x9
	mov	x0, x8
	b	_iowrite32
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_EQ_ID_MASK,4,2          ; @OCRDMA_EQ_ID_MASK
	.comm	_OCRDMA_EQ_ID_EXT_MASK,4,2      ; @OCRDMA_EQ_ID_EXT_MASK
	.comm	_OCRDMA_EQ_ID_EXT_MASK_SHIFT,4,2 ; @OCRDMA_EQ_ID_EXT_MASK_SHIFT
	.comm	_OCRDMA_REARM_SHIFT,4,2         ; @OCRDMA_REARM_SHIFT
	.comm	_OCRDMA_EQ_CLR_SHIFT,4,2        ; @OCRDMA_EQ_CLR_SHIFT
	.comm	_OCRDMA_EQ_TYPE_SHIFT,4,2       ; @OCRDMA_EQ_TYPE_SHIFT
	.comm	_OCRDMA_NUM_EQE_SHIFT,4,2       ; @OCRDMA_NUM_EQE_SHIFT
	.comm	_OCRDMA_DB_EQ_OFFSET,8,3        ; @OCRDMA_DB_EQ_OFFSET
	.no_dead_strip	_ocrdma_ring_eq_db
.subsections_via_symbols
