	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generic_drive_reset
_generic_drive_reset:                   ## @generic_drive_reset
	.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	%rdi, %r14
	movl	(%rdi), %edi
	movq	_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___GFP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_blk_get_request
	movq	%rax, %rbx
	movq	_REQ_TYPE_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$1, (%rbx)
	movq	_REQ_DRIVE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	(%r14), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_blk_execute_rq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %r14d
LBB0_2:
	movq	%rbx, %rdi
	callq	_blk_put_request
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ,4,2                       ## @READ
	.comm	___GFP_WAIT,4,2                 ## @__GFP_WAIT
	.comm	_REQ_TYPE_SPECIAL,4,2           ## @REQ_TYPE_SPECIAL
	.comm	_REQ_DRIVE_RESET,4,2            ## @REQ_DRIVE_RESET
	.no_dead_strip	_generic_drive_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generic_drive_reset
_generic_drive_reset:                   ; @generic_drive_reset
	.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
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, ___GFP_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___GFP_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_blk_get_request
	mov	x19, x0
Lloh6:
	adrp	x8, _REQ_TYPE_SPECIAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQ_TYPE_SPECIAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	mov	w8, #1
	str	w8, [x0]
Lloh9:
	adrp	x8, _REQ_DRIVE_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REQ_DRIVE_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
	str	w8, [x9]
	ldr	w0, [x20]
	mov	x1, #0
	mov	x2, x19
	mov	w3, #1
	bl	_blk_execute_rq
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x19, #4]
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x19
	bl	_blk_put_request
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_READ,4,2                       ; @READ
	.comm	___GFP_WAIT,4,2                 ; @__GFP_WAIT
	.comm	_REQ_TYPE_SPECIAL,4,2           ; @REQ_TYPE_SPECIAL
	.comm	_REQ_DRIVE_RESET,4,2            ; @REQ_DRIVE_RESET
	.no_dead_strip	_generic_drive_reset
.subsections_via_symbols
