	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_do_rw_disk
_ide_do_rw_disk:                        ## @ide_do_rw_disk
	.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
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_IDE_DFLAG_BLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r15), %edi
	callq	_BUG_ON
	movq	(%r13), %rax
	movq	_REQ_TYPE_FS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUG_ON
	xorl	%eax, %eax
	callq	_ledtrig_ide_activity
	movl	4(%r15), %r12d
	movq	%r13, %rdi
	callq	_rq_data_dir
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	%r13, %rdi
	callq	_blk_rq_sectors
	movq	8(%r13), %r9
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	callq	_pr_debug
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	*%rax
LBB0_2:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___ide_do_rw_disk               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_DFLAG_BLOCKED,4,2          ## @IDE_DFLAG_BLOCKED
	.comm	_REQ_TYPE_FS,8,3                ## @REQ_TYPE_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %sing: block=%llu, sectors=%u, buffer=0x%08lx\n"

	.comm	_READ,8,3                       ## @READ
L_.str.1:                               ## @.str.1
	.asciz	"read"

L_.str.2:                               ## @.str.2
	.asciz	"writ"

	.no_dead_strip	_ide_do_rw_disk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_do_rw_disk
_ide_do_rw_disk:                        ; @ide_do_rw_disk
	.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	x20, x1
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IDE_DFLAG_BLOCKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDE_DFLAG_BLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_BUG_ON
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _REQ_TYPE_FS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REQ_TYPE_FS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	bl	_ledtrig_ide_activity
	ldr	w22, [x21, #4]
	mov	x0, x20
	bl	_rq_data_dir
Lloh6:
	adrp	x8, _READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, l_.str.2@PAGE
Lloh10:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh11:
	adrp	x10, l_.str.1@PAGE
Lloh12:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x0, x8
	csel	x23, x10, x9, eq
	mov	x0, x20
	bl	_blk_rq_sectors
	mov	x4, x0
	ldr	x5, [x20, #8]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	mov	x3, x19
	bl	_pr_debug
	ldr	x8, [x24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	blr	x8
LBB0_2:
	mov	x0, x21
	mov	x1, 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	___ide_do_rw_disk
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_DFLAG_BLOCKED,4,2          ; @IDE_DFLAG_BLOCKED
	.comm	_REQ_TYPE_FS,8,3                ; @REQ_TYPE_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %sing: block=%llu, sectors=%u, buffer=0x%08lx\n"

	.comm	_READ,8,3                       ; @READ
l_.str.1:                               ; @.str.1
	.asciz	"read"

l_.str.2:                               ; @.str.2
	.asciz	"writ"

	.no_dead_strip	_ide_do_rw_disk
.subsections_via_symbols
