	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function SIO_ReadStatusBlock
LCPI0_0:
	.long	1                               ## 0x1
	.long	192                             ## 0xc0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SIO_ReadStatusBlock
	.p2align	4, 0x90
_SIO_ReadStatusBlock:                   ## @SIO_ReadStatusBlock
	.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, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	_SIO_OFF@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpq	(%rdi), %rcx
	je	LBB0_9
## %bb.1:
	movq	_sectorcount@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movslq	(%r8,%rdx,4), %rcx
	imull	$-858993459, %ecx, %edi         ## imm = 0xCCCCCCCD
	addl	$429496728, %edi                ## imm = 0x19999998
	rorl	$3, %edi
	xorl	%r9d, %r9d
	movl	$1, %r10d
	cmpl	$107374182, %edi                ## imm = 0x6666666
	jbe	LBB0_3
## %bb.2:
	movl	%ecx, %edi
	jmp	LBB0_6
LBB0_3:
	imulq	$1717986919, %rcx, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$36, %rdi
	addl	%eax, %edi
	movl	$40, %r10d
	cmpl	$1080, %ecx                     ## imm = 0x438
	jl	LBB0_6
## %bb.4:
	movl	%edi, %eax
	andl	$1, %eax
	jne	LBB0_6
## %bb.5:
	cmpl	$2160, %ecx                     ## imm = 0x870
	setae	%al
	testb	$2, %dil
	sete	%cl
	andb	%al, %cl
	movl	$80, %eax
	movl	$40, %r10d
	cmovnel	%eax, %r10d
	incb	%cl
	sarl	%cl, %edi
	movl	$1, %r9d
LBB0_6:
	movl	%r10d, (%rsi)
	movl	$1, 4(%rsi)
	movl	%edi, %eax
	sarl	$8, %eax
	movl	%eax, 8(%rsi)
	movl	%edi, 12(%rsi)
	movl	%r9d, 16(%rsi)
	movq	_sectorsize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$4, %ecx
	cmpl	$128, (%rax,%rdx,4)
	jne	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	cmpl	$721, (%r8,%rdx,4)              ## imm = 0x2D1
	setge	%cl
	shll	$2, %ecx
LBB0_8:
	movl	%ecx, 20(%rsi)
	movl	(%rax,%rdx,4), %ecx
	sarl	$8, %ecx
	movl	%ecx, 24(%rsi)
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 28(%rsi)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,192,0,0]
	movups	%xmm0, 32(%rsi)
	movl	$67, %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIO_drive_status,8,3           ## @SIO_drive_status
	.comm	_SIO_OFF,8,3                    ## @SIO_OFF
	.comm	_sectorcount,8,3                ## @sectorcount
	.comm	_sectorsize,8,3                 ## @sectorsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function SIO_ReadStatusBlock
lCPI0_0:
	.long	1                               ; 0x1
	.long	192                             ; 0xc0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SIO_ReadStatusBlock
	.p2align	2
_SIO_ReadStatusBlock:                   ; @SIO_ReadStatusBlock
	.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
Lloh6:
	adrp	x9, _sectorcount@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sectorcount@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w13, [x9, x8, lsl #2]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x10, w13, w10
	lsr	x11, x10, #63
	asr	x10, x10, #36
	add	w12, w10, w11
	mov	w10, #40
	msub	w11, w12, w10, w13
	movi	d0, #0000000000000000
	mov	w10, #1
	cbz	w11, LBB0_4
; %bb.3:
	mov.s	v0[0], w13
	mov	w11, #1
	b	LBB0_7
LBB0_4:
	and	w14, w12, #0x1
	mov	w11, #40
	cmp	w13, #1080
	ccmp	w14, #0, #0, ge
	b.ne	LBB0_6
; %bb.5:
	cmp	w13, #2159
	cset	w13, hi
	tst	w12, #0x2
	cset	w14, eq
	tst	w13, w14
	mov	w13, #80
	csel	w11, w13, w11, ne
	mov	w13, #1
	cinc	w13, w13, ne
	asr	w12, w12, w13
	movi.2s	v0, #1
LBB0_6:
	mov.s	v0[0], w12
LBB0_7:
	stp	w11, w10, [x1]
	fmov	w10, s0
	asr	w10, w10, #8
	str	w10, [x1, #8]
	stur	d0, [x1, #12]
Lloh9:
	adrp	x10, _sectorsize@GOTPAGE
Lloh10:
	ldr	x10, [x10, _sectorsize@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	w11, [x10, x8, lsl #2]
	cmp	w11, #128
	b.ne	LBB0_9
; %bb.8:
	ldr	w9, [x9, x8, lsl #2]
	cmp	w9, #720
	cset	w9, gt
	lsl	w9, w9, #2
	b	LBB0_10
LBB0_9:
	mov	w9, #4
LBB0_10:
	str	w9, [x1, #20]
	lsl	x8, x8, #2
	ldr	w9, [x10, x8]
	asr	w9, w9, #8
	str	w9, [x1, #24]
	ldr	w8, [x10, x8]
	str	w8, [x1, #28]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x1, #32]
	mov	w0, #67
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SIO_drive_status,8,3           ; @SIO_drive_status
	.comm	_SIO_OFF,8,3                    ; @SIO_OFF
	.comm	_sectorcount,8,3                ; @sectorcount
	.comm	_sectorsize,8,3                 ; @sectorsize
.subsections_via_symbols
