	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function userdisk_realstrategy
_userdisk_realstrategy:                 ## @userdisk_realstrategy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_F_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_F_WRITE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_2
## %bb.1:
	movq	_EROFS@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_F_READ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_8
## %bb.3:
	movq	%r9, %rbx
	movq	%rcx, %r14
	testq	%r9, %r9
	je	LBB0_5
## %bb.4:
	movq	$0, (%rbx)
LBB0_5:
	movq	_ud_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rsi
	imull	(%rax,%rsi,4), %edx
	movq	_diskread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %r9
	movq	%r8, %rcx
	movq	%r14, %r8
	callq	_CALLBACK
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	subq	-24(%rbp), %r14
	movq	%r14, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_MASK,4,2                     ## @F_MASK
	.comm	_F_WRITE,4,2                    ## @F_WRITE
	.comm	_EROFS,4,2                      ## @EROFS
	.comm	_F_READ,4,2                     ## @F_READ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ud_info,8,3                    ## @ud_info
	.comm	_diskread,4,2                   ## @diskread
	.no_dead_strip	_userdisk_realstrategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function userdisk_realstrategy
_userdisk_realstrategy:                 ; @userdisk_realstrategy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _F_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh3:
	adrp	x9, _F_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _F_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EROFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
Lloh8:
	adrp	x9, _F_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _F_READ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.3:
	mov	x19, x5
	mov	x20, x3
	cbz	x5, LBB0_5
; %bb.4:
	str	xzr, [x19]
LBB0_5:
Lloh11:
	adrp	x8, _ud_info@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ud_info@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x1, [x0]
	ldr	w8, [x8, x1, lsl #2]
	mul	w2, w8, w2
Lloh14:
	adrp	x8, _diskread@GOTPAGE
Lloh15:
	ldr	x8, [x8, _diskread@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x5, sp, #8
	mov	x3, x4
	mov	x4, x20
	bl	_CALLBACK
	cbz	x19, LBB0_10
; %bb.6:
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	x8, [sp, #8]
	sub	x8, x20, x8
	str	x8, [x19]
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_F_MASK,4,2                     ; @F_MASK
	.comm	_F_WRITE,4,2                    ; @F_WRITE
	.comm	_EROFS,4,2                      ; @EROFS
	.comm	_F_READ,4,2                     ; @F_READ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ud_info,8,3                    ; @ud_info
	.comm	_diskread,4,2                   ; @diskread
	.no_dead_strip	_userdisk_realstrategy
.subsections_via_symbols
