	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dskread
_dskread:                               ## @dskread
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_dsk_meta@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_1:
	movq	_dsk@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drvread                        ## TAILCALL
LBB0_2:
	movq	_dmadat@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_dsk@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	movq	_DOSBBSECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_drvread
	testl	%eax, %eax
	jne	LBB0_35
## %bb.3:
	movq	%rbx, %rcx
	movq	_DOSPARTOFF@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	%r13, %rbx
	movq	8(%r13), %r13
	movq	_BASE_SLICE@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	cmpq	%r10, %r13
	jge	LBB0_13
## %bb.4:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_NDOSPART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %r11
	testq	%rsi, %rsi
	movq	%rcx, %rbx
	je	LBB0_18
## %bb.5:
	movq	_DOSPTYP_386BSD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_COMPATIBILITY_SLICE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rbx), %rdx
	addq	$8, %rdx
	shlq	$4, %rsi
	xorl	%ecx, %ecx
	movq	%r10, %rdi
	movq	%r13, %r11
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	addq	$16, %rcx
	cmpq	%rcx, %rsi
	je	LBB0_18
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, -8(%rdx,%rcx)
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rdx,%rcx), %r8d
	testb	$-128, %r8b
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r10, %r11
	jge	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$-128, %r8b
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdi, %r11
	cmpq	%r9, %r13
	jne	LBB0_6
LBB0_17:
	movq	%rdi, %r11
LBB0_18:
	movq	_WHOLE_DISK_SLICE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r13
	jne	LBB0_20
## %bb.19:
	movq	_dsk@GOTPCREL(%rip), %rax
	movq	%r11, 8(%rax)
	movq	%r13, %rax
LBB0_20:
	movq	%r11, %r13
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rax, %r13
	jne	LBB0_14
LBB0_21:
	movq	_dsk@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	jmp	LBB0_22
LBB0_13:
	movq	_WHOLE_DISK_SLICE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, %rbx
	cmpq	%rax, %r13
	je	LBB0_21
LBB0_14:
	addq	%rbx, %rsi
	movq	_COMPATIBILITY_SLICE@GOTPCREL(%rip), %rcx
	movq	%r13, %rdx
	subq	%r10, %rdx
	xorl	%eax, %eax
	cmpq	(%rcx), %r13
	cmovneq	%rdx, %rax
	shlq	$4, %rax
	movq	(%rsi,%rax), %rcx
	movq	_DOSPTYP_386BSD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.15:
	movl	12(%rsi,%rax), %esi
	movq	_dsk@GOTPCREL(%rip), %r13
	movl	%esi, (%r13)
LBB0_22:
	movq	_LABELSECTOR@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_drvread
	testl	%eax, %eax
	jne	LBB0_35
## %bb.23:
	movq	_LABELOFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	(%rbx,%rax), %rcx
	movq	_DISKMAGIC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_32
## %bb.24:
	cmpq	%rcx, 8(%rbx,%rax)
	jne	LBB0_32
## %bb.25:
	cmpl	$0, 24(%r13)
	jne	LBB0_29
## %bb.26:
	movq	16(%rbx,%rax), %rcx
	movq	_DTYPE_SCSI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_28
## %bb.27:
	movq	_TYPE_DA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r13)
LBB0_28:
	movl	$1, 24(%r13)
LBB0_29:
	movq	16(%r13), %rcx
	leaq	L_.str.2(%rip), %rsi
	cmpq	24(%rbx,%rax), %rcx
	jae	LBB0_34
## %bb.30:
	movq	32(%rbx,%rax), %rax
	cmpl	$0, 4(%rax,%rcx,8)
	je	LBB0_34
## %bb.31:
	movl	(%r13), %edx
	addl	(%rax,%rcx,8), %edx
	movq	_RAW_PART@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	(%rax,%rcx,8), %edx
	movl	%edx, (%r13)
	jmp	LBB0_1
LBB0_16:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_34
LBB0_32:
	movq	16(%r13), %rax
	movq	_RAW_PART@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.33:
	leaq	L_.str.1(%rip), %rsi
LBB0_34:
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
LBB0_35:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dsk_meta,4,2                   ## @dsk_meta
	.comm	_dmadat,8,3                     ## @dmadat
	.comm	_dsk,32,3                       ## @dsk
	.comm	_DOSBBSECTOR,4,2                ## @DOSBBSECTOR
	.comm	_DOSPARTOFF,4,2                 ## @DOSPARTOFF
	.comm	_BASE_SLICE,8,3                 ## @BASE_SLICE
	.comm	_NDOSPART,4,2                   ## @NDOSPART
	.comm	_DOSPTYP_386BSD,8,3             ## @DOSPTYP_386BSD
	.comm	_COMPATIBILITY_SLICE,8,3        ## @COMPATIBILITY_SLICE
	.comm	_WHOLE_DISK_SLICE,8,3           ## @WHOLE_DISK_SLICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slice"

	.comm	_LABELSECTOR,4,2                ## @LABELSECTOR
	.comm	_LABELOFFSET,4,2                ## @LABELOFFSET
	.comm	_DISKMAGIC,8,3                  ## @DISKMAGIC
	.comm	_RAW_PART,8,3                   ## @RAW_PART
