	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_WriteStatusBlock           ## -- Begin function SIO_WriteStatusBlock
	.p2align	4, 0x90
_SIO_WriteStatusBlock:                  ## @SIO_WriteStatusBlock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SIO_drive_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	_SIO_OFF@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpq	(%rdi), %rdx
	je	LBB0_5
## %bb.1:
	movl	24(%rsi), %eax
	shll	$8, %eax
	addl	28(%rsi), %eax
	cmpl	$256, %eax                      ## imm = 0x100
	je	LBB0_3
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_4
LBB0_3:
	movq	_SIO_format_sectorsize@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rdx,%rcx,4)
LBB0_4:
	movl	8(%rsi), %eax
	shll	$8, %eax
	addl	12(%rsi), %eax
	imull	(%rsi), %eax
	movl	16(%rsi), %edx
	incl	%edx
	imull	%eax, %edx
	movq	_SIO_format_sectorcount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leal	-65536(%rdx), %esi
	cmpl	$-65535, %esi                   ## imm = 0xFFFF0001
	movl	$720, %esi                      ## imm = 0x2D0
	cmovael	%edx, %esi
	movl	%esi, (%rax,%rcx,4)
	movl	$67, %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIO_drive_status,8,3           ## @SIO_drive_status
	.comm	_SIO_OFF,8,3                    ## @SIO_OFF
	.comm	_SIO_format_sectorsize,8,3      ## @SIO_format_sectorsize
	.comm	_SIO_format_sectorcount,8,3     ## @SIO_format_sectorcount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_WriteStatusBlock           ; -- Begin function SIO_WriteStatusBlock
	.p2align	2
_SIO_WriteStatusBlock:                  ; @SIO_WriteStatusBlock
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _SIO_drive_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIO_drive_status@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
Lloh3:
	adrp	x9, _SIO_OFF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIO_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	sxtw	x8, w0
	ldp	w9, w10, [x1, #24]
	add	w9, w10, w9, lsl #8
	cmp	w9, #256
	b.eq	LBB0_4
; %bb.3:
	cmp	w9, #128
	b.ne	LBB0_5
LBB0_4:
Lloh6:
	adrp	x10, _SIO_format_sectorsize@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SIO_format_sectorsize@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	str	w9, [x10, x8, lsl #2]
LBB0_5:
	ldr	w9, [x1]
	ldp	w10, w11, [x1, #8]
	add	w10, w11, w10, lsl #8
	mul	w9, w10, w9
	ldr	w10, [x1, #16]
	madd	w9, w9, w10, w9
Lloh9:
	adrp	x10, _SIO_format_sectorcount@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SIO_format_sectorcount@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	sub	w11, w9, #16, lsl #12           ; =65536
	mov	w12, #-65535
	mov	w13, #720
	cmp	w11, w12
	csel	w9, w13, w9, lo
	str	w9, [x10, x8, lsl #2]
	mov	w0, #67
	ret
	.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	_SIO_drive_status,8,3           ; @SIO_drive_status
	.comm	_SIO_OFF,8,3                    ; @SIO_OFF
	.comm	_SIO_format_sectorsize,8,3      ; @SIO_format_sectorsize
	.comm	_SIO_format_sectorcount,8,3     ; @SIO_format_sectorcount
.subsections_via_symbols
