	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vscsi_cam_action
_vscsi_cam_action:                      ## @vscsi_cam_action
	.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
	movq	%rdi, %r14
	callq	_cam_sim_softc
	movq	%rax, %r15
	leaq	12(%rax), %rdi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtx_assert
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_9
## %bb.1:
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_CAM_FUNC_NOTAVAIL@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_9:
	movq	_CAM_REQ_INVALID@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_6:
	movq	_CAM_REQ_INPROG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_panic
LBB0_8:
	movq	%rbx, 8(%r14)
	movq	_queue@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movq	%r15, %rdi
	addq	$4, %rdi
	movl	(%r13), %edx
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_TAIL
	movl	(%r15), %edi
	movl	(%r14), %esi
	movq	_vscsi_scsi_command@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdx
	movq	%r14, %r8
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bus_dmamap_load_ccb            ## TAILCALL
LBB0_3:
	movq	_CAM_REQ_INPROG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vscsi_task_management          ## TAILCALL
LBB0_2:
	movl	$1, (%rbx)
	movq	_PI_TAG_ABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	_PIM_EXTLUNS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rbx)
	movl	$-1, 68(%rbx)
	movl	64(%rbx), %edi
	movq	_SIM_IDLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_strlcpy
	movl	60(%rbx), %edi
	movq	_HBA_IDLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_strlcpy
	movl	56(%rbx), %r15d
	movq	%r14, %rdi
	callq	_cam_sim_name
	movq	_DEV_IDLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_strlcpy
	movq	%r14, %rdi
	callq	_cam_sim_unit
	movl	%eax, 52(%rbx)
	movq	%r14, %rdi
	callq	_cam_sim_bus
	movl	%eax, 48(%rbx)
	movl	$150000, 4(%rbx)                ## imm = 0x249F0
	movq	_XPORT_SRP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movl	$0, 32(%rbx)
	movq	_PROTO_SCSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_SCSI_REV_SPC4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_10
LBB0_4:
	movq	_PROTO_SCSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_SCSI_REV_SPC4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_XPORT_SRP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	$0, (%rbx)
LBB0_10:
	movq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xpt_done                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_PI_TAG_ABLE,4,2                ## @PI_TAG_ABLE
	.comm	_PIM_EXTLUNS,4,2                ## @PIM_EXTLUNS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FreeBSD"

	.comm	_SIM_IDLEN,4,2                  ## @SIM_IDLEN
L_.str.1:                               ## @.str.1
	.asciz	"IBM"

	.comm	_HBA_IDLEN,4,2                  ## @HBA_IDLEN
	.comm	_DEV_IDLEN,4,2                  ## @DEV_IDLEN
	.comm	_XPORT_SRP,8,3                  ## @XPORT_SRP
	.comm	_PROTO_SCSI,8,3                 ## @PROTO_SCSI
	.comm	_SCSI_REV_SPC4,8,3              ## @SCSI_REV_SPC4
	.comm	_CAM_REQ_CMP,8,3                ## @CAM_REQ_CMP
	.comm	_CAM_REQ_INPROG,8,3             ## @CAM_REQ_INPROG
	.comm	_CAM_FUNC_NOTAVAIL,8,3          ## @CAM_FUNC_NOTAVAIL
L_.str.2:                               ## @.str.2
	.asciz	"SCSI queue flooded"

	.comm	_queue,4,2                      ## @queue
	.comm	_vscsi_scsi_command,4,2         ## @vscsi_scsi_command
	.comm	_CAM_REQ_INVALID,8,3            ## @CAM_REQ_INVALID
	.no_dead_strip	_vscsi_cam_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vscsi_cam_action
_vscsi_cam_action:                      ; @vscsi_cam_action
	.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, x1
	mov	x20, x0
	bl	_cam_sim_softc
	mov	x21, x0
	add	x0, x0, #12
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mtx_assert
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _CAM_REQ_CMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh5:
	adrp	x10, lJTI0_0@PAGE
Lloh6:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh7:
	adrp	x8, _CAM_FUNC_NOTAVAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAM_FUNC_NOTAVAIL@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
