	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_SizeOfSector               ## -- Begin function SIO_SizeOfSector
	.p2align	4, 0x90
_SIO_SizeOfSector:                      ## @SIO_SizeOfSector
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	_image_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdi,8), %r10
	movq	_IMAGE_TYPE_ATR@GOTPCREL(%rip), %r8
	xorl	%r9d, %r9d
	cmpq	(%r8), %r10
	sete	%r8b
	movq	_BINLOAD_start_binloading@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movl	$128, (%rdx)
LBB0_3:
	xorl	%r10d, %r10d
	jmp	LBB0_9
LBB0_4:
	movq	_IMAGE_TYPE_PRO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r10
	jne	LBB0_12
## %bb.5:
	imull	$140, %esi, %r10d
	addl	$-124, %r10d
LBB0_6:
	movl	$128, %r8d
LBB0_7:
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movl	%r8d, (%rdx)
LBB0_9:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movl	%r10d, (%rcx)
LBB0_11:
	popq	%rbp
	retq
LBB0_12:
	movq	_IMAGE_TYPE_VAPI@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r10
	jne	LBB0_17
## %bb.13:
	movq	_additional_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdi,8), %r9
	movl	$128, %r8d
	xorl	%r10d, %r10d
	testq	%r9, %r9
	je	LBB0_7
## %bb.14:
	movq	_sectorcount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%esi, (%rax,%rdi,4)
	jl	LBB0_7
## %bb.15:
	movq	(%r9), %rdi
	movslq	%esi, %rsi
	decq	%rsi
	shlq	$4, %rsi
	cmpq	$0, (%rdi,%rsi)
	je	LBB0_7
## %bb.16:
	movq	8(%rdi,%rsi), %rax
	movl	(%rax), %r10d
	jmp	LBB0_7
LBB0_17:
	movb	%r8b, %r9b
	shll	$4, %r9d
	cmpl	$3, %esi
	jg	LBB0_19
## %bb.18:
	decl	%esi
	movq	_boot_sectors_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdi,8), %rax
	movq	_BOOT_SECTORS_PHYSICAL@GOTPCREL(%rip), %rdi
	xorl	%r10d, %r10d
	cmpq	(%rdi), %rax
	sete	%r10b
	shll	$7, %r10d
	subl	$-128, %r10d
	imull	%esi, %r10d
	orl	%r9d, %r10d
	jmp	LBB0_6
LBB0_19:
	movq	_sectorsize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdi,4), %r8d
	movq	_boot_sectors_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdi,8), %rax
	movq	_BOOT_SECTORS_LOGICAL@GOTPCREL(%rip), %rdi
	addl	$-4, %esi
	imull	%r8d, %esi
	cmpq	(%rdi), %rax
	leal	384(%rsi,%r9), %eax
	leal	768(%rsi,%r9), %r10d
	cmovel	%eax, %r10d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_image_type,8,3                 ## @image_type
	.comm	_IMAGE_TYPE_ATR,8,3             ## @IMAGE_TYPE_ATR
	.comm	_BINLOAD_start_binloading,8,3   ## @BINLOAD_start_binloading
	.comm	_IMAGE_TYPE_PRO,8,3             ## @IMAGE_TYPE_PRO
	.comm	_IMAGE_TYPE_VAPI,8,3            ## @IMAGE_TYPE_VAPI
	.comm	_additional_info,8,3            ## @additional_info
	.comm	_sectorcount,8,3                ## @sectorcount
	.comm	_boot_sectors_type,8,3          ## @boot_sectors_type
	.comm	_BOOT_SECTORS_PHYSICAL,8,3      ## @BOOT_SECTORS_PHYSICAL
	.comm	_sectorsize,8,3                 ## @sectorsize
	.comm	_BOOT_SECTORS_LOGICAL,8,3       ## @BOOT_SECTORS_LOGICAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_SizeOfSector               ; -- Begin function SIO_SizeOfSector
	.p2align	2
_SIO_SizeOfSector:                      ; @SIO_SizeOfSector
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _image_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _image_type@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, x0, lsl #3]
Lloh3:
	adrp	x9, _IMAGE_TYPE_ATR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IMAGE_TYPE_ATR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w9, eq
Lloh6:
	adrp	x10, _BINLOAD_start_binloading@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BINLOAD_start_binloading@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cbz	x10, LBB0_5
; %bb.1:
	cbz	x2, LBB0_3
; %bb.2:
	mov	w8, #128
	str	w8, [x2]
