	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc440spe_can_rxor
_ppc440spe_can_rxor:                    ## @ppc440spe_can_rxor
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$2, %esi
	setl	%dil
	callq	_unlikely
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_26
## %bb.1:
	movq	_ppc440spe_rxor_srcs@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setl	%dil
	callq	_BUG_ON
	testl	%r15d, %r15d
	jle	LBB0_24
## %bb.2:
	movl	%r15d, %r8d
	cmpl	$1, %r15d
	jne	LBB0_27
## %bb.3:
	xorl	%edx, %edx
	xorl	%eax, %eax
LBB0_4:
	testb	$1, %r8b
	je	LBB0_7
## %bb.5:
	movq	(%rbx,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rdx
	movslq	%eax, %rsi
	incl	%eax
	movq	%rcx, (%rdx,%rsi,8)
LBB0_7:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	cmpl	$2, %eax
	jl	LBB0_25
## %bb.8:
	leal	-2(%rax), %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rsi
	negq	%rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	decq	%rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	decq	%rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ecx, %ecx
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r14d, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r15
	movl	%ecx, %r12d
	cmpq	%r15, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_25
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_ppc440spe_rxor_srcs@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	8(%rax,%r15,8), %rdi
	callq	_page_address
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_page_address
	cmpl	$2, %r14d
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$1, %r14d
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r12d, %ecx
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rax,%rdx), %rcx
	movl	$1, %r14d
	cmpq	%rcx, %rbx
	je	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	%rdx, %rbx
	movl	$-1, %ecx
	cmpq	%rbx, %rax
	je	LBB0_11
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ecx, %ecx
	cmpq	%r15, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_10
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$-1, %r12d
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addq	%rax, %rdx
	movl	$0, %r14d
	cmpq	%rdx, %rbx
	jne	LBB0_11
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movslq	%r12d, %rcx
	imulq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%rax, %rcx
	cmpq	%rcx, %rbx
	sete	%cl
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	%rax, %rdx
	cmpq	%rdx, %rbx
	sete	%dl
	orb	%cl, %dl
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	cmpq	%rax, %rbx
	sete	%al
	orb	%dl, %al
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r12d, %r12d
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=1
	movzbl	%al, %r14d
	addl	%r14d, %r14d
	movl	%r12d, %ecx
	jmp	LBB0_11
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	$1, %ecx
	jmp	LBB0_11
LBB0_24:
	xorl	%r14d, %r14d
LBB0_25:
	decl	%r14d
	xorl	%eax, %eax
	cmpl	$2, %r14d
	setb	%al
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %r9
	je	LBB0_4
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%r12), %rcx
	movslq	%eax, %rsi
	incl	%eax
	movq	%rdi, (%rcx,%rsi,8)
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	8(%rbx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%r12), %rcx
	movslq	%eax, %rsi
	incl	%eax
	movq	%rdi, (%rcx,%rsi,8)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ppc440spe_rxor_srcs,8,3        ## @ppc440spe_rxor_srcs
	.no_dead_strip	_ppc440spe_can_rxor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc440spe_can_rxor
_ppc440spe_can_rxor:                    ; @ppc440spe_can_rxor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	w1, #2
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_24
LBB0_2:
Lloh0:
	adrp	x22, _ppc440spe_rxor_srcs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ppc440spe_rxor_srcs@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, w21
	cset	w0, lt
	bl	_BUG_ON
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.3:
	mov	w8, #0
	mov	w9, w21
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #8
	subs	x9, x9, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20]
	cbz	x10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x22]
	str	x10, [x11, w8, sxtw #3]
	add	w8, w8, #1
	b	LBB0_4
LBB0_7:
	subs	w9, w8, #2
	b.lt	LBB0_22
; %bb.8:
	mov	x21, #0
	mov	w25, #0
	mov	w28, #0
	neg	x23, x19
	lsl	x24, x19, #1
	add	x10, x24, x19
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	mov	w8, w8
	lsl	x9, x9, #3
	sub	x26, x9, #8
	lsl	x8, x8, #3
	sub	x27, x8, #8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w28, #0
	mov	w25, #0
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #8
	cmp	x27, x21
	b.eq	LBB0_23
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x21
	ldr	x0, [x8, #8]
	bl	_page_address
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x0, [x8, x21]
	bl	_page_address
	cmp	w25, #2
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w25, #1
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cbnz	w25, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x0, x19
	cmp	x20, x8
	b.eq	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x20, x19
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w25, #1
	mov	w28, #-1
	b	LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x26, x21
	b.eq	LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	cmn	w28, #1
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x0, x23
	cmp	x20, x8
	b.ne	LBB0_9
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	sxtw	x8, w28
	madd	x8, x8, x19, x0
	cmp	x20, x8
	add	x8, x0, x24
	ccmp	x20, x8, #4, ne
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x0, x8
	ccmp	x20, x8, #4, ne
	csel	w28, w28, wzr, eq
	mov	w8, #2
	csel	w25, w8, wzr, eq
	b	LBB0_10
LBB0_21:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w28, #1
	mov	w25, #1
	b	LBB0_10
LBB0_22:
	mov	w25, #0
LBB0_23:
	sub	w8, w25, #1
	cmp	w8, #2
	cset	w0, lo
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ppc440spe_rxor_srcs,8,3        ; @ppc440spe_rxor_srcs
	.no_dead_strip	_ppc440spe_can_rxor
.subsections_via_symbols