Lloh9:
	adrp	x8, _CAM_REQ_INVALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAM_REQ_INVALID@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x8, _CAM_REQ_INPROG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAM_REQ_INPROG@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	add	x22, x21, #8
	mov	x0, x22
	bl	_TAILQ_FIRST
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
LBB0_6:
	str	x19, [x20, #8]
Lloh16:
	adrp	x23, _queue@GOTPAGE
Lloh17:
	ldr	x23, [x23, _queue@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x22
	mov	x1, x20
	bl	_TAILQ_REMOVE
	add	x0, x21, #4
	ldr	w2, [x23]
	mov	x1, x20
	bl	_TAILQ_INSERT_TAIL
	ldr	w0, [x21]
	ldr	w1, [x20]
Lloh18:
	adrp	x8, _vscsi_scsi_command@GOTPAGE
Lloh19:
	ldr	x8, [x8, _vscsi_scsi_command@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x2, x19
	mov	x4, x20
	mov	w5, #0
	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	_bus_dmamap_load_ccb
LBB0_7:
Lloh21:
	adrp	x8, _CAM_REQ_INPROG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAM_REQ_INPROG@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x21
	mov	x1, 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	_vscsi_task_management
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
Lloh24:
	adrp	x8, _PI_TAG_ABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PI_TAG_ABLE@GOTPAGEOFF]
Lloh26:
	adrp	x9, _PIM_EXTLUNS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PIM_EXTLUNS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #88]
	stp	xzr, xzr, [x19, #72]
	mov	w8, #-1
	str	w8, [x19, #68]
	ldr	w0, [x19, #64]
Lloh30:
	adrp	x8, _SIM_IDLEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SIM_IDLEN@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strlcpy
	ldr	w0, [x19, #60]
Lloh35:
	adrp	x8, _HBA_IDLEN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HBA_IDLEN@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strlcpy
	ldr	w21, [x19, #56]
	mov	x0, x20
	bl	_cam_sim_name
	mov	x1, x0
Lloh40:
	adrp	x8, _DEV_IDLEN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DEV_IDLEN@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_strlcpy
	mov	x0, x20
	bl	_cam_sim_unit
	str	w0, [x19, #52]
	mov	x0, x20
	bl	_cam_sim_bus
	str	w0, [x19, #48]
	mov	w8, #18928
	movk	w8, #2, lsl #16
	str	w8, [x19, #4]
Lloh43:
	adrp	x8, _XPORT_SRP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _XPORT_SRP@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	str	wzr, [x19, #32]
Lloh46:
	adrp	x8, _PROTO_SCSI@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PROTO_SCSI@GOTPAGEOFF]
Lloh48:
	adrp	x9, _SCSI_REV_SPC4@GOTPAGE
Lloh49:
	ldr	x9, [x9, _SCSI_REV_SPC4@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
Lloh51:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	b	LBB0_10
LBB0_9:
Lloh52:
	adrp	x8, _PROTO_SCSI@GOTPAGE
Lloh53:
	ldr	x8, [x8, _PROTO_SCSI@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	str	x8, [x19, #32]
Lloh55:
	adrp	x8, _SCSI_REV_SPC4@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SCSI_REV_SPC4@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
Lloh58:
	adrp	x9, _XPORT_SRP@GOTPAGE
Lloh59:
	ldr	x9, [x9, _XPORT_SRP@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	str	xzr, [x19]
LBB0_10:
Lloh61:
	adrp	x8, _CAM_REQ_CMP@GOTPAGE
Lloh62:
	ldr	x8, [x8, _CAM_REQ_CMP@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, 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	_xpt_done
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh61, Lloh62
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_PI_TAG_ABLE,4,2                ; @PI_TAG_ABLE
	.comm	_PIM_EXTLUNS,4,2                ; @PIM_EXTLUNS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FreeBSD"

	.comm	_SIM_IDLEN,4,2                  ; @SIM_IDLEN
l_.str.1:                               ; @.str.1
	.asciz	"IBM"

	.comm	_HBA_IDLEN,4,2                  ; @HBA_IDLEN
	.comm	_DEV_IDLEN,4,2                  ; @DEV_IDLEN
	.comm	_XPORT_SRP,8,3                  ; @XPORT_SRP
	.comm	_PROTO_SCSI,8,3                 ; @PROTO_SCSI
	.comm	_SCSI_REV_SPC4,8,3              ; @SCSI_REV_SPC4
	.comm	_CAM_REQ_CMP,8,3                ; @CAM_REQ_CMP
	.comm	_CAM_REQ_INPROG,8,3             ; @CAM_REQ_INPROG
	.comm	_CAM_FUNC_NOTAVAIL,8,3          ; @CAM_FUNC_NOTAVAIL
l_.str.2:                               ; @.str.2
	.asciz	"SCSI queue flooded"

	.comm	_queue,4,2                      ; @queue
	.comm	_vscsi_scsi_command,4,2         ; @vscsi_scsi_command
	.comm	_CAM_REQ_INVALID,8,3            ; @CAM_REQ_INVALID
	.no_dead_strip	_vscsi_cam_action
.subsections_via_symbols