LBB0_3:
	cbz	x3, LBB0_18
; %bb.4:
	mov	w9, #0
	b	LBB0_17
LBB0_5:
Lloh9:
	adrp	x10, _IMAGE_TYPE_PRO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IMAGE_TYPE_PRO@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #140
	mul	w8, w1, w8
	sub	w9, w8, #124
	mov	w8, #128
	cbnz	x2, LBB0_15
	b	LBB0_16
LBB0_7:
Lloh12:
	adrp	x10, _IMAGE_TYPE_VAPI@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IMAGE_TYPE_VAPI@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_12
; %bb.8:
Lloh15:
	adrp	x8, _additional_info@GOTPAGE
Lloh16:
	ldr	x8, [x8, _additional_info@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x8, [x8, x0, lsl #3]
	cbz	x8, LBB0_14
; %bb.9:
Lloh18:
	adrp	x9, _sectorcount@GOTPAGE
Lloh19:
	ldr	x9, [x9, _sectorcount@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	w9, [x9, x0, lsl #2]
	cmp	w9, w1
	b.lt	LBB0_14
; %bb.10:
	ldr	x8, [x8]
	sxtw	x9, w1
	sub	x9, x9, #1
	lsl	x10, x9, #4
	ldr	x10, [x8, x10]
	cbz	x10, LBB0_14
; %bb.11:
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	ldr	w9, [x8]
	mov	w8, #128
	cbnz	x2, LBB0_15
	b	LBB0_16
LBB0_12:
	lsl	w9, w9, #4
	cmp	w1, #3
	b.gt	LBB0_19
; %bb.13:
	sub	w10, w1, #1
Lloh21:
	adrp	x8, _boot_sectors_type@GOTPAGE
Lloh22:
	ldr	x8, [x8, _boot_sectors_type@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x8, [x8, x0, lsl #3]
Lloh24:
	adrp	x11, _BOOT_SECTORS_PHYSICAL@GOTPAGE
Lloh25:
	ldr	x11, [x11, _BOOT_SECTORS_PHYSICAL@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
	cmp	x8, x11
	mov	w8, #128
	mov	w11, #256
	csel	w11, w11, w8, eq
	mul	w10, w11, w10
	orr	w9, w10, w9
	cbnz	x2, LBB0_15
	b	LBB0_16
LBB0_14:
	mov	w9, #0
	mov	w8, #128
	cbz	x2, LBB0_16
LBB0_15:
	str	w8, [x2]
LBB0_16:
	cbz	x3, LBB0_18
LBB0_17:
	str	w9, [x3]
LBB0_18:
	ret
LBB0_19:
Lloh27:
	adrp	x8, _sectorsize@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sectorsize@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	w8, [x8, x0, lsl #2]
Lloh30:
	adrp	x10, _boot_sectors_type@GOTPAGE
Lloh31:
	ldr	x10, [x10, _boot_sectors_type@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	ldr	x10, [x10, x0, lsl #3]
Lloh33:
	adrp	x11, _BOOT_SECTORS_LOGICAL@GOTPAGE
Lloh34:
	ldr	x11, [x11, _BOOT_SECTORS_LOGICAL@GOTPAGEOFF]
Lloh35:
	ldr	x11, [x11]
	cmp	x10, x11
	mov	w10, #768
	mov	w11, #384
	csel	w10, w11, w10, eq
	sub	w11, w1, #4
	madd	w9, w8, w11, w9
	add	w9, w9, w10
	cbnz	x2, LBB0_15
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_image_type,8,3                 ; @image_type
	.comm	_IMAGE_TYPE_ATR,8,3             ; @IMAGE_TYPE_ATR
	.comm	_BINLOAD_start_binloading,8,3   ; @BINLOAD_start_binloading
	.comm	_IMAGE_TYPE_PRO,8,3             ; @IMAGE_TYPE_PRO
	.comm	_IMAGE_TYPE_VAPI,8,3            ; @IMAGE_TYPE_VAPI
	.comm	_additional_info,8,3            ; @additional_info
	.comm	_sectorcount,8,3                ; @sectorcount
	.comm	_boot_sectors_type,8,3          ; @boot_sectors_type
	.comm	_BOOT_SECTORS_PHYSICAL,8,3      ; @BOOT_SECTORS_PHYSICAL
	.comm	_sectorsize,8,3                 ; @sectorsize
	.comm	_BOOT_SECTORS_LOGICAL,8,3       ; @BOOT_SECTORS_LOGICAL
.subsections_via_symbols
