	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_block_transfer
_i2o_block_transfer:                    ## @i2o_block_transfer
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	16(%r15), %rax
	movl	8(%rax), %r12d
	movq	8(%rdi), %r14
	movq	_SGL_OFFSET_8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_osm_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_i2o_msg_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_i2o_cntxt_list_add
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %r14d
	movq	_i2o_block_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rbx
	movq	%r13, %rdi
	callq	_rq_data_dir
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_11
## %bb.7:
	movq	_I2O_CMD_BLOCK_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r15), %eax
	cmpl	$131, %eax
	je	LBB0_14
## %bb.8:
	cmpl	$133, %eax
	jne	LBB0_19
## %bb.9:
	movl	$538902536, %ebx                ## imm = 0x201F0008
	jmp	LBB0_20
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_11:
	movq	_I2O_CMD_BLOCK_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%r15), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_19
## %bb.12:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	xorl	%ebx, %ebx
	jmpq	*%rax
LBB0_13:
	movq	%r13, %rdi
	callq	_blk_rq_sectors
	cmpl	$17, %eax
	movl	$2031620, %eax                  ## imm = 0x1F0004
	movl	$2031632, %ebx                  ## imm = 0x1F0010
	jmp	LBB0_15
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_14:
	movq	%r13, %rdi
	callq	_blk_rq_sectors
	cmpl	$17, %eax
	movl	$538902536, %eax                ## imm = 0x201F0008
	movl	$2031616, %ebx                  ## imm = 0x1F0000
LBB0_15:
	cmovgel	%eax, %ebx
	jmp	LBB0_20
LBB0_17:
	movl	$2031624, %ebx                  ## imm = 0x1F0008
	jmp	LBB0_20
LBB0_18:
	movl	$2031632, %ebx                  ## imm = 0x1F0010
LBB0_20:
	shll	$24, %r14d
	orl	%r12d, %r14d
	movq	_HOST_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$12, %edi
	orl	%r14d, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	callq	_blk_rq_bytes
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%rbx)
	movq	%r13, %rdi
	callq	_blk_rq_pos
	movq	_KERNEL_SECTOR_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	shll	%cl, %eax
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%rbx)
	movq	%r13, %rdi
	callq	_blk_rq_pos
	xorl	%r14d, %r14d
	movb	(%r12), %dl
	xorl	%ecx, %ecx
	subb	%dl, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movl	%eax, %edi
	callq	_cpu_to_le32
	leaq	16(%rbx), %rcx
	movq	%rcx, -72(%rbp)
	movl	%eax, 12(%rbx)
	leaq	-72(%rbp), %rdx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_i2o_block_sglist_alloc
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	-72(%rbp), %rdi
	movq	%rbx, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	subq	8(%rbx), %rdi
	shrq	$2, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_I2O_MESSAGE_SIZE
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	orl	%eax, %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	leaq	12(%r15), %rsi
	movq	%r13, %rdi
	callq	_list_add_tail
	incl	8(%r15)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2o_msg_post
	jmp	LBB0_2
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_i2o_cntxt_list_remove
LBB0_23:
	negl	%r14d
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_i2o_msg_nop
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_13
	.long	L0_0_set_20
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_SGL_OFFSET_8,4,2               ## @SGL_OFFSET_8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transfer to removed drive\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_i2o_block_driver,4,2           ## @i2o_block_driver
	.comm	_READ,8,3                       ## @READ
	.comm	_I2O_CMD_BLOCK_READ,4,2         ## @I2O_CMD_BLOCK_READ
	.comm	_I2O_CMD_BLOCK_WRITE,4,2        ## @I2O_CMD_BLOCK_WRITE
	.comm	_HOST_TID,4,2                   ## @HOST_TID
	.comm	_KERNEL_SECTOR_SHIFT,4,2        ## @KERNEL_SECTOR_SHIFT
	.comm	_I2O_CMD_PRIVATE,4,2            ## @I2O_CMD_PRIVATE
	.comm	_I2O_CMD_SCSI_EXEC,4,2          ## @I2O_CMD_SCSI_EXEC
	.comm	_I2O_VENDOR_DPT,4,2             ## @I2O_VENDOR_DPT
	.comm	_READ_10,4,2                    ## @READ_10
	.comm	_SGL_OFFSET_12,4,2              ## @SGL_OFFSET_12
	.comm	_WRITE_10,4,2                   ## @WRITE_10
	.no_dead_strip	_i2o_block_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_block_transfer
