	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vhbasimple_act
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vhbasimple_act:                        ## @vhbasimple_act
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -180(%rbp)
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_memset
	movq	32(%rbx), %rax
	leaq	32(%rbx), %r14
	movq	_MAX_TGT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.1:
	movq	56(%rbx), %r12
	movq	_MAX_LUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r12), %eax
	cmpq	%rsi, 40(%rbx)
	jl	LBB0_7
## %bb.2:
	movq	_INQUIRY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.3:
	movq	_REPORT_LUNS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.4:
	movq	_REQUEST_SENSE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.5:
	movq	_SSD_KEY_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$37, %edx
	jmp	LBB0_32
LBB0_6:
	movq	_CAM_SEL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	jmp	LBB0_33
LBB0_7:
	addl	$-128, %eax
	cmpl	$15, %eax
	ja	LBB0_35
## %bb.8:
	movl	$15375, %ecx                    ## imm = 0x3C0F
	btl	%eax, %ecx
	jae	LBB0_12
## %bb.9:
	movq	_DISK_NBLKS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DISK_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-176(%rbp), %rsi
	leaq	-180(%rbp), %rdx
	movq	%r12, %rdi
	callq	_vhba_rwparm
	testl	%eax, %eax
	je	LBB0_21
## %bb.10:
	movq	_SSD_KEY_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$36, %edx
	xorl	%ecx, %ecx
	callq	_vhba_fill_sense
	jmp	LBB0_58
LBB0_12:
	movl	$49152, %ecx                    ## imm = 0xC000
	btl	%eax, %ecx
	jae	LBB0_24
## %bb.13:
	movl	8(%r12), %ecx
	movq	_SMS_PAGE_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%ecx, %r13d
	leal	-132(%r13), %eax
	cmpl	$5, %eax
	jae	LBB0_31
## %bb.14:
	movq	_SMS_PAGE_CTRL_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movl	%ecx, -184(%rbp)                ## 4-byte Spill
	leaq	-176(%rbp), %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movq	_SMS_DBD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %eax
	testl	%ecx, 4(%r12)
	jne	LBB0_16
## %bb.15:
	movl	$8, -164(%rbp)
	movq	_DISK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
	shrl	$24, %eax
	movl	%eax, -160(%rbp)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, -156(%rbp)
	movl	%edx, -152(%rbp)
	movl	%esi, -148(%rbp)
	movq	_DISK_NBLKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
	shrl	$24, %eax
	movl	%eax, -144(%rbp)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, -140(%rbp)
	movl	%edx, -136(%rbp)
	movl	%esi, -132(%rbp)
	movl	$48, %eax
LBB0_16:
	leaq	(%rax,%rbp), %rsi
	addq	$-176, %rsi
	cmpl	$136, %r13d
	je	LBB0_18
## %bb.17:
	cmpl	$133, %r13d
	jne	LBB0_38
LBB0_18:
	movabsq	$103079215237, %rax             ## imm = 0x1800000085
	movq	%rax, (%rsi)
	movq	_SMS_PAGE_CTRL_CHANGEABLE@GOTPCREL(%rip), %rax
	movl	-184(%rbp), %r8d                ## 4-byte Reload
	cmpl	(%rax), %r8d
	je	LBB0_20
## %bb.19:
	movq	_PSEUDO_SPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$8, %edx
	movq	_DISK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edi
	shll	%cl, %edi
	movl	%edi, %ecx
	shrl	$8, %ecx
	movd	%edx, %xmm0
	pinsrd	$1, %eax, %xmm0
	pinsrd	$2, %ecx, %xmm0
	pinsrd	$3, %edi, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 40(%rsi)
LBB0_20:
	addq	$104, %rsi
	jmp	LBB0_39
