	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vtscsi_tmf_handle
_pci_vtscsi_tmf_handle:                 ## @pci_vtscsi_tmf_handle
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_ctl_scsi_alloc_io
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ctl_scsi_zero_io
	movq	_CTL_IO_TASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	16(%r14), %edi
	callq	_pci_vtscsi_get_lun
	movl	%eax, (%rbx)
	movq	_CTL_TAG_SIMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 8(%rbx)
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.pci_vtscsi_tmf_handle(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_2:
	movq	_pci_vtscsi_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_sbuf_new_auto
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ctl_io_sbuf
	movq	%r12, %rdi
	callq	_sbuf_finish
	movq	%r12, %rdi
	callq	_sbuf_data
	movslq	%eax, %rdi
	callq	_DPRINTF
	movq	%r12, %rdi
	callq	_sbuf_delete
LBB0_4:
	movl	(%r15), %edi
	movq	_CTL_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movslq	%eax, %rdi
	callq	_WPRINTF
LBB0_6:
	movl	(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_ctl_scsi_free_io
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_IO_TASK,4,2                ## @CTL_IO_TASK
	.comm	_CTL_TAG_SIMPLE,4,2             ## @CTL_TAG_SIMPLE
	.comm	_CTL_TASK_ABORT_TASK,4,2        ## @CTL_TASK_ABORT_TASK
	.comm	_CTL_TASK_ABORT_TASK_SET,4,2    ## @CTL_TASK_ABORT_TASK_SET
	.comm	_CTL_TASK_CLEAR_ACA,4,2         ## @CTL_TASK_CLEAR_ACA
	.comm	_CTL_TASK_CLEAR_TASK_SET,4,2    ## @CTL_TASK_CLEAR_TASK_SET
	.comm	_CTL_TASK_I_T_NEXUS_RESET,4,2   ## @CTL_TASK_I_T_NEXUS_RESET
	.comm	_CTL_TASK_LUN_RESET,4,2         ## @CTL_TASK_LUN_RESET
	.comm	_CTL_TASK_QUERY_TASK,4,2        ## @CTL_TASK_QUERY_TASK
	.comm	_CTL_TASK_QUERY_TASK_SET,4,2    ## @CTL_TASK_QUERY_TASK_SET
	.comm	_pci_vtscsi_debug,8,3           ## @pci_vtscsi_debug
	.comm	_CTL_IO,4,2                     ## @CTL_IO
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_pci_vtscsi_tmf_handle
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.pci_vtscsi_tmf_handle
l_switch.table.pci_vtscsi_tmf_handle:
	.quad	_CTL_TASK_QUERY_TASK_SET
	.quad	_CTL_TASK_QUERY_TASK
	.quad	_CTL_TASK_LUN_RESET
	.quad	_CTL_TASK_I_T_NEXUS_RESET
	.quad	_CTL_TASK_CLEAR_TASK_SET
	.quad	_CTL_TASK_CLEAR_ACA
	.quad	_CTL_TASK_ABORT_TASK_SET
	.quad	_CTL_TASK_ABORT_TASK

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_vtscsi_tmf_handle
_pci_vtscsi_tmf_handle:                 ; @pci_vtscsi_tmf_handle
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_ctl_scsi_alloc_io
	mov	x20, x0
	bl	_ctl_scsi_zero_io
Lloh0:
	adrp	x8, _CTL_IO_TASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_IO_TASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	w8, [x21, #4]
	str	w8, [x20, #4]
	ldr	w0, [x19, #16]
	bl	_pci_vtscsi_get_lun
	str	w0, [x20]
Lloh3:
	adrp	x8, _CTL_TAG_SIMPLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_TAG_SIMPLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	x8, [x19, #8]
	str	x8, [x20, #8]
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, l_switch.table.pci_vtscsi_tmf_handle@PAGE
Lloh7:
	add	x9, x9, l_switch.table.pci_vtscsi_tmf_handle@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x20, #4]
LBB0_2:
Lloh8:
	adrp	x8, _pci_vtscsi_debug@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pci_vtscsi_debug@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_sbuf_new_auto
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_ctl_io_sbuf
	mov	x0, x22
	bl	_sbuf_finish
	mov	x0, x22
	bl	_sbuf_data
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_DPRINTF
	mov	x0, x22
	bl	_sbuf_delete
LBB0_4:
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _CTL_IO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CTL_IO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ioctl
	cbz	w0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_WPRINTF
LBB0_6:
	ldr	w8, [x20]
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_ctl_scsi_free_io
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_IO_TASK,4,2                ; @CTL_IO_TASK
	.comm	_CTL_TAG_SIMPLE,4,2             ; @CTL_TAG_SIMPLE
	.comm	_CTL_TASK_ABORT_TASK,4,2        ; @CTL_TASK_ABORT_TASK
	.comm	_CTL_TASK_ABORT_TASK_SET,4,2    ; @CTL_TASK_ABORT_TASK_SET
	.comm	_CTL_TASK_CLEAR_ACA,4,2         ; @CTL_TASK_CLEAR_ACA
	.comm	_CTL_TASK_CLEAR_TASK_SET,4,2    ; @CTL_TASK_CLEAR_TASK_SET
	.comm	_CTL_TASK_I_T_NEXUS_RESET,4,2   ; @CTL_TASK_I_T_NEXUS_RESET
	.comm	_CTL_TASK_LUN_RESET,4,2         ; @CTL_TASK_LUN_RESET
	.comm	_CTL_TASK_QUERY_TASK,4,2        ; @CTL_TASK_QUERY_TASK
	.comm	_CTL_TASK_QUERY_TASK_SET,4,2    ; @CTL_TASK_QUERY_TASK_SET
	.comm	_pci_vtscsi_debug,8,3           ; @pci_vtscsi_debug
	.comm	_CTL_IO,4,2                     ; @CTL_IO
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_pci_vtscsi_tmf_handle
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.pci_vtscsi_tmf_handle
l_switch.table.pci_vtscsi_tmf_handle:
	.quad	_CTL_TASK_QUERY_TASK_SET
	.quad	_CTL_TASK_QUERY_TASK
	.quad	_CTL_TASK_LUN_RESET
	.quad	_CTL_TASK_I_T_NEXUS_RESET
	.quad	_CTL_TASK_CLEAR_TASK_SET
	.quad	_CTL_TASK_CLEAR_ACA
	.quad	_CTL_TASK_ABORT_TASK_SET
	.quad	_CTL_TASK_ABORT_TASK

.subsections_via_symbols
