	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc440spe_adma_pq_set_src_mult
_ppc440spe_adma_pq_set_src_mult:        ## @ppc440spe_adma_pq_set_src_mult
	.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, %ebx
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movl	20(%rdi), %edi
	callq	_to_ppc440spe_adma_chan
	movq	(%rax), %rcx
	movl	(%rcx), %edx
	leal	-129(%rdx), %ecx
	cmpl	$2, %ecx
	jae	LBB0_5
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PPC440SPE_DESC_RXOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_9
## %bb.2:
	movq	_PPC440SPE_DESC_RXOR12@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	orl	$2, %ecx
	cmpl	%r12d, %ecx
	jle	LBB0_12
## %bb.3:
	movl	(%r15), %esi
	decl	%esi
	movq	%r15, %rdi
	callq	_ppc440spe_get_group_entry
	movq	%rax, %r14
	cmpl	$2, (%r15)
	jne	LBB0_15
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ppc440spe_get_group_entry
	movq	%rax, %r13
	jmp	LBB0_16
LBB0_5:
	cmpl	$128, %edx
	jne	LBB0_19
## %bb.6:
	movq	8(%r15), %rdi
	cmpl	$2, (%r15)
	jne	LBB0_8
## %bb.7:
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_ppc440spe_adma_dma2rxor_set_mult
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_ppc440spe_get_group_entry
	movq	%rax, %rdi
LBB0_8:
	movzbl	%r13b, %edx
	movl	%r12d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ppc440spe_adma_dma2rxor_set_mult ## TAILCALL
LBB0_9:
	movq	_PPC440SPE_ZERO_P@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setne	%r13b
	movq	_PPC440SPE_ZERO_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	leal	1(%r13), %esi
	testl	%eax, %eax
	cmovel	%r13d, %esi
	addl	%r12d, %esi
	jmp	LBB0_10
LBB0_12:
	cmpl	$1, %eax
	sbbl	$0, %r12d
	movl	(%r15), %eax
	leal	(%r12,%rax), %esi
	addl	$-2, %esi
LBB0_10:
	movq	%r15, %rdi
	callq	_ppc440spe_get_group_entry
	movq	%rax, %r14
	movq	_DMA_CUED_MULT1_OFF@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.13:
	movq	_DMA_CDB_SG_DST1@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_11:
	movq	_DMA_CDB_SG_DST2@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rax), %r12d
	movl	(%rcx), %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_15:
	xorl	%r13d, %r13d
LBB0_16:
	movq	_DMA_CUED_MULT1_OFF@GOTPCREL(%rip), %rax
	shll	$3, %r12d
	addl	(%rax), %r12d
	movq	_DMA_CDB_SG_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	movq	%r14, %rdi
	callq	_likely
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movzbl	-44(%rbp), %r8d                 ## 1-byte Folded Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_ppc440spe_desc_set_src_mult
	movq	%r13, %rdi
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	$1, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ppc440spe_desc_set_src_mult    ## TAILCALL
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPC440SPE_DESC_RXOR,4,2        ## @PPC440SPE_DESC_RXOR
	.comm	_PPC440SPE_DESC_RXOR12,4,2      ## @PPC440SPE_DESC_RXOR12
	.comm	_DMA_CUED_MULT1_OFF,4,2         ## @DMA_CUED_MULT1_OFF
	.comm	_DMA_CDB_SG_SRC,4,2             ## @DMA_CDB_SG_SRC
	.comm	_DMA_CDB_SG_DST2,4,2            ## @DMA_CDB_SG_DST2
	.comm	_DMA_CDB_SG_DST1,4,2            ## @DMA_CDB_SG_DST1
	.comm	_PPC440SPE_ZERO_P,4,2           ## @PPC440SPE_ZERO_P
	.comm	_PPC440SPE_ZERO_Q,4,2           ## @PPC440SPE_ZERO_Q
	.no_dead_strip	_ppc440spe_adma_pq_set_src_mult
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc440spe_adma_pq_set_src_mult
_ppc440spe_adma_pq_set_src_mult:        ; @ppc440spe_adma_pq_set_src_mult
	.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	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x0, #20]
	bl	_to_ppc440spe_adma_chan
	ldr	x8, [x0]
	ldr	w8, [x8]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _PPC440SPE_DESC_RXOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPC440SPE_DESC_RXOR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x24, x22, #16
	mov	x1, x24
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _PPC440SPE_DESC_RXOR12@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPC440SPE_DESC_RXOR12@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	cmp	w0, #0
	mov	w8, #2
	cinc	w8, w8, eq
	cmp	w8, w21
	b.le	LBB0_10