LBB0_21:
	movl	-180(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_30
## %bb.22:
	movl	(%r12), %eax
	andl	$15, %eax
	cmpl	$8, %eax
	jne	LBB0_36
## %bb.23:
	movq	8(%rbx), %rdi
	movq	(%r15), %rsi
	addq	-176(%rbp), %rsi
	jmp	LBB0_37
LBB0_24:
	cmpl	$9, %eax
	jne	LBB0_35
## %bb.25:
	cmpl	$0, 8(%r12)
	jne	LBB0_29
## %bb.26:
	cmpl	$0, 12(%r12)
	jne	LBB0_29
## %bb.27:
	cmpl	$0, 16(%r12)
	jne	LBB0_29
## %bb.28:
	cmpl	$0, 20(%r12)
	je	LBB0_65
LBB0_29:
	movq	_SSD_KEY_UNIT_ATTENTION@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_30:
	movl	4(%rbx), %eax
	jmp	LBB0_57
LBB0_31:
	movq	_SSD_KEY_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$36, %edx
LBB0_32:
	xorl	%ecx, %ecx
	callq	_vhba_fill_sense
LBB0_33:
	movq	8(%r15), %rdi
	movq	_sim_links@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_70
## %bb.34:
	movq	%r14, %rsi
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TAILQ_INSERT_TAIL              ## TAILCALL
LBB0_35:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_vhba_default_cmd
	jmp	LBB0_58
LBB0_36:
	movq	(%r15), %rdi
	addq	-176(%rbp), %rdi
	movq	8(%rbx), %rsi
LBB0_37:
	callq	_memcpy
	movl	4(%rbx), %eax
	subl	-180(%rbp), %eax
	jmp	LBB0_57
LBB0_38:
	movl	-184(%rbp), %r8d                ## 4-byte Reload
LBB0_39:
	cmpl	$136, %r13d
	je	LBB0_41
## %bb.40:
	cmpl	$132, %r13d
	jne	LBB0_44
LBB0_41:
	movabsq	$103079215236, %rax             ## imm = 0x1800000084
	movq	%rax, (%rsi)
	movq	_SMS_PAGE_CTRL_CHANGEABLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	je	LBB0_43
## %bb.42:
	movq	_DISK_NBLKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PSEUDO_SPC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	movzbl	%al, %edx
	shrl	$24, %eax
	movl	%eax, 8(%rsi)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, 12(%rsi)
	movl	%edx, 16(%rsi)
	movq	_PSEUDO_HDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rsi)
	movabsq	$137438953500, %rax             ## imm = 0x200000001C
	movq	%rax, 80(%rsi)
LBB0_43:
	addq	$104, %rsi
LBB0_44:
	leal	-135(%r13), %eax
	cmpl	$1, %eax
	ja	LBB0_46
## %bb.45:
	movabsq	$77309411463, %rax              ## imm = 0x1200000087
	movq	%rax, (%rsi)
	movl	$4, 8(%rsi)
	addq	$80, %rsi
LBB0_46:
	cmpl	$136, %r13d
	je	LBB0_48
## %bb.47:
	cmpl	$134, %r13d
	jne	LBB0_51
LBB0_48:
	movabsq	$42949673094, %rax              ## imm = 0xA00000086
	movq	%rax, (%rsi)
	movq	_SMS_PAGE_CTRL_CHANGEABLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	je	LBB0_50
## %bb.49:
	movl	$16, 12(%rsi)
	movabsq	$206158430325, %rax             ## imm = 0x3000000075
	movq	%rax, 32(%rsi)
LBB0_50:
	addq	$48, %rsi
LBB0_51:
	leaq	-176(%rbp), %rax
	movl	%esi, %r13d
	subl	%eax, %r13d
	leal	-4(%r13), %eax
	movl	%eax, (%rsi)
	cmpl	$143, (%r12)
	jne	LBB0_53
## %bb.52:
	movl	16(%r12), %edi
	jmp	LBB0_54
LBB0_53:
	movl	28(%r12), %edi
	shll	$8, %edi
	orl	32(%r12), %edi
