	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmae_is_idle
_dmae_is_idle:                          ## @dmae_is_idle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CHCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sh_dmae_readl
	movl	%eax, %ecx
	movq	_CHCR_DE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.1:
	movq	_CHCR_TE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
LBB0_3:
	popq	%rbp
	retq
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHCR,4,2                       ## @CHCR
	.comm	_CHCR_DE,4,2                    ## @CHCR_DE
	.comm	_CHCR_TE,4,2                    ## @CHCR_TE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_dmae_is_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmae_is_idle
_dmae_is_idle:                          ; @dmae_is_idle
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _CHCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sh_dmae_readl
Lloh3:
	adrp	x8, _CHCR_DE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHCR_DE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _CHCR_TE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHCR_TE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CHCR,4,2                       ; @CHCR
	.comm	_CHCR_DE,4,2                    ; @CHCR_DE
	.comm	_CHCR_TE,4,2                    ; @CHCR_TE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_dmae_is_idle
.subsections_via_symbols