; %bb.3:
	ldr	w8, [x22]
	sub	w1, w8, #1
	mov	x0, x22
	bl	_ppc440spe_get_group_entry
	mov	x24, x0
	ldr	w8, [x22]
	cmp	w8, #2
	b.ne	LBB0_12
; %bb.4:
	mov	x0, x22
	mov	w1, #0
	bl	_ppc440spe_get_group_entry
	mov	x22, x0
	b	LBB0_13
LBB0_5:
	cmp	w8, #128
	b.ne	LBB0_17
; %bb.6:
	ldr	x0, [x22, #8]
	ldr	w8, [x22]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.7:
	mov	x1, x21
	mov	w2, #1
	bl	_ppc440spe_adma_dma2rxor_set_mult
	ldr	w1, [x22, #4]
	mov	x0, x22
	bl	_ppc440spe_get_group_entry
LBB0_8:
	mov	x1, x21
	mov	x2, x19
	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
	b	_ppc440spe_adma_dma2rxor_set_mult
LBB0_9:
Lloh6:
	adrp	x8, _PPC440SPE_ZERO_P@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPC440SPE_ZERO_P@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	mov	x25, x0
Lloh9:
	adrp	x8, _PPC440SPE_ZERO_Q@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PPC440SPE_ZERO_Q@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	cmp	w25, #0
	cset	w8, ne
	mov	w9, #1
	cinc	w9, w9, ne
	cmp	w0, #0
	csel	w8, w8, w9, eq
	add	w1, w8, w21
	b	LBB0_11
LBB0_10:
	cmp	w0, #0
	mov	w8, #-3
	cinc	w8, w8, ne
	ldr	w9, [x22]
	add	w8, w8, w21
	add	w1, w8, w9
LBB0_11:
	mov	x0, x22
	bl	_ppc440spe_get_group_entry
	mov	x24, x0
	mov	x22, #0
Lloh12:
	adrp	x8, _DMA_CUED_MULT1_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_CUED_MULT1_OFF@GOTPAGEOFF]
Lloh14:
	adrp	x9, _DMA_CDB_SG_DST2@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DMA_CDB_SG_DST2@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
Lloh17:
	adrp	x8, _DMA_CDB_SG_DST1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMA_CDB_SG_DST1@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x8, x9, eq
	b	LBB0_14
LBB0_12:
	mov	x22, #0
LBB0_13:
Lloh19:
	adrp	x8, _DMA_CUED_MULT1_OFF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_CUED_MULT1_OFF@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	add	w21, w8, w21, lsl #3
Lloh22:
	adrp	x8, _DMA_CDB_SG_SRC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DMA_CDB_SG_SRC@GOTPAGEOFF]
LBB0_14:
	ldr	w23, [x8]
	mov	x0, x24
	bl	_likely
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	mov	x4, x19
	bl	_ppc440spe_desc_set_src_mult
	mov	x0, x22
	bl	_unlikely
	cbz	w0, LBB0_17
; %bb.16:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	mov	w4, #1
	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
	b	_ppc440spe_desc_set_src_mult
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PPC440SPE_DESC_RXOR,4,2        ; @PPC440SPE_DESC_RXOR
	.comm	_PPC440SPE_DESC_RXOR12,4,2      ; @PPC440SPE_DESC_RXOR12
	.comm	_DMA_CUED_MULT1_OFF,4,2         ; @DMA_CUED_MULT1_OFF
	.comm	_DMA_CDB_SG_SRC,4,2             ; @DMA_CDB_SG_SRC
	.comm	_DMA_CDB_SG_DST2,4,2            ; @DMA_CDB_SG_DST2
	.comm	_DMA_CDB_SG_DST1,4,2            ; @DMA_CDB_SG_DST1
	.comm	_PPC440SPE_ZERO_P,4,2           ; @PPC440SPE_ZERO_P
	.comm	_PPC440SPE_ZERO_Q,4,2           ; @PPC440SPE_ZERO_Q
	.no_dead_strip	_ppc440spe_adma_pq_set_src_mult
.subsections_via_symbols
