	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edma_error_pending
_edma_error_pending:                    ## @edma_error_pending
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_EDMA_EMR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_edma_read_array
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r15), %esi
	movl	$1, %ebx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_edma_read_array
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_EDMA_QEMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_edma_read
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EDMA_CCERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_edma_read
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDMA_EMR,4,2                   ## @EDMA_EMR
	.comm	_EDMA_QEMR,4,2                  ## @EDMA_QEMR
	.comm	_EDMA_CCERR,4,2                 ## @EDMA_CCERR
	.no_dead_strip	_edma_error_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edma_error_pending
_edma_error_pending:                    ; @edma_error_pending
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _EDMA_EMR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EDMA_EMR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_edma_read_array
	cbz	x0, LBB0_2
LBB0_1:
	mov	w20, #1
	b	LBB0_3
LBB0_2:
	ldr	w1, [x20]
	mov	w20, #1
	mov	x0, x19
	mov	w2, #1
	bl	_edma_read_array
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x8, _EDMA_QEMR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EDMA_QEMR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_edma_read
	cbnz	x0, LBB0_1
; %bb.5:
Lloh5:
	adrp	x8, _EDMA_CCERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EDMA_CCERR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_edma_read
	cmp	x0, #0
	cset	w20, ne
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EDMA_EMR,4,2                   ; @EDMA_EMR
	.comm	_EDMA_QEMR,4,2                  ; @EDMA_QEMR
	.comm	_EDMA_CCERR,4,2                 ; @EDMA_CCERR
	.no_dead_strip	_edma_error_pending
.subsections_via_symbols