LBB0_54:
	movl	4(%rbx), %esi
	callq	_min
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_min
	movl	%eax, %r12d
	movl	%eax, -180(%rbp)
	testl	%eax, %eax
	je	LBB0_56
## %bb.55:
	movq	8(%rbx), %rdi
	leaq	-176(%rbp), %rsi
	movl	%r12d, %edx
	callq	_memcpy
LBB0_56:
	movl	4(%rbx), %eax
	subl	%r12d, %eax
LBB0_57:
	movl	%eax, 16(%rbx)
LBB0_58:
	movq	_CAM_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	48(%rbx), %eax
	movq	24(%rbx), %rcx
	movq	_SCSI_STATUS_OK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_60
## %bb.59:
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rcx
	jmp	LBB0_62
LBB0_60:
	movq	_CAM_SCSI_STATUS_ERROR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 48(%rbx)
	movq	_SCSI_STATUS_CHECK_COND@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_63
## %bb.61:
	movq	_CAM_AUTOSNS_VALID@GOTPCREL(%rip), %rcx
LBB0_62:
	orl	(%rcx), %eax
	movl	%eax, 48(%rbx)
LBB0_63:
	movq	8(%r15), %rdi
	movq	_sim_links@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_70
## %bb.64:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_65:
	testb	$1, 32(%r12)
	jne	LBB0_68
## %bb.66:
	movq	_DISK_NBLKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_68
## %bb.67:
	decl	%eax
	movl	%eax, %ecx
	shrl	$24, %ecx
	movq	8(%rbx), %rdx
	movb	%cl, (%rdx)
	movl	%eax, %ecx
	shrl	$16, %ecx
	movq	8(%rbx), %rdx
	movb	%cl, 1(%rdx)
	movq	8(%rbx), %rcx
	movb	%ah, 2(%rcx)
	jmp	LBB0_69
LBB0_68:
	movq	8(%rbx), %rax
	movb	$-1, (%rax)
	movq	8(%rbx), %rax
	movb	$-1, 1(%rax)
	movq	8(%rbx), %rax
	movb	$-1, 2(%rax)
	movb	$-1, %al
LBB0_69:
	movq	8(%rbx), %rcx
	movb	%al, 3(%rcx)
	movq	_DISK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, %ecx
	shrl	$24, %ecx
	movq	8(%rbx), %rdx
	movb	%cl, 4(%rdx)
	movl	%eax, %ecx
	shrl	$16, %ecx
	movq	8(%rbx), %rdx
	movb	%cl, 5(%rdx)
	movq	8(%rbx), %rcx
	movb	%ah, 6(%rcx)
	movq	8(%rbx), %rcx
	movb	%al, 7(%rcx)
	jmp	LBB0_58
LBB0_70:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCSI_STATUS_OK,8,3             ## @SCSI_STATUS_OK
	.comm	_MAX_TGT,8,3                    ## @MAX_TGT
	.comm	_CAM_SEL_TIMEOUT,4,2            ## @CAM_SEL_TIMEOUT
	.comm	_sim_links,4,2                  ## @sim_links
	.comm	_MAX_LUN,8,3                    ## @MAX_LUN
	.comm	_INQUIRY,4,2                    ## @INQUIRY
	.comm	_REPORT_LUNS,4,2                ## @REPORT_LUNS
	.comm	_REQUEST_SENSE,4,2              ## @REQUEST_SENSE
	.comm	_SSD_KEY_ILLEGAL_REQUEST,4,2    ## @SSD_KEY_ILLEGAL_REQUEST
	.comm	_SMS_PAGE_CODE,4,2              ## @SMS_PAGE_CODE
	.comm	_SMS_PAGE_CTRL_MASK,4,2         ## @SMS_PAGE_CTRL_MASK
	.comm	_SMS_DBD,4,2                    ## @SMS_DBD
	.comm	_DISK_SHIFT,4,2                 ## @DISK_SHIFT
	.comm	_DISK_NBLKS,4,2                 ## @DISK_NBLKS
	.comm	_SMS_PAGE_CTRL_CHANGEABLE,4,2   ## @SMS_PAGE_CTRL_CHANGEABLE
	.comm	_PSEUDO_SPT,4,2                 ## @PSEUDO_SPT
	.comm	_PSEUDO_SPC,4,2                 ## @PSEUDO_SPC
	.comm	_PSEUDO_HDS,4,2                 ## @PSEUDO_HDS
	.comm	_SSD_KEY_UNIT_ATTENTION,4,2     ## @SSD_KEY_UNIT_ATTENTION
	.comm	_CAM_STATUS_MASK,4,2            ## @CAM_STATUS_MASK
	.comm	_CAM_SCSI_STATUS_ERROR,4,2      ## @CAM_SCSI_STATUS_ERROR
	.comm	_SCSI_STATUS_CHECK_COND,8,3     ## @SCSI_STATUS_CHECK_COND
	.comm	_CAM_AUTOSNS_VALID,4,2          ## @CAM_AUTOSNS_VALID
	.comm	_CAM_REQ_CMP,4,2                ## @CAM_REQ_CMP
	.no_dead_strip	_vhbasimple_act
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vhbasimple_act
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
lCPI0_1:
	.long	133                             ; 0x85
	.long	24                              ; 0x18
