	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function badblocks_store
_badblocks_store:                       ## @badblocks_store
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-25(%rbp), %r8
	movq	%rax, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$3, %eax
	jne	LBB0_3
## %bb.2:
	cmpb	$10, -25(%rbp)
	jne	LBB0_3
LBB0_4:
	movl	-32(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_3
## %bb.5:
	movq	-40(%rbp), %rsi
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	sete	%cl
	movq	%r14, %rdi
	callq	_md_set_badblocks
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%llu %d%c"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOSPC,8,3                     ## @ENOSPC
	.no_dead_strip	_badblocks_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function badblocks_store
_badblocks_store:                       ; @badblocks_store
	.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	x21, x3
	mov	x19, x2
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	add	x3, sp, #4
	add	x4, sp, #3
	mov	x0, x8
	bl	_sscanf
	cmp	w0, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.2:
	ldrb	w8, [sp, #3]
	cmp	w8, #10
	b.ne	LBB0_6
LBB0_3:
	ldr	w2, [sp, #4]
	cmp	w2, #0
	b.le	LBB0_6
; %bb.4:
	ldr	x1, [sp, #8]
	cmp	w21, #0
	cset	w3, eq
	mov	x0, x20
	bl	_md_set_badblocks
	cbnz	x0, LBB0_8
; %bb.5:
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_8:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%llu %d%c"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOSPC,8,3                     ; @ENOSPC
	.no_dead_strip	_badblocks_store
.subsections_via_symbols
