	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spinand_match_and_init         ## -- Begin function spinand_match_and_init
	.p2align	4, 0x90
_spinand_match_and_init:                ## @spinand_match_and_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_spinand_to_nand
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.1:
	movl	%r12d, %ecx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, (%r15,%rbx)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$40, %rbx
	cmpq	%rbx, %rcx
	jne	LBB0_2
	jmp	LBB0_7
LBB0_3:
	movl	36(%r15,%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	32(%r15,%rbx), %ecx
	movl	%ecx, (%rax)
	movl	28(%r15,%rbx), %eax
	movl	%eax, 32(%r14)
	movl	24(%r15,%rbx), %eax
	movl	%eax, 28(%r14)
	movl	20(%r15,%rbx), %eax
	movl	%eax, 24(%r14)
	movl	16(%r15,%rbx), %esi
	movq	%r14, %rdi
	callq	_spinand_select_op_variant
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, 16(%r14)
	movl	12(%r15,%rbx), %esi
	movq	%r14, %rdi
	callq	_spinand_select_op_variant
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, 8(%r14)
	movl	8(%r15,%rbx), %esi
	movq	%r14, %rdi
	callq	_spinand_select_op_variant
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spinand_match_and_init         ; -- Begin function spinand_match_and_init
	.p2align	2
_spinand_match_and_init:                ; @spinand_match_and_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_spinand_to_nand
	cbz	w22, LBB0_7
; %bb.1:
	mov	w8, w22
	add	x21, x21, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x21, #-16]
	cmp	x9, x20
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #40
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_7
LBB0_4:
	ldr	d0, [x21, #16]
	str	d0, [x0]
	ldr	w8, [x21, #12]
	str	w8, [x19, #32]
	ldur	d0, [x21, #4]
	str	d0, [x19, #24]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_spinand_select_op_variant
	cbz	x0, LBB0_7
; %bb.5:
	str	x0, [x19, #16]
	ldur	w1, [x21, #-4]
	mov	x0, x19
	bl	_spinand_select_op_variant
	cbz	x0, LBB0_7
; %bb.6:
	str	x0, [x19, #8]
	ldur	w1, [x21, #-8]
	mov	x0, x19
	bl	_spinand_select_op_variant
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
.subsections_via_symbols
