	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteSectorBack
_WriteSectorBack:                       ## @WriteSectorBack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CommandFrame@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movb	(%rcx), %al
	addb	$-49, %al
	movq	_SIO_MAX_DRIVES@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %al
	jge	LBB0_1
## %bb.2:
	movl	12(%rcx), %esi
	shll	$8, %esi
	addl	8(%rcx), %esi
	movl	4(%rcx), %edx
	movb	$69, %cl
	cmpl	$86, %edx
	jle	LBB0_3
## %bb.6:
	cmpl	$87, %edx
	je	LBB0_5
## %bb.7:
	cmpl	$208, %edx
	je	LBB0_5
## %bb.8:
	cmpl	$215, %edx
	je	LBB0_5
	jmp	LBB0_9
LBB0_1:
	xorl	%ecx, %ecx
LBB0_9:
	movzbl	%cl, %eax
	popq	%rbp
	retq
LBB0_3:
	cmpl	$79, %edx
	je	LBB0_10
## %bb.4:
	cmpl	$80, %edx
	jne	LBB0_9
LBB0_5:
	movq	_DataBuffer@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movsbl	%al, %edi
	popq	%rbp
	jmp	_SIO_WriteSector                ## TAILCALL
LBB0_10:
	movq	_DataBuffer@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movsbl	%al, %edi
	popq	%rbp
	jmp	_SIO_WriteStatusBlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CommandFrame,8,3               ## @CommandFrame
	.comm	_SIO_MAX_DRIVES,1,0             ## @SIO_MAX_DRIVES
	.comm	_DataBuffer,4,2                 ## @DataBuffer
	.no_dead_strip	_WriteSectorBack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteSectorBack
_WriteSectorBack:                       ; @WriteSectorBack
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CommandFrame@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CommandFrame@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrb	w9, [x8]
	sub	w9, w9, #49
	sxtb	w0, w9
Lloh3:
	adrp	x9, _SIO_MAX_DRIVES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIO_MAX_DRIVES@GOTPAGEOFF]
Lloh5:
	ldrsb	w9, [x9]
	cmp	w0, w9
	b.ge	LBB0_6
; %bb.1:
	ldp	w10, w9, [x8, #8]
	ldr	w11, [x8, #4]
	mov	w8, #69
	cmp	w11, #86
	b.le	LBB0_7
; %bb.2:
	cmp	w11, #87
	b.eq	LBB0_5
; %bb.3:
	cmp	w11, #208
	b.eq	LBB0_5
; %bb.4:
	cmp	w11, #215
	b.ne	LBB0_9
LBB0_5:
	add	w1, w10, w9, lsl #8
Lloh6:
	adrp	x8, _DataBuffer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DataBuffer@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	b	_SIO_WriteSector
LBB0_6:
	mov	w0, #0
	ret
LBB0_7:
	cmp	w11, #79
	b.eq	LBB0_10
; %bb.8:
	cmp	w11, #80
	b.eq	LBB0_5
LBB0_9:
	mov	x0, x8
	ret
LBB0_10:
Lloh9:
	adrp	x8, _DataBuffer@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DataBuffer@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	b	_SIO_WriteStatusBlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CommandFrame,8,3               ; @CommandFrame
	.comm	_SIO_MAX_DRIVES,1,0             ; @SIO_MAX_DRIVES
	.comm	_DataBuffer,4,2                 ; @DataBuffer
	.no_dead_strip	_WriteSectorBack
.subsections_via_symbols
