	.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
_ppc440spe_adma_pq_set_src:             ## @ppc440spe_adma_pq_set_src
	.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	%edx, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movl	20(%rdi), %edi
	callq	_to_ppc440spe_adma_chan
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	(%rax), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.5:
	movq	_PPC440SPE_DESC_RXOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r12), %r13
	movq	%r13, %rsi
	callq	_test_bit
	testl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_21
## %bb.6:
	movq	_PPC440SPE_DESC_RXOR12@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_test_bit
	cmpl	$1, %eax
	movl	$-2, %esi
	sbbl	$0, %esi
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.18:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	orl	$2, %ecx
	cmpl	%r15d, %ecx
	jle	LBB0_20
## %bb.19:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_23
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_27
## %bb.2:
	movq	8(%r12), %rdi
	cmpl	$2, (%rdi)
	jne	LBB0_4
## %bb.3:
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ppc440spe_adma_dma2rxor_set_src
	movl	4(%r12), %esi
	movq	%r12, %rdi
	callq	_ppc440spe_get_group_entry
	movq	%rax, %rdi
LBB0_4:
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ppc440spe_adma_dma2rxor_set_src ## TAILCALL
LBB0_21:
	movq	_PPC440SPE_ZERO_P@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	movq	_PPC440SPE_ZERO_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	leal	1(%rbx), %esi
	testl	%eax, %eax
	cmovel	%ebx, %esi
	movq	_DMA_CUED_XOR_HB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addl	%r15d, %esi
	jmp	LBB0_22
LBB0_7:
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	_DMA_RXOR12@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_20:
	movq	_DMA_CUED_XOR_HB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addl	%r15d, %esi
	addl	(%r12), %esi
	jmp	LBB0_22
LBB0_10:
	movq	_PPC440SPE_DESC_RXOR123@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_DMA_RXOR123@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	movq	_PPC440SPE_DESC_RXOR124@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	_DMA_RXOR124@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_14:
	movq	_PPC440SPE_DESC_RXOR125@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_DMA_RXOR125@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r14d
	movq	_DMA_CUED_REGION_OFF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
LBB0_17:
	movq	_DMA_CUED_XOR_BASE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	xorl	%esi, %esi
LBB0_22:
	movq	%r12, %rdi
	callq	_ppc440spe_get_group_entry
	movq	%rax, %r13
LBB0_23:
	movq	%r13, %rdi
	callq	_likely
	testl	%eax, %eax
	je	LBB0_27
## %bb.24:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_ppc440spe_desc_set_src_addr
	testl	%r15d, %r15d
	je	LBB0_25
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_PPC440SPE_DESC_RXOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	cmpl	$2, (%r12)
	jne	LBB0_27
## %bb.28:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ppc440spe_get_group_entry
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ppc440spe_desc_set_src_addr    ## TAILCALL
LBB0_16:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PPC440SPE_DESC_RXOR,4,2        ## @PPC440SPE_DESC_RXOR
	.comm	_PPC440SPE_DESC_RXOR12,4,2      ## @PPC440SPE_DESC_RXOR12
	.comm	_DMA_RXOR12,4,2                 ## @DMA_RXOR12
	.comm	_DMA_CUED_REGION_OFF,4,2        ## @DMA_CUED_REGION_OFF
	.comm	_PPC440SPE_DESC_RXOR123,4,2     ## @PPC440SPE_DESC_RXOR123
	.comm	_DMA_RXOR123,4,2                ## @DMA_RXOR123
	.comm	_PPC440SPE_DESC_RXOR124,4,2     ## @PPC440SPE_DESC_RXOR124
	.comm	_DMA_RXOR124,4,2                ## @DMA_RXOR124
	.comm	_PPC440SPE_DESC_RXOR125,4,2     ## @PPC440SPE_DESC_RXOR125
	.comm	_DMA_RXOR125,4,2                ## @DMA_RXOR125
	.comm	_DMA_CUED_XOR_BASE,4,2          ## @DMA_CUED_XOR_BASE
	.comm	_DMA_CUED_XOR_HB,4,2            ## @DMA_CUED_XOR_HB
	.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
.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
_ppc440spe_adma_pq_set_src:             ; @ppc440spe_adma_pq_set_src
	.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	x21, x2
	mov	x19, x1
	mov	x20, 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	x22, x0
Lloh0:
	adrp	x26, _PPC440SPE_DESC_RXOR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PPC440SPE_DESC_RXOR@GOTPAGEOFF]
	ldr	w0, [x26]
	add	x23, x20, #16
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.2:
Lloh2:
	adrp	x24, _PPC440SPE_DESC_RXOR12@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PPC440SPE_DESC_RXOR12@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x23
	bl	_test_bit
	cmp	w0, #0
	mov	w8, #-3
	cinc	w8, w8, ne
	cbz	w21, LBB0_10
; %bb.3:
	cmp	w0, #0
	mov	w9, #2
	cinc	w9, w9, eq
	cmp	w9, w21
	b.le	LBB0_12
