	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vscsi_srp_response
_vscsi_srp_response:                    ## @vscsi_srp_response
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	16(%rdi), %rax
	movq	24(%rdi), %rbx
	movq	8(%rbx), %rcx
	leaq	(%rcx,%rax,4), %r13
	movq	(%rcx,%rax,4), %rax
	movq	%rax, (%r12)
	movq	_SCSI_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_4
LBB0_2:
	movq	_CAM_SCSI_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_CAM_DEV_QFRZN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r12)
	movl	8(%r12), %edi
	movl	$1, %esi
	callq	_xpt_freeze_devq
LBB0_4:
	movl	8(%r13), %eax
	movq	_SRP_RSPVALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	$0, 40(%r13)
LBB0_6:
	movq	_SRP_SNSVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_8
## %bb.7:
	movq	$0, 32(%r13)
LBB0_8:
	movq	_SRP_DOOVER@GOTPCREL(%rip), %rdx
	movq	_SRP_DOUNDER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%eax, %esi
	jne	LBB0_10
## %bb.9:
	movq	$0, 24(%r13)
LBB0_10:
	movq	_SRP_DIOVER@GOTPCREL(%rip), %rdx
	movq	_SRP_DIUNDER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%eax, %esi
	je	LBB0_11
## %bb.12:
	testl	%eax, %ecx
	je	LBB0_14