lCPI0_2:
	.long	132                             ; 0x84
	.long	24                              ; 0x18
lCPI0_3:
	.long	28                              ; 0x1c
	.long	32                              ; 0x20
lCPI0_4:
	.long	135                             ; 0x87
	.long	18                              ; 0x12
lCPI0_5:
	.long	134                             ; 0x86
	.long	10                              ; 0xa
lCPI0_6:
	.long	117                             ; 0x75
	.long	48                              ; 0x30
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vhbasimple_act:                        ; @vhbasimple_act
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	str	wzr, [sp, #4]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #1
	bl	_memset
	mov	x19, x21
	ldr	x8, [x19, #32]!
Lloh3:
	adrp	x9, _MAX_TGT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_TGT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.1:
	ldr	x22, [x19, #24]
	ldr	x9, [x21, #40]
Lloh6:
	adrp	x8, _MAX_LUN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_LUN@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	ldr	w8, [x22]
	cmp	x9, x1
	b.lt	LBB0_3
; %bb.2:
Lloh9:
	adrp	x9, _INQUIRY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INQUIRY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _REPORT_LUNS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _REPORT_LUNS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _REQUEST_SENSE@GOTPAGE
Lloh16:
	ldr	x11, [x11, _REQUEST_SENSE@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_9
LBB0_3:
	sub	w8, w8, #128
	cmp	w8, #15
	b.hi	LBB0_28
; %bb.4:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #15375
	tst	w9, w10
	b.eq	LBB0_10
; %bb.5:
Lloh18:
	adrp	x8, _DISK_NBLKS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DISK_NBLKS@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _DISK_SHIFT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DISK_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x22
	bl	_vhba_rwparm
	cbz	w0, LBB0_14
; %bb.6:
Lloh24:
	adrp	x8, _SSD_KEY_ILLEGAL_REQUEST@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSD_KEY_ILLEGAL_REQUEST@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #36
	mov	w3, #0
	bl	_vhba_fill_sense
	b	LBB0_56
LBB0_8:
Lloh26:
	adrp	x8, _CAM_SEL_TIMEOUT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CAM_SEL_TIMEOUT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x21, #48]
	b	LBB0_26
LBB0_9:
Lloh29:
	adrp	x8, _SSD_KEY_ILLEGAL_REQUEST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SSD_KEY_ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #37
	b	LBB0_25
LBB0_10:
	tst	w9, #0xc000
	b.eq	LBB0_17
; %bb.11:
	ldr	w24, [x22, #8]
Lloh32:
	adrp	x8, _SMS_PAGE_CODE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SMS_PAGE_CODE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	and	w23, w8, w24
	sub	w8, w23, #132
	cmp	w8, #5
	b.hs	LBB0_24
; %bb.12:
Lloh35:
	adrp	x8, _SMS_PAGE_CTRL_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SMS_PAGE_CTRL_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w25, [x8]
	add	x26, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	ldr	w8, [x22, #4]
Lloh38:
	adrp	x9, _SMS_DBD@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SMS_DBD@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.13:
	mov	w8, #4
	b	LBB0_32
LBB0_14:
	ldr	w2, [sp, #4]
	cbz	w2, LBB0_23
; %bb.15:
	ldr	w8, [x22]
	and	w8, w8, #0xf
	cmp	w8, #8
	b.ne	LBB0_29
; %bb.16:
	ldr	x0, [x21, #8]
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	add	x1, x8, x9
	b	LBB0_30
LBB0_17:
	cmp	w8, #9
	b.ne	LBB0_28
; %bb.18:
	ldr	w8, [x22, #8]
	cbnz	w8, LBB0_22
; %bb.19:
	ldr	w8, [x22, #12]
	cbnz	w8, LBB0_22
; %bb.20:
	ldr	w8, [x22, #16]
	cbnz	w8, LBB0_22
; %bb.21:
	ldr	w8, [x22, #20]
	cbz	w8, LBB0_63
LBB0_22:
Lloh41:
	adrp	x8, _SSD_KEY_UNIT_ATTENTION@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SSD_KEY_UNIT_ATTENTION@GOTPAGEOFF]
	b	LBB0_7
LBB0_23:
	ldr	w8, [x21, #4]
	b	LBB0_55
LBB0_24:
Lloh43:
	adrp	x8, _SSD_KEY_ILLEGAL_REQUEST@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SSD_KEY_ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #36
LBB0_25:
	mov	w3, #0
	bl	_vhba_fill_sense
LBB0_26:
	ldr	x0, [x20, #8]
Lloh46:
	adrp	x8, _sim_links@GOTPAGE
Lloh47:
	ldr	x8, [x8, _sim_links@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	ldur	x8, [x29, #-72]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_68
; %bb.27:
	mov	x1, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	b	_TAILQ_INSERT_TAIL
LBB0_28:
	mov	x0, x21
	mov	x2, #0
	bl	_vhba_default_cmd
	b	LBB0_56
LBB0_29:
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	add	x0, x8, x9
	ldr	x1, [x21, #8]
LBB0_30:
	bl	_memcpy
	ldr	w8, [x21, #4]
	ldr	w9, [sp, #4]
	sub	w8, w8, w9
	b	LBB0_55
LBB0_31:
Lloh52:
	adrp	x8, _DISK_SHIFT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DISK_SHIFT@GOTPAGEOFF]
	mov	w9, #8
Lloh54:
	ldr	w8, [x8]
	mov	w10, #1
	lsl	w8, w10, w8
	lsr	w10, w8, #24
	stp	w9, w10, [sp, #20]
	dup.2s	v0, w8
Lloh55:
	adrp	x9, lCPI0_0@PAGE
Lloh56:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d2, #0x0000ff000000ff
	and.8b	v0, v0, v2
	stur	d0, [sp, #28]
	and	w8, w8, #0xff
Lloh57:
	adrp	x9, _DISK_NBLKS@GOTPAGE
Lloh58:
	ldr	x9, [x9, _DISK_NBLKS@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	lsr	w10, w9, #24
	stp	w8, w10, [sp, #36]
	dup.2s	v0, w9
	ushl.2s	v0, v0, v1
	and.8b	v0, v0, v2
	stur	d0, [sp, #44]
	and	w8, w9, #0xff
	str	w8, [sp, #52]
	mov	w8, #48
LBB0_32:
	and	w9, w25, w24
	add	x8, x26, x8
Lloh60:
	adrp	x10, _SMS_PAGE_CTRL_CHANGEABLE@GOTPAGE
Lloh61:
	ldr	x10, [x10, _SMS_PAGE_CTRL_CHANGEABLE@GOTPAGEOFF]
	cmp	w23, #136
	b.eq	LBB0_34
; %bb.33:
	cmp	w23, #133
	b.ne	LBB0_37
LBB0_34:
Lloh62:
	adrp	x11, lCPI0_1@PAGE
Lloh63:
	ldr	d0, [x11, lCPI0_1@PAGEOFF]
	str	d0, [x8]
	ldr	w11, [x10]
	cmp	w9, w11
	b.eq	LBB0_36
; %bb.35:
Lloh64:
	adrp	x11, _PSEUDO_SPT@GOTPAGE
Lloh65:
	ldr	x11, [x11, _PSEUDO_SPT@GOTPAGEOFF]
Lloh66:
	ldr	w11, [x11]
	ubfx	w12, w11, #8, #8
	and	w11, w11, #0xff
	stp	w12, w11, [x8, #40]
Lloh67:
	adrp	x11, _DISK_SHIFT@GOTPAGE
Lloh68:
	ldr	x11, [x11, _DISK_SHIFT@GOTPAGEOFF]
Lloh69:
	ldr	w11, [x11]
	mov	w12, #1
	lsl	w11, w12, w11
	ubfx	w12, w11, #8, #8
	and	w11, w11, #0xff
	stp	w12, w11, [x8, #48]
LBB0_36:
	add	x8, x8, #104
LBB0_37:
	cmp	w23, #136
	b.eq	LBB0_39
; %bb.38:
	cmp	w23, #132
	b.ne	LBB0_42
LBB0_39:
Lloh70:
	adrp	x11, lCPI0_2@PAGE
Lloh71:
	ldr	d0, [x11, lCPI0_2@PAGEOFF]
	str	d0, [x8]
	ldr	w11, [x10]
	cmp	w9, w11
	b.eq	LBB0_41
; %bb.40:
Lloh72:
	adrp	x11, _DISK_NBLKS@GOTPAGE
Lloh73:
	ldr	x11, [x11, _DISK_NBLKS@GOTPAGEOFF]
Lloh74:
	adrp	x12, _PSEUDO_SPC@GOTPAGE
Lloh75:
	ldr	x12, [x12, _PSEUDO_SPC@GOTPAGEOFF]
Lloh76:
	ldr	w11, [x11]
Lloh77:
	ldr	w12, [x12]
	add	w11, w11, w12
	sub	w11, w11, #1
	sdiv	w11, w11, w12
	lsr	w12, w11, #24
	ubfx	w13, w11, #16, #8
	stp	w12, w13, [x8, #8]
	and	w11, w11, #0xff
Lloh78:
	adrp	x12, _PSEUDO_HDS@GOTPAGE
Lloh79:
	ldr	x12, [x12, _PSEUDO_HDS@GOTPAGEOFF]
Lloh80:
	ldr	w12, [x12]
	stp	w11, w12, [x8, #16]
Lloh81:
	adrp	x11, lCPI0_3@PAGE
Lloh82:
	ldr	d0, [x11, lCPI0_3@PAGEOFF]
	str	d0, [x8, #80]
LBB0_41:
	add	x8, x8, #104
LBB0_42:
	sub	w11, w23, #135
	cmp	w11, #1
	b.hi	LBB0_44
; %bb.43:
Lloh83:
	adrp	x11, lCPI0_4@PAGE
Lloh84:
	ldr	d0, [x11, lCPI0_4@PAGEOFF]
	str	d0, [x8]
	mov	w11, #4
	str	w11, [x8, #8]
	add	x8, x8, #80
LBB0_44:
	cmp	w23, #136
	b.eq	LBB0_46
; %bb.45:
	cmp	w23, #134
	b.ne	LBB0_49
LBB0_46:
Lloh85:
	adrp	x11, lCPI0_5@PAGE
Lloh86:
	ldr	d0, [x11, lCPI0_5@PAGEOFF]
	str	d0, [x8]
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_48
; %bb.47:
	mov	w9, #16
	str	w9, [x8, #12]
Lloh87:
	adrp	x9, lCPI0_6@PAGE
Lloh88:
	ldr	d0, [x9, lCPI0_6@PAGEOFF]
	str	d0, [x8, #32]
LBB0_48:
	add	x8, x8, #48
LBB0_49:
	add	x9, sp, #8
	sub	w23, w8, w9
	sub	w9, w23, #4
	str	w9, [x8]
	ldr	w8, [x22]
	cmp	w8, #143
	b.ne	LBB0_51
; %bb.50:
	ldr	w0, [x22, #16]
	b	LBB0_52
LBB0_51:
	ldp	w8, w9, [x22, #28]
	orr	w0, w9, w8, lsl #8
LBB0_52:
	ldr	w1, [x21, #4]
	bl	_min
	mov	x1, x23
	bl	_min
	mov	x22, x0
	str	w0, [sp, #4]
	cbz	w0, LBB0_54
; %bb.53:
	ldr	x0, [x21, #8]
	add	x1, sp, #8
	mov	x2, x22
	bl	_memcpy
LBB0_54:
	ldr	w8, [x21, #4]
	sub	w8, w8, w22
LBB0_55:
	str	w8, [x21, #16]
LBB0_56:
Lloh89:
	adrp	x8, _CAM_STATUS_MASK@GOTPAGE
Lloh90:
	ldr	x8, [x8, _CAM_STATUS_MASK@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	ldr	w9, [x21, #48]
	bic	w8, w9, w8
	ldr	x9, [x21, #24]
Lloh92:
	adrp	x10, _SCSI_STATUS_OK@GOTPAGE
Lloh93:
	ldr	x10, [x10, _SCSI_STATUS_OK@GOTPAGEOFF]
Lloh94:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_58
; %bb.57:
Lloh95:
	adrp	x9, _CAM_REQ_CMP@GOTPAGE
Lloh96:
	ldr	x9, [x9, _CAM_REQ_CMP@GOTPAGEOFF]
	b	LBB0_60
LBB0_58:
Lloh97:
	adrp	x10, _CAM_SCSI_STATUS_ERROR@GOTPAGE
Lloh98:
	ldr	x10, [x10, _CAM_SCSI_STATUS_ERROR@GOTPAGEOFF]
Lloh99:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x21, #48]
Lloh100:
	adrp	x10, _SCSI_STATUS_CHECK_COND@GOTPAGE
Lloh101:
	ldr	x10, [x10, _SCSI_STATUS_CHECK_COND@GOTPAGEOFF]
Lloh102:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_61
; %bb.59:
Lloh103:
	adrp	x9, _CAM_AUTOSNS_VALID@GOTPAGE
Lloh104:
	ldr	x9, [x9, _CAM_AUTOSNS_VALID@GOTPAGEOFF]
LBB0_60:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #48]
LBB0_61:
	ldr	x0, [x20, #8]
Lloh105:
	adrp	x8, _sim_links@GOTPAGE
Lloh106:
	ldr	x8, [x8, _sim_links@GOTPAGEOFF]
Lloh107:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	ldur	x8, [x29, #-72]
Lloh108:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh109:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh110:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_68
; %bb.62:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_63:
	ldrb	w8, [x22, #32]
	tbnz	w8, #0, LBB0_66
; %bb.64:
Lloh111:
	adrp	x8, _DISK_NBLKS@GOTPAGE
Lloh112:
	ldr	x8, [x8, _DISK_NBLKS@GOTPAGEOFF]
Lloh113:
	ldr	w8, [x8]
	subs	w8, w8, #1
	b.lt	LBB0_66
; %bb.65:
	lsr	w9, w8, #24
	ldr	x10, [x21, #8]
	strb	w9, [x10]
	lsr	w9, w8, #16
	ldr	x10, [x21, #8]
	strb	w9, [x10, #1]
	lsr	w9, w8, #8
	ldr	x10, [x21, #8]
	strb	w9, [x10, #2]
	b	LBB0_67
LBB0_66:
	ldr	x9, [x21, #8]
	mov	w8, #255
	strb	w8, [x9]
	ldr	x9, [x21, #8]
	strb	w8, [x9, #1]
	ldr	x9, [x21, #8]
	strb	w8, [x9, #2]
LBB0_67:
	ldr	x9, [x21, #8]
	strb	w8, [x9, #3]
Lloh114:
	adrp	x8, _DISK_SHIFT@GOTPAGE
Lloh115:
	ldr	x8, [x8, _DISK_SHIFT@GOTPAGEOFF]
Lloh116:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	lsr	w9, w8, #24
	ldr	x10, [x21, #8]
	strb	w9, [x10, #4]
	lsr	w9, w8, #16
	ldr	x10, [x21, #8]
	strb	w9, [x10, #5]
	lsr	w9, w8, #8
	ldr	x10, [x21, #8]
	strb	w9, [x10, #6]
	ldr	x9, [x21, #8]
	strb	w8, [x9, #7]
	b	LBB0_56
LBB0_68:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdrp	Lloh55, Lloh57
	.loh AdrpLdr	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdr	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdr	Lloh70, Lloh71
	.loh AdrpLdr	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh76
	.loh AdrpLdr	Lloh83, Lloh84
	.loh AdrpLdr	Lloh85, Lloh86
	.loh AdrpLdr	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.cfi_endproc
                                        ; -- End function
	.comm	_SCSI_STATUS_OK,8,3             ; @SCSI_STATUS_OK
	.comm	_MAX_TGT,8,3                    ; @MAX_TGT
	.comm	_CAM_SEL_TIMEOUT,4,2            ; @CAM_SEL_TIMEOUT
	.comm	_sim_links,4,2                  ; @sim_links
	.comm	_MAX_LUN,8,3                    ; @MAX_LUN
	.comm	_INQUIRY,4,2                    ; @INQUIRY
	.comm	_REPORT_LUNS,4,2                ; @REPORT_LUNS
	.comm	_REQUEST_SENSE,4,2              ; @REQUEST_SENSE
	.comm	_SSD_KEY_ILLEGAL_REQUEST,4,2    ; @SSD_KEY_ILLEGAL_REQUEST
	.comm	_SMS_PAGE_CODE,4,2              ; @SMS_PAGE_CODE
	.comm	_SMS_PAGE_CTRL_MASK,4,2         ; @SMS_PAGE_CTRL_MASK
	.comm	_SMS_DBD,4,2                    ; @SMS_DBD
	.comm	_DISK_SHIFT,4,2                 ; @DISK_SHIFT
	.comm	_DISK_NBLKS,4,2                 ; @DISK_NBLKS
	.comm	_SMS_PAGE_CTRL_CHANGEABLE,4,2   ; @SMS_PAGE_CTRL_CHANGEABLE
	.comm	_PSEUDO_SPT,4,2                 ; @PSEUDO_SPT
	.comm	_PSEUDO_SPC,4,2                 ; @PSEUDO_SPC
	.comm	_PSEUDO_HDS,4,2                 ; @PSEUDO_HDS
	.comm	_SSD_KEY_UNIT_ATTENTION,4,2     ; @SSD_KEY_UNIT_ATTENTION
	.comm	_CAM_STATUS_MASK,4,2            ; @CAM_STATUS_MASK
	.comm	_CAM_SCSI_STATUS_ERROR,4,2      ; @CAM_SCSI_STATUS_ERROR
	.comm	_SCSI_STATUS_CHECK_COND,8,3     ; @SCSI_STATUS_CHECK_COND
	.comm	_CAM_AUTOSNS_VALID,4,2          ; @CAM_AUTOSNS_VALID
	.comm	_CAM_REQ_CMP,4,2                ; @CAM_REQ_CMP
	.no_dead_strip	_vhbasimple_act
.subsections_via_symbols
