	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csio_build_visit               ## -- Begin function csio_build_visit
	.p2align	4, 0x90
_csio_build_visit:                      ## @csio_build_visit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	24(%rbp), %r12
	movl	$-1, %r15d
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	movl	%r9d, %ebx
	movl	%r8d, %r13d
	movq	%rdi, %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	$4, %esi
	callq	_bzero
	movl	(%r14), %edi
	movq	_SCSI_MAX_CDBLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	-72(%rbp), %rdx
	movq	%r12, %rcx
	movq	32(%rbp), %r8
	movq	16(%rbp), %r9
	pushq	$0
	callq	_do_encode
	addq	$16, %rsp
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movq	_MSG_SIMPLE_Q_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_SSD_FULL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%ebx, %ebx
	movl	$5000, %eax                     ## imm = 0x1388
	cmovnel	%ebx, %eax
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	pushq	-72(%rbp)
	pushq	%r10
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_cam_fill_csio
	addq	$32, %rsp
	movl	%r12d, %r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCSI_MAX_CDBLEN,4,2            ## @SCSI_MAX_CDBLEN
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ## @MSG_SIMPLE_Q_TAG
	.comm	_SSD_FULL_SIZE,4,2              ## @SSD_FULL_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csio_build_visit               ; -- Begin function csio_build_visit
	.p2align	2
_csio_build_visit:                      ; @csio_build_visit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x26, x7
	cbz	x7, LBB0_5
; %bb.2:
	mov	x25, x6
	mov	x24, x5
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x27, [x29, #16]
	mov	w1, #4
	bl	_bzero
	ldr	w0, [x23]
Lloh0:
	adrp	x8, _SCSI_MAX_CDBLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCSI_MAX_CDBLEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x3, x26
	mov	x4, x27
	mov	x5, x25
	mov	x6, #0
	bl	_do_encode
	mov	x25, x0
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _MSG_SIMPLE_Q_TAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_SIMPLE_Q_TAG@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SSD_FULL_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SSD_FULL_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	ldr	w7, [x9]
	ldr	x8, [sp, #24]
	mov	w9, #5000
	cmp	w24, #0
	csel	w9, w9, w24, eq
	str	w9, [sp, #8]
	str	x8, [sp]
	mov	x0, x23
	mov	x1, x22
	mov	x2, #0
	mov	x3, x21
	mov	x5, x20
	mov	x6, x19
	bl	_cam_fill_csio
	b	LBB0_6
LBB0_4:
	mov	w25, #0
	b	LBB0_6
LBB0_5:
	mov	w25, #-1
LBB0_6:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SCSI_MAX_CDBLEN,4,2            ; @SCSI_MAX_CDBLEN
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ; @MSG_SIMPLE_Q_TAG
	.comm	_SSD_FULL_SIZE,4,2              ; @SSD_FULL_SIZE
.subsections_via_symbols