LBB0_13:
	leaq	32(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %esi
	callq	_bzero
	movq	_CAM_AUTOSNS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	movq	32(%r13), %rdi
	callq	_be32toh
	movq	16(%r12), %rsi
	movq	%rax, %rdi
	callq	_min
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	40(%r13), %rdi
	movq	48(%r13), %r15
	callq	_be32toh
	leaq	(%r15,%rax,4), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	16(%r12), %rbx
	movq	32(%r13), %rdi
	callq	_be32toh
	subq	%rax, %rbx
	movq	%rbx, 24(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movq	_CAM_DIR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_15
## %bb.16:
	cmpl	$129, %eax
	jne	LBB0_19
## %bb.17:
	movl	$4, %eax
	jmp	LBB0_18
LBB0_11:
	movq	$0, 16(%r13)
	testl	%eax, %ecx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_15:
	movl	$6, %eax
LBB0_18:
	movq	(%r13,%rax,4), %rax
	movq	%rax, 8(%r12)
LBB0_19:
	movl	(%rbx), %edi
	movl	8(%r14), %esi
	movq	_BUS_DMASYNC_POSTREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_dmamap_sync
	movl	(%rbx), %edi
	movl	8(%r14), %esi
	callq	_bus_dmamap_unload
	movq	%r12, %rdi
	callq	_xpt_done
	movq	$0, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCSI_STATUS_OK,8,3             ## @SCSI_STATUS_OK
	.comm	_CAM_REQ_CMP,4,2                ## @CAM_REQ_CMP
	.comm	_CAM_SCSI_STATUS_ERROR,4,2      ## @CAM_SCSI_STATUS_ERROR
	.comm	_CAM_DEV_QFRZN,4,2              ## @CAM_DEV_QFRZN
	.comm	_SRP_RSPVALID,4,2               ## @SRP_RSPVALID
	.comm	_SRP_SNSVALID,4,2               ## @SRP_SNSVALID
	.comm	_SRP_DOOVER,4,2                 ## @SRP_DOOVER
	.comm	_SRP_DOUNDER,4,2                ## @SRP_DOUNDER
	.comm	_SRP_DIOVER,4,2                 ## @SRP_DIOVER
	.comm	_SRP_DIUNDER,4,2                ## @SRP_DIUNDER
	.comm	_CAM_AUTOSNS_VALID,4,2          ## @CAM_AUTOSNS_VALID
	.comm	_CAM_DIR_MASK,4,2               ## @CAM_DIR_MASK
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_CAM_REQ_CMP_ERR,4,2            ## @CAM_REQ_CMP_ERR
	.no_dead_strip	_vscsi_srp_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vscsi_srp_response
_vscsi_srp_response:                    ; @vscsi_srp_response
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x20, [x0]
	ldp	x8, x23, [x0, #16]
	ldr	x9, [x23, #8]
	add	x24, x9, x8, lsl #2
	ldr	x8, [x24]
	str	x8, [x20]
Lloh0:
	adrp	x9, _SCSI_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCSI_STATUS_OK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CAM_REQ_CMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _CAM_SCSI_STATUS_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAM_SCSI_STATUS_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh9:
	adrp	x9, _CAM_REQ_CMP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x9, _CAM_DEV_QFRZN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CAM_DEV_QFRZN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	ldr	w0, [x20, #8]
	mov	w1, #1
	bl	_xpt_freeze_devq
LBB0_4:
	ldr	w8, [x24, #8]
Lloh15:
	adrp	x9, _SRP_RSPVALID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SRP_RSPVALID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x24, #40]
LBB0_6:
Lloh18:
	adrp	x9, _SRP_SNSVALID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SRP_SNSVALID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ands	w9, w9, w8
	b.ne	LBB0_8
; %bb.7:
	str	xzr, [x24, #32]
LBB0_8:
Lloh21:
	adrp	x10, _SRP_DOOVER@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SRP_DOOVER@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	adrp	x11, _SRP_DOUNDER@GOTPAGE
Lloh25:
	ldr	x11, [x11, _SRP_DOUNDER@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w8
	b.ne	LBB0_10
; %bb.9:
	str	xzr, [x24, #24]
LBB0_10:
Lloh27:
	adrp	x10, _SRP_DIOVER@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SRP_DIOVER@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
Lloh30:
	adrp	x11, _SRP_DIUNDER@GOTPAGE
Lloh31:
	ldr	x11, [x11, _SRP_DIUNDER@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w8
	b.eq	LBB0_16
; %bb.11:
	cbz	w9, LBB0_13
LBB0_12:
	add	x21, x20, #32
	mov	x0, x21
	mov	w1, #4
	bl	_bzero
Lloh33:
	adrp	x8, _CAM_AUTOSNS_VALID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CAM_AUTOSNS_VALID@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	ldr	x0, [x24, #32]
	bl	_be32toh
	ldr	x1, [x20, #16]
	bl	_min
	mov	x22, x0
	ldp	x0, x25, [x24, #40]
	bl	_be32toh
	add	x1, x25, x0, lsl #2
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	ldr	x21, [x20, #16]
	ldr	x0, [x24, #32]
	bl	_be32toh
	sub	x8, x21, x0
	str	x8, [x20, #24]
LBB0_13:
	ldr	w8, [x20]
Lloh36:
	adrp	x9, _CAM_DIR_MASK@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CAM_DIR_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #128
	b.eq	LBB0_17
; %bb.14:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.15:
	mov	w8, #4
	b	LBB0_18
LBB0_16:
	str	xzr, [x24, #16]
	cbnz	w9, LBB0_12
	b	LBB0_13
LBB0_17:
	mov	w8, #6
LBB0_18:
	lsl	x8, x8, #2
	ldr	x8, [x24, x8]
	str	x8, [x20, #8]
LBB0_19:
	ldr	w0, [x23]
	ldr	w1, [x19, #8]
Lloh39:
	adrp	x8, _BUS_DMASYNC_POSTREAD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BUS_DMASYNC_POSTREAD@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	bl	_bus_dmamap_sync
	ldr	w0, [x23]
	ldr	w1, [x19, #8]
	bl	_bus_dmamap_unload
	mov	x0, x20
	bl	_xpt_done
	str	xzr, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_SCSI_STATUS_OK,8,3             ; @SCSI_STATUS_OK
	.comm	_CAM_REQ_CMP,4,2                ; @CAM_REQ_CMP
	.comm	_CAM_SCSI_STATUS_ERROR,4,2      ; @CAM_SCSI_STATUS_ERROR
	.comm	_CAM_DEV_QFRZN,4,2              ; @CAM_DEV_QFRZN
	.comm	_SRP_RSPVALID,4,2               ; @SRP_RSPVALID
	.comm	_SRP_SNSVALID,4,2               ; @SRP_SNSVALID
	.comm	_SRP_DOOVER,4,2                 ; @SRP_DOOVER
	.comm	_SRP_DOUNDER,4,2                ; @SRP_DOUNDER
	.comm	_SRP_DIOVER,4,2                 ; @SRP_DIOVER
	.comm	_SRP_DIUNDER,4,2                ; @SRP_DIUNDER
	.comm	_CAM_AUTOSNS_VALID,4,2          ; @CAM_AUTOSNS_VALID
	.comm	_CAM_DIR_MASK,4,2               ; @CAM_DIR_MASK
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_CAM_REQ_CMP_ERR,4,2            ; @CAM_REQ_CMP_ERR
	.no_dead_strip	_vscsi_srp_response
.subsections_via_symbols
