	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc440spe_adma_estimate
_ppc440spe_adma_estimate:               ## @ppc440spe_adma_estimate
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_DMA_PQ@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%esi, %eax
	je	LBB0_2
## %bb.1:
	movq	_DMA_PQ_VAL@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_4
LBB0_2:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r9d, %r13d
	movq	_ppc440spe_r6_enabled@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_unlikely
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movl	(%r14), %eax
	movl	%r13d, %r9d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_4:
	movl	$1, %ebx
	cmpl	%r15d, %eax
	jne	LBB0_11
## %bb.5:
	movq	(%r13), %rax
	movq	_PPC440SPE_XOR_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	cmpl	$1, %r12d
	jne	LBB0_10
## %bb.7:
	cmpl	$2, %r9d
	jne	LBB0_10
## %bb.8:
	movq	(%rdx), %rax
	cmpq	8(%r8), %rax
	je	LBB0_9
LBB0_10:
	movq	16(%rbp), %rdx
	movq	%r8, %rdi
	movl	%r9d, %esi
	callq	_ppc440spe_can_rxor
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx,2), %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_to_ppc440spe_adma_chan
	movl	%eax, %edi
	callq	_ppc440spe_chan_is_busy
	cmpl	$1, %eax
	adcl	$0, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_PQ,4,2                     ## @DMA_PQ
	.comm	_DMA_PQ_VAL,4,2                 ## @DMA_PQ_VAL
	.comm	_ppc440spe_r6_enabled,4,2       ## @ppc440spe_r6_enabled
	.comm	_PPC440SPE_XOR_ID,8,3           ## @PPC440SPE_XOR_ID
	.no_dead_strip	_ppc440spe_adma_estimate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc440spe_adma_estimate
_ppc440spe_adma_estimate:               ; @ppc440spe_adma_estimate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x24, x3
	mov	x23, x2
	mov	x25, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _DMA_PQ@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DMA_PQ@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x9, _DMA_PQ_VAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMA_PQ_VAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _ppc440spe_r6_enabled@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ppc440spe_r6_enabled@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	mov	w20, #-1
	b	LBB0_13
LBB0_3:
	ldr	w8, [x26]
LBB0_4:
	cmp	w8, w25
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _PPC440SPE_XOR_ID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PPC440SPE_XOR_ID@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	cmp	w24, #1
	b.ne	LBB0_9
; %bb.7:
	cmp	w21, #2
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x23]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_9:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_ppc440spe_can_rxor
	cmp	x0, #0
	mov	w8, #3
	csel	w20, wzr, w8, eq
	b	LBB0_11
LBB0_10:
	mov	w20, #1
LBB0_11:
	mov	x0, x20
	bl	_likely
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_to_ppc440spe_adma_chan
	bl	_ppc440spe_chan_is_busy
	cmp	w0, #0
	cinc	w20, w20, eq
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w20, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_PQ,4,2                     ; @DMA_PQ
	.comm	_DMA_PQ_VAL,4,2                 ; @DMA_PQ_VAL
	.comm	_ppc440spe_r6_enabled,4,2       ; @ppc440spe_r6_enabled
	.comm	_PPC440SPE_XOR_ID,8,3           ; @PPC440SPE_XOR_ID
	.no_dead_strip	_ppc440spe_adma_estimate
.subsections_via_symbols
