	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_biterror
_insert_biterror:                       ## @insert_biterror
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mtd@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpl	%edi, (%rax)
	jbe	LBB0_12
## %bb.1:
	movl	%edi, %r14d
	movq	_wbuffer@GOTPCREL(%rip), %r12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	$7, %ebx
	movl	$7, %esi
	callq	_CBIT
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	$6, %ebx
	movl	$6, %esi
	callq	_CBIT
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	$5, %ebx
	movl	$5, %esi
	callq	_CBIT
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	$4, %ebx
	movl	$4, %esi
	callq	_CBIT
	testq	%rax, %rax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	$3, %ebx
	movl	$3, %esi
	callq	_CBIT
	testq	%rax, %rax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	$2, %ebx
	movl	$2, %esi
	callq	_CBIT
	testq	%rax, %rax
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	$1, %ebx
	movl	$1, %esi
	callq	_CBIT
	testq	%rax, %rax
	jne	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_CBIT
	testq	%rax, %rax
	jne	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	incq	%r14
	cmpl	(%rax), %r14d
	jb	LBB0_2
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_3:
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	%ebx, %esi
	callq	_BCLR
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_pr_info
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mtd,8,3                        ## @mtd
	.comm	_wbuffer,8,3                    ## @wbuffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inserted biterror @ %u/%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"biterror: Failed to find a '1' bit\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_insert_biterror
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_biterror
_insert_biterror:                       ; @insert_biterror
	.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
Lloh0:
	adrp	x22, _mtd@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mtd@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_11
; %bb.1:
	mov	w19, w0
Lloh2:
	adrp	x21, _wbuffer@GOTPAGE
Lloh3:
	ldr	x21, [x21, _wbuffer@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	mov	w20, #7
	mov	w1, #7
	bl	_CBIT
	cbnz	x0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	mov	w20, #6
	mov	w1, #6
	bl	_CBIT
	cbnz	x0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	mov	w20, #5
	mov	w1, #5
	bl	_CBIT
	cbnz	x0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	mov	w20, #4
	mov	w1, #4
	bl	_CBIT
	cbnz	x0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	mov	w20, #3
	mov	w1, #3
	bl	_CBIT
	cbnz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	mov	w20, #2
	mov	w1, #2
	bl	_CBIT
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	mov	w20, #1
	mov	w1, #1
	bl	_CBIT
	cbnz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	mov	w1, #0
	bl	_CBIT
	cbnz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	w8, [x8]
	add	x19, x19, #1
	cmp	w19, w8
	b.lo	LBB0_2
LBB0_11:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_12:
	mov	w20, #0
LBB0_13:
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	mov	x1, x20
	bl	_BCLR
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_pr_info
	mov	w0, #0
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mtd,8,3                        ; @mtd
	.comm	_wbuffer,8,3                    ; @wbuffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inserted biterror @ %u/%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"biterror: Failed to find a '1' bit\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_insert_biterror
.subsections_via_symbols
