	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_disk_ro                    ## -- Begin function set_disk_ro
	.p2align	4, 0x90
_set_disk_ro:                           ## @set_disk_ro
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	%esi, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_set_disk_ro_uevent
	movl	%ebx, (%r14)
LBB0_2:
	movq	_DISK_PITER_INCL_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_disk_part_iter_init
	movq	%r15, %rdi
	callq	_disk_part_iter_next
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	-32(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%rax)
	movq	%r14, %rdi
	callq	_disk_part_iter_next
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	leaq	-32(%rbp), %rdi
	callq	_disk_part_iter_exit
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISK_PITER_INCL_EMPTY,4,2      ## @DISK_PITER_INCL_EMPTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_disk_ro                    ; -- Begin function set_disk_ro
	.p2align	2
_set_disk_ro:                           ; @set_disk_ro
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_set_disk_ro_uevent
	str	w19, [x20]
LBB0_2:
Lloh0:
	adrp	x8, _DISK_PITER_INCL_EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISK_PITER_INCL_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_disk_part_iter_init
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_disk_part_iter_next
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w19, [x0]
	b	LBB0_3
LBB0_5:
	add	x0, sp, #8
	bl	_disk_part_iter_exit
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DISK_PITER_INCL_EMPTY,4,2      ; @DISK_PITER_INCL_EMPTY
.subsections_via_symbols
