	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function force_ro_store
_force_ro_store:                        ## @force_ro_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rdi, %r13
	callq	_dev_to_disk
	movl	%eax, %edi
	callq	_mmc_blk_get
	movq	%rax, %r15
	leaq	-56(%rbp), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_simple_strtoul
	cmpq	%rbx, -56(%rbp)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_dev_to_disk
	movl	$1, %esi
	testq	%r12, %r12
	jne	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	cmpq	$0, (%r15)
	setne	%sil
LBB0_4:
	movl	%eax, %edi
	callq	_set_disk_ro
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_mmc_blk_put
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_force_ro_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function force_ro_store
_force_ro_store:                        ; @force_ro_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x21, x0
	bl	_dev_to_disk
	bl	_mmc_blk_get
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #0
	bl	_simple_strtoul
	ldr	x8, [sp, #8]
	cmp	x8, x23
	b.eq	LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	bl	_dev_to_disk
	cbz	x22, LBB0_4
; %bb.2:
	mov	w1, #1
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_4:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w1, ne
LBB0_5:
	bl	_set_disk_ro
LBB0_6:
	mov	x0, x20
	bl	_mmc_blk_put
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_force_ro_store
.subsections_via_symbols
