	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dor
_set_dor:                               ## @set_dor
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FDCS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpl	$-1, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movzbl	4(%rax), %r15d
	andb	%r15b, %bl
	orb	%dl, %bl
	cmpb	%r15b, %bl
	je	LBB0_9
## %bb.3:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %esi
	andl	$3, %esi
	movl	%r15d, %edi
	callq	_is_selected
	movzbl	%bl, %r12d
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	%r15d, %eax
	andb	$3, %al
	movzbl	%al, %r13d
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_is_selected
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_REVDRIVE
	movzbl	%al, %edi
	callq	_disk_change
LBB0_6:
	movq	(%r14), %rax
	movb	%bl, 4(%rax)
	movq	_FD_DOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_fd_outb
	andb	$3, %bl
	movzbl	%bl, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_is_selected
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_is_selected
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_REVDRIVE
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UDRS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDCS,8,3                       ## @FDCS
	.comm	_FD_DOR,4,2                     ## @FD_DOR
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_UDRS,8,3                       ## @UDRS
	.comm	_FD_DEBUG,4,2                   ## @FD_DEBUG
	.comm	_UDP,8,3                        ## @UDP
	.no_dead_strip	_set_dor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dor
_set_dor:                               ; @set_dor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x22, _FDCS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FDCS@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmn	w9, #1
	b.eq	LBB0_8
; %bb.1:
	ldrb	w19, [x8, #4]
	and	w8, w19, w1
	orr	w23, w8, w2
	cmp	w19, w23, uxtb
	b.eq	LBB0_9
; %bb.2:
	mov	x20, x0
	and	w21, w19, #0x3
	mov	x0, x19
	mov	x1, x21
	bl	_is_selected
	cbz	x0, LBB0_5
; %bb.3:
	and	w0, w23, #0xff
	mov	x1, x21
	bl	_is_selected
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_REVDRIVE
	bl	_disk_change
LBB0_5:
	ldr	x8, [x22]
	strb	w23, [x8, #4]
Lloh2:
	adrp	x8, _FD_DOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FD_DOR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	and	w22, w23, #0xff
	mov	x0, x22
	bl	_fd_outb
	and	w21, w23, #0x3
	mov	x0, x19
	mov	x1, x21
	bl	_is_selected
	cbnz	x0, LBB0_9
; %bb.6:
	mov	x0, x22
	mov	x1, x21
	bl	_is_selected
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_REVDRIVE
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _UDRS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UDRS@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	w8, [x9]
	b	LBB0_9
LBB0_8:
	mov	w19, #-1
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FDCS,8,3                       ; @FDCS
	.comm	_FD_DOR,4,2                     ; @FD_DOR
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_UDRS,8,3                       ; @UDRS
	.comm	_FD_DEBUG,4,2                   ; @FD_DEBUG
	.comm	_UDP,8,3                        ; @UDP
	.no_dead_strip	_set_dor
.subsections_via_symbols
