	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function find_corrupted_bit
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_find_corrupted_bit:                    ## @find_corrupted_bit
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, %edi
	callq	_revbin
	movl	%eax, %r15d
	leal	32(,%r14,8), %edi
	movl	%edi, -180(%rbp)                ## 4-byte Spill
	callq	_sqrt
	cvtsi2sd	%rax, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %ebx
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r14)
	movl	%ebx, %r13d
	cmpl	$2, %ebx
	jl	LBB0_3
## %bb.1:
	movl	%r13d, %r12d
	movl	$1, %ebx
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%r14,%rbx,8)
	movl	%eax, %edi
	callq	_xmult
	movl	%eax, 4(%r14,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_3:
	movl	$-2107601189, %edi              ## imm = 0x82608EDB
	callq	_xmult
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movq	_cmp_fcb_table_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r13d, %ebx
	movl	%r13d, %esi
	movl	$8, %edx
	callq	_qsort
	movl	$-2107601189, %edi              ## imm = 0x82608EDB
	movl	%r13d, %esi
	callq	_gf32_pow
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_gf32_shl
	movl	%eax, -176(%rbp,%r12,4)
	incq	%r12
	cmpq	$32, %r12
	jne	LBB0_4
## %bb.5:
	movl	-180(%rbp), %eax                ## 4-byte Reload
	cltd
	idivl	%ebx
	movl	$-1, %r12d
	testl	%eax, %eax
	js	LBB0_18
## %bb.6:
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-176(%rbp), %rdi
	movl	%r15d, %esi
	callq	_gf32_matrix_times
	movl	%eax, %r15d
	leal	1(%r12), %eax
	cmpl	%r13d, %r12d
	movl	%eax, %r12d
	je	LBB0_17
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$-1, %eax
	movl	%ebx, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%edx, %eax
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%ecx, %edx
	subl	%eax, %edx
	cmpl	$1, %edx
	jle	LBB0_13
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rcx,%rax), %edx
	sarl	%edx
	movslq	%edx, %rsi
	cmpl	%r15d, 4(%r14,%rsi,8)
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%edx, %ecx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %eax
	cmpl	%r15d, 4(%r14,%rax,8)
	jne	LBB0_16
## %bb.15:
	imull	%ebx, %r12d
	addl	(%r14,%rax,8), %r12d
                                        ## kill: def $r12d killed $r12d killed $r12
	jmp	LBB0_18
LBB0_17:
	movl	$-1, %r12d
LBB0_18:
	movq	%r14, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r12d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cmp_fcb_table_entry,4,2        ## @cmp_fcb_table_entry
	.no_dead_strip	_find_corrupted_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function find_corrupted_bit
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_find_corrupted_bit:                    ; @find_corrupted_bit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x0, x1
	bl	_revbin
	mov	x20, x0
	lsl	w8, w19, #3
	add	w22, w8, #32
	mov	x0, x22
	bl	_sqrt
	scvtf	d0, x0
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	fcvtzs	w21, d0
	mov	x0, x21
	mov	w1, #8
	bl	_calloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	cmp	w21, #2
	b.lt	LBB0_3
; %bb.1:
	add	x23, x19, #12
	mov	w0, #1
	mov	w24, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stur	w24, [x23, #-4]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_xmult
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x23], #8
	add	x24, x24, #1
	cmp	x21, x24
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #36571
	movk	w0, #33376, lsl #16
	bl	_xmult
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
Lloh5:
	adrp	x8, _cmp_fcb_table_entry@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cmp_fcb_table_entry@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #8
	bl	_qsort
	mov	w0, #36571
	movk	w0, #33376, lsl #16
	mov	x1, x21
	bl	_gf32_pow
	mov	x23, x0
	mov	x24, #0
	add	x25, sp, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_gf32_shl
	str	w0, [x25, x24, lsl #2]
	add	x24, x24, #1
	cmp	x24, #32
	b.ne	LBB0_4
; %bb.5:
	sdiv	w22, w22, w21
	tbnz	w22, #31, LBB0_14
; %bb.6:
	mov	w23, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_gf32_matrix_times
	mov	x20, x0
	add	w8, w23, #1
	cmp	w23, w22
	mov	x23, x8
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #-1
	mov	x9, x21
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w10, w9, w8
	asr	w10, w10, #1
	add	x11, x19, w10, sxtw #3
	ldr	w11, [x11, #4]
	cmp	w11, w20
	csel	w8, w8, w10, hi
	csel	w9, w10, w9, hi
	sub	w10, w9, w8
	cmp	w10, #1
	b.gt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	tbnz	w8, #31, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x19, w8, uxtw #3
	ldr	w9, [x9, #4]
	cmp	w9, w20
	b.ne	LBB0_7
; %bb.13:
	lsl	x8, x8, #3
	ldr	w8, [x19, x8]
	madd	w20, w23, w21, w8
	b	LBB0_15
LBB0_14:
	mov	w20, #-1
LBB0_15:
	mov	x0, x19
	bl	_free
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x20
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cmp_fcb_table_entry,4,2        ; @cmp_fcb_table_entry
	.no_dead_strip	_find_corrupted_bit
.subsections_via_symbols
