	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movq	_devinfo@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	addl	8(%rax), %ecx
	movl	%edx, %r15d
	movq	%rdi, %r8
	movq	(%rax), %rdi
	movq	8(%rdi), %rdx
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rdx), %eax
	movl	4(%rdx), %esi
	cltd
	idivl	%ebx
	movl	%eax, %r9d
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	movl	%eax, %r14d
	imull	%ebx, %r15d
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	*(%rdi)
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rcx
	movq	(%rcx), %rbx
	movq	8(%rbx), %rcx
	movl	4(%rcx), %r12d
	movq	%rax, %rdi
	callq	_EFI_ERROR_CODE
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_DPRINTF
	movl	$-1, %ecx
LBB0_2:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_devinfo,8,3                    ## @devinfo
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dskread: failed dev: %p, id: %u, lba: %ju, size: %d, status: %lu\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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x4, x0
Lloh0:
	adrp	x21, _devinfo@GOTPAGE
Lloh1:
	ldr	x21, [x21, _devinfo@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w9, [x8, #8]
	add	w9, w9, w1
	ldr	x0, [x8]
Lloh2:
	adrp	x8, _DEV_BSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEV_BSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	x11, x10, [x0]
	ldp	w12, w1, [x10]
	sdiv	w10, w12, w8
	sdiv	w20, w9, w10
	mul	w19, w8, w2
	mov	x2, x20
	mov	x3, x19
	blr	x11
Lloh5:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21]
	ldr	x21, [x8]
	ldr	x8, [x21, #8]
	ldr	w22, [x8, #4]
	bl	_EFI_ERROR_CODE
	mov	x5, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_DPRINTF
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_devinfo,8,3                    ; @devinfo
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dskread: failed dev: %p, id: %u, lba: %ju, size: %d, status: %lu\n"

	.no_dead_strip	_dskread
.subsections_via_symbols
