	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_bit_wise_majority
_nand_bit_wise_majority:                ## @nand_bit_wise_majority
	.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, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %edx
	shrl	%edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	xorl	%eax, %eax
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	movq	%rcx, %rax
	incq	%rax
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	incl	%ecx
	cmpl	$8, %ecx
	je	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rbx,%r15,8), %rax
	movq	%r14, %rbx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax,%rdx,4), %r14d
	movl	%ecx, %r13d
	movl	%ecx, %edi
	callq	_BIT
	movl	%r13d, %ecx
	andl	%r14d, %eax
	movq	%rbx, %r14
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$1, %eax
	sbbl	$-1, %r12d
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%r13d, %edi
	callq	_BIT
	movl	%r13d, %ecx
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_8
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nand_bit_wise_majority
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_bit_wise_majority
_nand_bit_wise_majority:                ; @nand_bit_wise_majority
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	x2, x0, [sp, #16]               ; 16-byte Folded Spill
	cbz	w3, LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x23, #0
	lsr	w24, w1, #1
	mov	w8, w3
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w19, w1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	w27, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x23, x8
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	mov	w27, #0
	mov	w22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w22, w22, #1
	cmp	w22, #8
	b.eq	LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	cbz	w20, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w28, #0
	mov	x26, x19
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x21], #8
	ldr	w25, [x8, x23, lsl #2]
	mov	x0, x22
	bl	_BIT
	tst	w0, w25
	cinc	w28, w28, ne
	subs	x26, x26, #1
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w28, w24
	b.ls	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x22
	bl	_BIT
	orr	w27, w0, w27
	b	LBB0_4
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nand_bit_wise_majority
.subsections_via_symbols