_i2o_block_transfer:                    ; @i2o_block_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
	ldp	x21, x8, [x0, #8]
	ldr	x24, [x8]
	ldr	x8, [x24, #16]
	ldr	w27, [x8, #8]
Lloh0:
	adrp	x9, _SGL_OFFSET_8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SGL_OFFSET_8@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x9]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	ldr	x8, [x24, #16]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_i2o_msg_get
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	bl	_i2o_cntxt_list_add
	cbz	w0, LBB0_9
; %bb.6:
	mov	x23, x0
Lloh8:
	adrp	x8, _i2o_block_driver@GOTPAGE
Lloh9:
	ldr	x8, [x8, _i2o_block_driver@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #24]
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x20, #16]
	ldr	x26, [x20]
	mov	x0, x22
	bl	_rq_data_dir
Lloh11:
	adrp	x8, _READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
Lloh14:
	adrp	x8, _I2O_CMD_BLOCK_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I2O_CMD_BLOCK_READ@GOTPAGEOFF]
Lloh16:
	ldr	w28, [x8]
	ldr	w8, [x24]
	cmp	w8, #131
	b.eq	LBB0_13
; %bb.8:
	mov	w9, #8
	movk	w9, #8223, lsl #16
	cmp	w8, #133
	csel	w23, wzr, w9, ne
	b	LBB0_17
LBB0_9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	b	LBB0_20
LBB0_10:
	mov	w23, #0
Lloh20:
	adrp	x8, _I2O_CMD_BLOCK_WRITE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2O_CMD_BLOCK_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w28, [x8]
	ldr	w8, [x24, #4]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_17
; %bb.11:
Lloh23:
	adrp	x9, lJTI0_0@PAGE
Lloh24:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	mov	x0, x22
	bl	_blk_rq_sectors
	mov	w8, #16
	movk	w8, #31, lsl #16
	sub	w9, w8, #12
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	bl	_blk_rq_sectors
	mov	w8, #2031616
	mov	w9, #8
	movk	w9, #8223, lsl #16
LBB0_14:
	cmp	w0, #16
	csel	w23, w9, w8, gt
	b	LBB0_17
LBB0_15:
	mov	w8, #16
	movk	w8, #31, lsl #16
	sub	w23, w8, #8
	b	LBB0_17
LBB0_16:
	mov	w23, #16
	movk	w23, #31, lsl #16
LBB0_17:
Lloh25:
	adrp	x8, _HOST_TID@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HOST_TID@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w9, w27, w28, lsl #24
	orr	w0, w9, w8, lsl #12
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	str	w0, [x8, #4]
	mov	x0, x23
	bl	_cpu_to_le32
	str	w0, [x26]
	mov	x0, x22
	bl	_blk_rq_bytes
	bl	_cpu_to_le32
	str	w0, [x26, #4]
	mov	x0, x22
	bl	_blk_rq_pos
Lloh28:
	adrp	x23, _KERNEL_SECTOR_SHIFT@GOTPAGE
Lloh29:
	ldr	x23, [x23, _KERNEL_SECTOR_SHIFT@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w0, w0, w8
	bl	_cpu_to_le32
	str	w0, [x26, #8]
	mov	x0, x22
	bl	_blk_rq_pos
	ldr	w8, [x23]
	neg	w8, w8
	asr	w0, w0, w8
	bl	_cpu_to_le32
	add	x8, x26, #16
	str	x8, [sp, #8]
	str	w0, [x26, #12]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_i2o_block_sglist_alloc
	cbz	w0, LBB0_19
; %bb.18:
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	sub	x8, x8, x9
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_I2O_MESSAGE_SIZE
	orr	w0, w0, w25
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	str	w0, [x8]
	add	x1, x24, #12
	mov	x0, x21
	bl	_list_add_tail
	ldr	w8, [x24, #8]
	add	w8, w8, #1
	str	w8, [x24, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_i2o_msg_post
	mov	w21, #0
	b	LBB0_2
LBB0_19:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_i2o_cntxt_list_remove
LBB0_20:
	neg	w21, w21
	mov	x0, x19
	mov	x1, x20
	bl	_i2o_msg_nop
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_12)>>2
	.byte	(LBB0_16-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_17-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
                                        ; -- End function
	.comm	_SGL_OFFSET_8,4,2               ; @SGL_OFFSET_8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transfer to removed drive\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_i2o_block_driver,4,2           ; @i2o_block_driver
	.comm	_READ,8,3                       ; @READ
	.comm	_I2O_CMD_BLOCK_READ,4,2         ; @I2O_CMD_BLOCK_READ
	.comm	_I2O_CMD_BLOCK_WRITE,4,2        ; @I2O_CMD_BLOCK_WRITE
	.comm	_HOST_TID,4,2                   ; @HOST_TID
	.comm	_KERNEL_SECTOR_SHIFT,4,2        ; @KERNEL_SECTOR_SHIFT
	.comm	_I2O_CMD_PRIVATE,4,2            ; @I2O_CMD_PRIVATE
	.comm	_I2O_CMD_SCSI_EXEC,4,2          ; @I2O_CMD_SCSI_EXEC
	.comm	_I2O_VENDOR_DPT,4,2             ; @I2O_VENDOR_DPT
	.comm	_READ_10,4,2                    ; @READ_10
	.comm	_SGL_OFFSET_12,4,2              ; @SGL_OFFSET_12
	.comm	_WRITE_10,4,2                   ; @WRITE_10
	.no_dead_strip	_i2o_block_transfer
.subsections_via_symbols
