	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_cqdma_poll_engine_done
_mtk_cqdma_poll_engine_done:            ## @mtk_cqdma_poll_engine_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	_MTK_CQDMA_EN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	movq	_MTK_CQDMA_USEC_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MTK_CQDMA_TIMEOUT_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	movl	$1, %edx
	popq	%rbp
	jmp	_readl_poll_timeout_atomic      ## TAILCALL
LBB0_1:
	xorl	%esi, %esi
	movl	$1, %edx
	popq	%rbp
	jmp	_readl_poll_timeout             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_CQDMA_EN,8,3               ## @MTK_CQDMA_EN
	.comm	_MTK_CQDMA_EN_BIT,4,2           ## @MTK_CQDMA_EN_BIT
	.comm	_MTK_CQDMA_USEC_POLL,4,2        ## @MTK_CQDMA_USEC_POLL
	.comm	_MTK_CQDMA_TIMEOUT_POLL,4,2     ## @MTK_CQDMA_TIMEOUT_POLL
	.no_dead_strip	_mtk_cqdma_poll_engine_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_cqdma_poll_engine_done
_mtk_cqdma_poll_engine_done:            ; @mtk_cqdma_poll_engine_done
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MTK_CQDMA_EN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTK_CQDMA_EN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
Lloh3:
	adrp	x8, _MTK_CQDMA_USEC_POLL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTK_CQDMA_USEC_POLL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _MTK_CQDMA_TIMEOUT_POLL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MTK_CQDMA_TIMEOUT_POLL@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	cbz	w1, LBB0_2
; %bb.1:
	mov	w1, #0
	mov	w2, #1
	b	_readl_poll_timeout_atomic
LBB0_2:
	mov	w2, #1
	b	_readl_poll_timeout
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_CQDMA_EN,8,3               ; @MTK_CQDMA_EN
	.comm	_MTK_CQDMA_EN_BIT,4,2           ; @MTK_CQDMA_EN_BIT
	.comm	_MTK_CQDMA_USEC_POLL,4,2        ; @MTK_CQDMA_USEC_POLL
	.comm	_MTK_CQDMA_TIMEOUT_POLL,4,2     ; @MTK_CQDMA_TIMEOUT_POLL
	.no_dead_strip	_mtk_cqdma_poll_engine_done
.subsections_via_symbols
