	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function umass_disk_strategy
_umass_disk_strategy:                   ## @umass_disk_strategy
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_umass_uaa@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%r9, %rbx
	movq	%rcx, %r14
	testq	%r9, %r9
	je	LBB0_3
## %bb.2:
	movq	$0, (%rbx)
LBB0_3:
	movq	_F_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_F_WRITE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rcx
	shrq	$9, %rcx
	xorl	%esi, %esi
	callq	_usb_msc_write_10
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_F_READ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_11
## %bb.8:
	movq	%r14, %rcx
	shrq	$9, %rcx
	xorl	%esi, %esi
	callq	_usb_msc_read_10
	testq	%rax, %rax
	jne	LBB0_5
LBB0_9:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.10:
	movq	%r14, (%rbx)
	jmp	LBB0_13
LBB0_11:
	movq	_EROFS@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_umass_uaa,8,3                  ## @umass_uaa
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_F_MASK,4,2                     ## @F_MASK
	.comm	_F_WRITE,4,2                    ## @F_WRITE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_F_READ,4,2                     ## @F_READ
	.comm	_EROFS,4,2                      ## @EROFS
	.no_dead_strip	_umass_disk_strategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function umass_disk_strategy
_umass_disk_strategy:                   ; @umass_disk_strategy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _umass_uaa@GOTPAGE
Lloh1:
	ldr	x8, [x8, _umass_uaa@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x5
	mov	x20, x3
	cbz	x5, LBB0_3
; %bb.2:
	str	xzr, [x19]
LBB0_3:
Lloh3:
	adrp	x8, _F_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh6:
	adrp	x9, _F_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _F_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.4:
	lsr	x3, x20, #9
	mov	w1, #0
	bl	_usb_msc_write_10
	cbz	x0, LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh13:
	adrp	x9, _F_READ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _F_READ@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.8:
	lsr	x3, x20, #9
	mov	w1, #0
	bl	_usb_msc_read_10
	cbnz	x0, LBB0_5
LBB0_9:
	mov	w0, #0
	cbz	x19, LBB0_13
; %bb.10:
	str	x20, [x19]
	b	LBB0_13
LBB0_11:
Lloh16:
	adrp	x8, _EROFS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_umass_uaa,8,3                  ; @umass_uaa
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_F_MASK,4,2                     ; @F_MASK
	.comm	_F_WRITE,4,2                    ; @F_WRITE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_F_READ,4,2                     ; @F_READ
	.comm	_EROFS,4,2                      ; @EROFS
	.no_dead_strip	_umass_disk_strategy
.subsections_via_symbols
