	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_cdrom_prep_fs
_ide_cdrom_prep_fs:                     ## @ide_cdrom_prep_fs
	.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	%rsi, %rbx
	callq	_queue_logical_block_size
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_blk_rq_pos
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_blk_rq_sectors
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_scsi_req
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rq_data_dir
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_GPCMD_READ_10@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_GPCMD_WRITE_10@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	(%r14), %rsi
	movq	%rax, (%rsi)
	sarl	$9, %r13d
	movl	%r12d, %eax
	cltd
	idivl	%r13d
	movl	%eax, %ecx
	movslq	%r13d, %rdi
	movq	%r15, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rax
	cqto
	idivq	%rdi
	jmp	LBB0_6
LBB0_4:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movl	%eax, %edx
	shrl	$24, %edx
	movq	%rdx, 16(%rsi)
	movl	%eax, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movq	%rdx, 24(%rsi)
	movzbl	%ah, %edx
	movq	%rdx, 32(%rsi)
	movzbl	%al, %eax
	movq	%rax, 40(%rsi)
	movzbl	%ch, %eax
	movq	%rax, 56(%rsi)
	movzbl	%cl, %eax
	movq	%rax, 64(%rsi)
	movl	$10, 8(%r14)
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ,8,3                       ## @READ
	.comm	_GPCMD_READ_10,8,3              ## @GPCMD_READ_10
	.comm	_GPCMD_WRITE_10,8,3             ## @GPCMD_WRITE_10
	.no_dead_strip	_ide_cdrom_prep_fs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ide_cdrom_prep_fs
lCPI0_0:
	.quad	-24                             ; 0xffffffffffffffe8
	.quad	-16                             ; 0xfffffffffffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ide_cdrom_prep_fs:                     ; @ide_cdrom_prep_fs
	.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	x23, x1
	bl	_queue_logical_block_size
	mov	x20, x0
	mov	x0, x23
	bl	_blk_rq_pos
	mov	x22, x0
	mov	x0, x23
	bl	_blk_rq_sectors
	mov	x21, x0
	mov	x0, x23
	bl	_scsi_req
	mov	x19, x0
	mov	x0, x23
	bl	_rq_data_dir
Lloh0:
	adrp	x8, _READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _GPCMD_READ_10@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPCMD_READ_10@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _GPCMD_WRITE_10@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPCMD_WRITE_10@GOTPAGEOFF]
LBB0_3:
	ldr	x9, [x8]
	ldr	x8, [x19]
	str	x9, [x8]
	asr	w9, w20, #9
	sbfx	x10, x20, #9, #23
	sdiv	x10, x22, x10
	dup.2d	v0, x10
Lloh7:
	adrp	x11, lCPI0_0@PAGE
Lloh8:
	ldr	q1, [x11, lCPI0_0@PAGEOFF]
	ushl.2d	v0, v0, v1
	movi.2d	v1, #0x000000000000ff
	and.16b	v0, v0, v1
	str	q0, [x8, #16]
	sdiv	w9, w21, w9
	ubfx	x11, x10, #8, #8
	and	x10, x10, #0xff
	stp	x11, x10, [x8, #32]
	ubfx	x10, x9, #8, #8
	and	x9, x9, #0xff
	stp	x10, x9, [x8, #56]
	mov	w8, #10
	str	w8, [x19, #8]
	mov	w0, #1
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_READ,8,3                       ; @READ
	.comm	_GPCMD_READ_10,8,3              ; @GPCMD_READ_10
	.comm	_GPCMD_WRITE_10,8,3             ; @GPCMD_WRITE_10
	.no_dead_strip	_ide_cdrom_prep_fs
.subsections_via_symbols
