	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_badblocks
_parse_badblocks:                       ## @parse_badblocks
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_badblocks@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, -40(%rbp)
	movb	(%rdi), %bl
	leaq	-40(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	%bl, %bl
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_simple_strtoul
	cmpb	$48, %bl
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	imull	(%r14), %eax
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	*(%r12)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-40(%rbp), %rdi
	movzbl	(%rdi), %ebx
	cmpb	$44, %bl
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rdi), %rax
	movq	%rax, -40(%rbp)
	movzbl	1(%rdi), %ebx
	movq	%rax, %rdi
	jmp	LBB0_2
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_NS_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_badblocks,8,3                  ## @badblocks
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid badblocks.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_parse_badblocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_badblocks
_parse_badblocks:                       ; @parse_badblocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _badblocks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _badblocks@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x1
	str	x0, [sp, #8]
	ldrb	w21, [x0]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w21, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	w2, #0
	bl	_simple_strtoul
	cmp	w21, #48
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w0, LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	mul	w1, w8, w0
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #8]
	ldrb	w21, [x0]
	cmp	w21, #44
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, #1
	str	x8, [sp, #8]
	ldrb	w21, [x0, #1]
	mov	x0, x8
	b	LBB0_2
LBB0_8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NS_ERR
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_badblocks,8,3                  ; @badblocks
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid badblocks.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_parse_badblocks
.subsections_via_symbols