; %bb.4:
	mov	x25, #0
	mov	w24, #0
	b	LBB0_22
LBB0_5:
	cmp	w8, #128
	b.ne	LBB0_24
; %bb.6:
	ldr	x0, [x20, #8]
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.7:
	mov	x1, x21
	mov	x2, x19
	bl	_ppc440spe_adma_dma2rxor_set_src
	ldr	w1, [x20, #4]
	mov	x0, x20
	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_src
LBB0_9:
Lloh4:
	adrp	x8, _PPC440SPE_ZERO_P@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PPC440SPE_ZERO_P@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	mov	x24, x0
Lloh7:
	adrp	x8, _PPC440SPE_ZERO_Q@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PPC440SPE_ZERO_Q@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cmp	w24, #0
	cset	w8, ne
	mov	w9, #1
	cinc	w9, w9, ne
	cmp	w0, #0
	csel	w8, w8, w9, eq
Lloh10:
	adrp	x9, _DMA_CUED_XOR_HB@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DMA_CUED_XOR_HB@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x9]
	add	w1, w8, w21
	b	LBB0_21
LBB0_10:
	ldr	w0, [x24]
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.11:
Lloh13:
	adrp	x8, _DMA_RXOR12@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_RXOR12@GOTPAGEOFF]
	b	LBB0_19
LBB0_12:
Lloh15:
	adrp	x9, _DMA_CUED_XOR_HB@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DMA_CUED_XOR_HB@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x9]
	ldr	w9, [x20]
	add	w8, w8, w21
	add	w1, w8, w9
	b	LBB0_21
LBB0_13:
Lloh18:
	adrp	x8, _PPC440SPE_DESC_RXOR123@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PPC440SPE_DESC_RXOR123@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_15
; %bb.14:
Lloh21:
	adrp	x8, _DMA_RXOR123@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DMA_RXOR123@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
Lloh23:
	adrp	x8, _PPC440SPE_DESC_RXOR124@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PPC440SPE_DESC_RXOR124@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_17
; %bb.16:
Lloh26:
	adrp	x8, _DMA_RXOR124@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DMA_RXOR124@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh28:
	adrp	x8, _PPC440SPE_DESC_RXOR125@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PPC440SPE_DESC_RXOR125@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_28
; %bb.18:
Lloh31:
	adrp	x8, _DMA_RXOR125@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DMA_RXOR125@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _DMA_CUED_REGION_OFF@GOTPAGE
Lloh34:
	ldr	x9, [x9, _DMA_CUED_REGION_OFF@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	lsl	w8, w8, w9
LBB0_20:
	mov	w1, #0
Lloh36:
	adrp	x9, _DMA_CUED_XOR_BASE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DMA_CUED_XOR_BASE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w24, w9, w8
LBB0_21:
	mov	x0, x20
	bl	_ppc440spe_get_group_entry
	mov	x25, x0
LBB0_22:
	mov	x0, x25
	bl	_likely
	cbz	w0, LBB0_24
; %bb.23:
	mov	x0, x25
	mov	x1, x22
	mov	w2, #0
	mov	x3, x24
	mov	x4, x19
	bl	_ppc440spe_desc_set_src_addr
	cbz	w21, LBB0_25
LBB0_24:
	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_25:
	ldr	w0, [x26]
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_24
; %bb.26:
	ldr	w8, [x20]
	cmp	w8, #2
	b.ne	LBB0_24
; %bb.27:
	mov	x0, x20
	mov	w1, #1
	bl	_ppc440spe_get_group_entry
	mov	x1, x22
	mov	w2, #0
	mov	x3, x24
	mov	x4, 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_desc_set_src_addr
LBB0_28:
	bl	_BUG
	mov	w8, #0
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_PPC440SPE_DESC_RXOR,4,2        ; @PPC440SPE_DESC_RXOR
	.comm	_PPC440SPE_DESC_RXOR12,4,2      ; @PPC440SPE_DESC_RXOR12
	.comm	_DMA_RXOR12,4,2                 ; @DMA_RXOR12
	.comm	_DMA_CUED_REGION_OFF,4,2        ; @DMA_CUED_REGION_OFF
	.comm	_PPC440SPE_DESC_RXOR123,4,2     ; @PPC440SPE_DESC_RXOR123
	.comm	_DMA_RXOR123,4,2                ; @DMA_RXOR123
	.comm	_PPC440SPE_DESC_RXOR124,4,2     ; @PPC440SPE_DESC_RXOR124
	.comm	_DMA_RXOR124,4,2                ; @DMA_RXOR124
	.comm	_PPC440SPE_DESC_RXOR125,4,2     ; @PPC440SPE_DESC_RXOR125
	.comm	_DMA_RXOR125,4,2                ; @DMA_RXOR125
	.comm	_DMA_CUED_XOR_BASE,4,2          ; @DMA_CUED_XOR_BASE
	.comm	_DMA_CUED_XOR_HB,4,2            ; @DMA_CUED_XOR_HB
	.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
.subsections_via_symbols
