	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_is_badblock                 ## -- Begin function md_is_badblock
	.p2align	4, 0x90
_md_is_badblock:                        ## @md_is_badblock
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	addl	%esi, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	sarl	%cl, %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	addl	%eax, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r13d
	jmp	LBB0_3
LBB0_1:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r15
	leaq	8(%rax), %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_read_seqretry
	testq	%rax, %rax
	je	LBB0_21
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	%rbx, %rdi
	callq	_read_seqbegin
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r12d
	xorl	%r14d, %r14d
	cmpl	$2, %r12d
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r14d, %ebx
	movl	$0, %ebx
	jle	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %r12d
	incq	%r12
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %eax
	subl	%r14d, %eax
	movl	%ebx, %r12d
	cmpl	$1, %eax
	jle	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r12,%r14), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movslq	%ebx, %rax
	movl	(%r15,%rax,4), %edi
	callq	_BB_OFFSET
	cmpl	%r13d, %eax
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %r14d
	movl	%r12d, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	$-1, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	-4(%r15,%r12,4), %edi
	callq	_BB_OFFSET
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-4(%r15,%r12,4), %edi
	callq	_BB_LEN
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=2
	decq	%r12
	jle	LBB0_20
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%r15,%r12,4), %edi
	callq	_BB_OFFSET
	movl	%eax, %r14d
	movl	-4(%r15,%r12,4), %edi
	callq	_BB_LEN
	addl	%r14d, %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	-4(%r15,%r12,4), %edi
	callq	_BB_OFFSET
	cmpl	%r13d, %eax
	jge	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpl	$-1, %ebx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	-4(%r15,%r12,4), %edi
	callq	_BB_ACK
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_17
LBB0_21:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_is_badblock                 ; -- Begin function md_is_badblock
	.p2align	2
_md_is_badblock:                        ; @md_is_badblock
	.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, x4
	mov	x20, x3
	ldr	x26, [x0, #16]
	ldr	w8, [x0]
	asr	w9, w1, w8
	mov	w10, #-1
	lsl	w10, w10, w8
	mvn	w10, w10
	add	w11, w2, w1
	add	w10, w11, w10
	asr	w10, w10, w8
	cmp	w8, #1
	csel	w27, w11, w10, lt
	csel	w28, w1, w9, lt
	add	x21, x0, #8
	stp	x21, x0, [sp]                   ; 16-byte Folded Spill
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	mov	x0, x21
	mov	x1, x23
	bl	_read_seqretry
	cbz	x0, LBB0_17
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x21
	bl	_read_seqbegin
	mov	x23, x0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w21, [x8, #4]
	cmp	w21, #2
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, #0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w21, w22
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w24, w8, #1
	ldr	w0, [x26, w24, sxtw #2]
	bl	_BB_OFFSET
	cmp	w0, w27
	csel	w22, w24, w22, lt
	csel	w21, w21, w24, lt
	sub	w8, w21, w22
	cmp	w8, #1
	b.gt	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #0
	tbz	w22, #31, LBB0_7
	b	LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, #0
	mov	w24, #0
	tbnz	w22, #31, LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, w22
	b.le	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #0
	mov	w21, w22
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=2
	mov	w24, #-1
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w0, [x26, x22]
	bl	_BB_OFFSET
	str	w0, [x20]
	ldr	w0, [x26, x22]
	bl	_BB_LEN
	str	w0, [x19]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	sub	x8, x21, #1
	cmp	x21, #0
	mov	x21, x8
	b.le	LBB0_1
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x22, x21, #2
	ldr	w0, [x26, x22]
	bl	_BB_OFFSET
	mov	x25, x0
	ldr	w0, [x26, x22]
	bl	_BB_LEN
	add	w8, w0, w25
	cmp	w8, w28
	b.le	LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w0, [x26, x21, lsl #2]
	bl	_BB_OFFSET
	cmp	w0, w27
	b.ge	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	cmn	w24, #1
	b.eq	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w0, [x26, x21, lsl #2]
	bl	_BB_ACK
	cbz	x0, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	w24, #1
	b	LBB0_10
LBB0_17:
	mov	x0, x24
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