L_.str.1:                               ## @.str.1
	.asciz	"label"

	.comm	_DTYPE_SCSI,8,3                 ## @DTYPE_SCSI
	.comm	_TYPE_DA,4,2                    ## @TYPE_DA
L_.str.2:                               ## @.str.2
	.asciz	"partition"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid %s\n"

	.no_dead_strip	_dskread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dskread
_dskread:                               ; @dskread
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _dsk_meta@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dsk_meta@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x23, _dsk@GOTPAGE
Lloh4:
	ldr	x23, [x23, _dsk@GOTPAGEOFF]
	cbz	w8, LBB0_2
LBB0_1:
	ldr	w8, [x23]
	add	w1, w8, w21
	mov	x0, x20
	mov	x2, 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
	b	_drvread
LBB0_2:
Lloh5:
	adrp	x8, _dmadat@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dmadat@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x22, [x8]
	str	wzr, [x23]
Lloh8:
	adrp	x8, _DOSBBSECTOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DOSBBSECTOR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #1
	bl	_drvread
	cbnz	w0, LBB0_34
; %bb.3:
Lloh11:
	adrp	x8, _DOSPARTOFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DOSPARTOFF@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	ldr	x9, [x23, #8]
Lloh14:
	adrp	x10, _BASE_SLICE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BASE_SLICE@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_17
; %bb.4:
Lloh17:
	adrp	x11, _NDOSPART@GOTPAGE
Lloh18:
	ldr	x11, [x11, _NDOSPART@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	mov	x12, x9
	cbz	w11, LBB0_12
; %bb.5:
	mov	x13, #0
Lloh20:
	adrp	x12, _DOSPTYP_386BSD@GOTPAGE
Lloh21:
	ldr	x12, [x12, _DOSPTYP_386BSD@GOTPAGEOFF]
Lloh22:
	ldr	x14, [x12]
Lloh23:
	adrp	x12, _COMPATIBILITY_SLICE@GOTPAGE
Lloh24:
	ldr	x12, [x12, _COMPATIBILITY_SLICE@GOTPAGEOFF]
Lloh25:
	ldr	x15, [x12]
	add	x12, x8, x22
	add	x16, x12, #8
	mov	x12, x9
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x13, x13, #1
	add	x16, x16, #16
	cmp	x11, x13
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x17, [x16, #-8]
	cmp	x17, x14
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w17, [x16]
	tbnz	w17, #7, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x12, x10
	b.ge	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x12, x10, x13
	tbnz	w17, #7, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x9, x15
	b.ne	LBB0_6
LBB0_12:
Lloh26:
	adrp	x11, _WHOLE_DISK_SLICE@GOTPAGE
Lloh27:
	ldr	x11, [x11, _WHOLE_DISK_SLICE@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_14
; %bb.13:
	str	x12, [x23, #8]
	mov	x11, x9
LBB0_14:
	mov	x9, x12
	cmp	x9, x11
	b.eq	LBB0_18
LBB0_15:
Lloh29:
	adrp	x11, _COMPATIBILITY_SLICE@GOTPAGE
Lloh30:
	ldr	x11, [x11, _COMPATIBILITY_SLICE@GOTPAGEOFF]
	add	x8, x22, x8
Lloh31:
	ldr	x11, [x11]
	sub	x10, x9, x10
	cmp	x9, x11
	csel	x9, xzr, x10, eq
	lsl	x10, x9, #4
	ldr	x10, [x8, x10]
Lloh32:
	adrp	x11, _DOSPTYP_386BSD@GOTPAGE
Lloh33:
	ldr	x11, [x11, _DOSPTYP_386BSD@GOTPAGEOFF]
Lloh34:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_29
; %bb.16:
	add	x8, x8, x9, lsl #4
	ldr	w8, [x8, #12]
	str	w8, [x23]
	b	LBB0_19
LBB0_17:
Lloh35:
	adrp	x11, _WHOLE_DISK_SLICE@GOTPAGE
Lloh36:
	ldr	x11, [x11, _WHOLE_DISK_SLICE@GOTPAGEOFF]
Lloh37:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_15
LBB0_18:
	ldr	w8, [x23]
LBB0_19:
Lloh38:
	adrp	x9, _LABELSECTOR@GOTPAGE
Lloh39:
	ldr	x9, [x9, _LABELSECTOR@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x0, x22
	mov	w2, #1
	bl	_drvread
	cbnz	w0, LBB0_34
; %bb.20:
Lloh41:
	adrp	x8, _LABELOFFSET@GOTPAGE
Lloh42:
	ldr	x8, [x8, _LABELOFFSET@GOTPAGEOFF]
Lloh43:
	ldrsw	x8, [x8]
	add	x8, x22, x8
	ldr	x9, [x8]
Lloh44:
	adrp	x10, _DISKMAGIC@GOTPAGE
Lloh45:
	ldr	x10, [x10, _DISKMAGIC@GOTPAGEOFF]
Lloh46:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_30
; %bb.21:
	ldr	x10, [x8, #8]
	cmp	x10, x9
	b.ne	LBB0_30
; %bb.22:
	ldr	w9, [x23, #24]
	cbnz	w9, LBB0_26
; %bb.23:
	ldr	x9, [x8, #16]
Lloh47:
	adrp	x10, _DTYPE_SCSI@GOTPAGE
Lloh48:
	ldr	x10, [x10, _DTYPE_SCSI@GOTPAGEOFF]
Lloh49:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_25
; %bb.24:
Lloh50:
	adrp	x9, _TYPE_DA@GOTPAGE
Lloh51:
	ldr	x9, [x9, _TYPE_DA@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	str	w9, [x23, #28]
LBB0_25:
	mov	w9, #1
	str	w9, [x23, #24]
LBB0_26:
	ldr	x9, [x23, #16]
	ldr	x10, [x8, #24]
	cmp	x9, x10
	b.hs	LBB0_32
; %bb.27:
	ldr	x8, [x8, #32]
	add	x10, x8, x9, lsl #3
	ldr	w10, [x10, #4]
	cbz	w10, LBB0_32
; %bb.28:
	lsl	x9, x9, #3
	ldr	w9, [x8, x9]
	ldr	w10, [x23]
Lloh53:
	adrp	x11, _RAW_PART@GOTPAGE
Lloh54:
	ldr	x11, [x11, _RAW_PART@GOTPAGEOFF]
Lloh55:
	ldr	x11, [x11]
	lsl	x11, x11, #3
	ldr	w8, [x8, x11]
	add	w9, w10, w9
	sub	w8, w9, w8
	str	w8, [x23]
	b	LBB0_1
LBB0_29:
Lloh56:
	adrp	x1, l_.str@PAGE
Lloh57:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_33
LBB0_30:
	ldr	x8, [x23, #16]
Lloh58:
	adrp	x9, _RAW_PART@GOTPAGE
Lloh59:
	ldr	x9, [x9, _RAW_PART@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.31:
Lloh61:
	adrp	x1, l_.str.1@PAGE
Lloh62:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_33
LBB0_32:
Lloh63:
	adrp	x1, l_.str.2@PAGE
Lloh64:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_33:
Lloh65:
	adrp	x0, l_.str.3@PAGE
Lloh66:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_34:
	mov	w0, #-1
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_dsk_meta,4,2                   ; @dsk_meta
	.comm	_dmadat,8,3                     ; @dmadat
	.comm	_dsk,32,3                       ; @dsk
	.comm	_DOSBBSECTOR,4,2                ; @DOSBBSECTOR
	.comm	_DOSPARTOFF,4,2                 ; @DOSPARTOFF
	.comm	_BASE_SLICE,8,3                 ; @BASE_SLICE
	.comm	_NDOSPART,4,2                   ; @NDOSPART
	.comm	_DOSPTYP_386BSD,8,3             ; @DOSPTYP_386BSD
	.comm	_COMPATIBILITY_SLICE,8,3        ; @COMPATIBILITY_SLICE
	.comm	_WHOLE_DISK_SLICE,8,3           ; @WHOLE_DISK_SLICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slice"

	.comm	_LABELSECTOR,4,2                ; @LABELSECTOR
	.comm	_LABELOFFSET,4,2                ; @LABELOFFSET
	.comm	_DISKMAGIC,8,3                  ; @DISKMAGIC
	.comm	_RAW_PART,8,3                   ; @RAW_PART
l_.str.1:                               ; @.str.1
	.asciz	"label"

	.comm	_DTYPE_SCSI,8,3                 ; @DTYPE_SCSI
	.comm	_TYPE_DA,4,2                    ; @TYPE_DA
l_.str.2:                               ; @.str.2
	.asciz	"partition"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid %s\n"

	.no_dead_strip	_dskread
.subsections_via_symbols
