	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iscsi_iser_session_create
_iscsi_iser_session_create:             ## @iscsi_iser_session_create
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_iscsi_iser_sht@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_iscsi_host_alloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r13
	movq	_iscsi_iser_scsi_transport@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movl	%r14d, 52(%r13)
	movq	_iscsi_max_lun@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r13)
	movl	$16, (%r13)
	testq	%r15, %r15
	je	LBB0_9
## %bb.2:
	movq	(%r15), %r15
	movl	(%r15), %eax
	movl	%eax, 4(%r13)
	movq	_u16@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%r15), %edx
	movl	%r12d, %esi
	callq	_min_t
	movq	%rax, 16(%r13)
	leaq	16(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rax
	movq	_ISER_CONN_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	32(%r15), %rax
	movq	(%rax), %rbx
	cmpq	$0, 24(%r15)
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %edi
	callq	_iser_dif_prot_caps
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_scsi_host_set_prot
	movq	_SHOST_DIX_GUARD_IP@GOTPCREL(%rip), %rax
	movq	_SHOST_DIX_GUARD_CRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_scsi_host_set_guard
LBB0_6:
	movq	_IB_DEVICE_SG_GAPS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_MASK_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%eax, 24(%r13)
LBB0_8:
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_iscsi_host_add
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testq	%rbx, %rbx
	jne	LBB0_14
	jmp	LBB0_10
LBB0_9:
	movq	_u16@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ISER_DEF_XMIT_CMDS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_min_t
	movq	%rax, 16(%r13)
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_iscsi_host_add
	testq	%rax, %rax
	jne	LBB0_14
LBB0_10:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	4(%r13), %esi
	sarl	$9, %esi
	movq	_iser_max_sectors@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_min
	movq	%rax, 8(%r13)
	movl	4(%r13), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rcx
	callq	_iser_dbg
	movq	8(%r13), %rdx
	movq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	_iser_warn
LBB0_12:
	movq	16(%r13), %rdx
	movl	$0, (%rsp)
	movq	_iscsi_iser_transport@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$4, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_iscsi_session_setup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	%r13, %rdi
	callq	_iscsi_host_remove
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_iser_err
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_14:
	movq	%r13, %rdi
	callq	_iscsi_host_free
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iscsi_iser_sht,4,2             ## @iscsi_iser_sht
	.comm	_iscsi_iser_scsi_transport,4,2  ## @iscsi_iser_scsi_transport
	.comm	_iscsi_max_lun,4,2              ## @iscsi_max_lun
	.comm	_u16,4,2                        ## @u16
	.comm	_ISER_CONN_UP,8,3               ## @ISER_CONN_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iser conn %p already started teardown\n"

	.comm	_SHOST_DIX_GUARD_IP,4,2         ## @SHOST_DIX_GUARD_IP
	.comm	_SHOST_DIX_GUARD_CRC,4,2        ## @SHOST_DIX_GUARD_CRC
	.comm	_IB_DEVICE_SG_GAPS_REG,4,2      ## @IB_DEVICE_SG_GAPS_REG
	.comm	_MASK_4K,4,2                    ## @MASK_4K
	.comm	_ISER_DEF_XMIT_CMDS_MAX,4,2     ## @ISER_DEF_XMIT_CMDS_MAX
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_iser_max_sectors,8,3           ## @iser_max_sectors
L_.str.1:                               ## @.str.1
	.asciz	"iser_conn %p, sg_tablesize %u, max_sectors %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"max_sectors was reduced from %u to %u\n"

	.comm	_iscsi_iser_transport,4,2       ## @iscsi_iser_transport
	.no_dead_strip	_iscsi_iser_session_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iscsi_iser_session_create
_iscsi_iser_session_create:             ; @iscsi_iser_session_create
	.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	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x0, _iscsi_iser_sht@GOTPAGE
Lloh1:
	ldr	x0, [x0, _iscsi_iser_sht@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_iscsi_host_alloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _iscsi_iser_scsi_transport@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iscsi_iser_scsi_transport@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #56]
Lloh5:
	adrp	x8, _iscsi_max_lun@GOTPAGE
Lloh6:
	ldr	x8, [x8, _iscsi_max_lun@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w23, [x0, #48]
	stp	xzr, xzr, [x0, #32]
	mov	w8, #16
	str	w8, [x0]
	cbz	x21, LBB0_8
; %bb.2:
	ldr	x21, [x21]
	ldr	w8, [x21]
	str	w8, [x19, #4]
Lloh8:
	adrp	x8, _u16@GOTPAGE
Lloh9:
	ldr	x8, [x8, _u16@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [x21, #40]
	mov	x1, x22
	bl	_min_t
	str	x0, [x19, #16]
	add	x22, x21, #16
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x21, #8]
Lloh11:
	adrp	x9, _ISER_CONN_UP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ISER_CONN_UP@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.3:
	ldp	x9, x8, [x21, #24]
	ldr	x23, [x8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w0, [x23, #8]
	bl	_iser_dif_prot_caps
	mov	x1, x0
	mov	x0, x19
	bl	_scsi_host_set_prot
Lloh14:
	adrp	x8, _SHOST_DIX_GUARD_IP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SHOST_DIX_GUARD_IP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _SHOST_DIX_GUARD_CRC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SHOST_DIX_GUARD_CRC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_scsi_host_set_guard
LBB0_5:
	ldr	w8, [x23, #12]
Lloh20:
	adrp	x9, _IB_DEVICE_SG_GAPS_REG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IB_DEVICE_SG_GAPS_REG@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
Lloh23:
	adrp	x8, _MASK_4K@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MASK_4K@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mvn	w8, w8
	str	w8, [x19, #24]
LBB0_7:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_iscsi_host_add
	mov	x23, x0
	mov	x0, x22
	bl	_mutex_unlock
	cbnz	x23, LBB0_15
	b	LBB0_10
LBB0_8:
Lloh26:
	adrp	x8, _u16@GOTPAGE
Lloh27:
	ldr	x8, [x8, _u16@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _ISER_DEF_XMIT_CMDS_MAX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ISER_DEF_XMIT_CMDS_MAX@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_min_t
	str	x0, [x19, #16]
	mov	x0, x19
	mov	x1, #0
	bl	_iscsi_host_add
	cbnz	x0, LBB0_15
; %bb.9:
	mov	x21, #0
LBB0_10:
	ldr	w8, [x19, #4]
Lloh32:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	mul	w8, w9, w8
	asr	w1, w8, #9
Lloh35:
	adrp	x22, _iser_max_sectors@GOTPAGE
Lloh36:
	ldr	x22, [x22, _iser_max_sectors@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_min
	mov	x3, x0
	str	x0, [x19, #8]
	ldr	w2, [x19, #4]
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_iser_dbg
	ldr	x2, [x19, #8]
	ldr	x1, [x22]
	cmp	x2, x1
	b.ge	LBB0_12
; %bb.11:
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_iser_warn
LBB0_12:
	ldr	x2, [x19, #16]
Lloh41:
	adrp	x0, _iscsi_iser_transport@GOTPAGE
Lloh42:
	ldr	x0, [x0, _iscsi_iser_transport@GOTPAGEOFF]
	mov	x1, x19
	mov	w3, #0
	mov	w4, #4
	mov	x5, x20
	mov	w6, #0
	bl	_iscsi_session_setup
	cbnz	x0, LBB0_16
; %bb.13:
	mov	x0, x19
	bl	_iscsi_host_remove
	b	LBB0_15
LBB0_14:
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_iser_err
	mov	x0, x22
	bl	_mutex_unlock
LBB0_15:
	mov	x0, x19
	bl	_iscsi_host_free
	mov	x0, #0
LBB0_16:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_iscsi_iser_sht,4,2             ; @iscsi_iser_sht
	.comm	_iscsi_iser_scsi_transport,4,2  ; @iscsi_iser_scsi_transport
	.comm	_iscsi_max_lun,4,2              ; @iscsi_max_lun
	.comm	_u16,4,2                        ; @u16
	.comm	_ISER_CONN_UP,8,3               ; @ISER_CONN_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iser conn %p already started teardown\n"

	.comm	_SHOST_DIX_GUARD_IP,4,2         ; @SHOST_DIX_GUARD_IP
	.comm	_SHOST_DIX_GUARD_CRC,4,2        ; @SHOST_DIX_GUARD_CRC
	.comm	_IB_DEVICE_SG_GAPS_REG,4,2      ; @IB_DEVICE_SG_GAPS_REG
	.comm	_MASK_4K,4,2                    ; @MASK_4K
	.comm	_ISER_DEF_XMIT_CMDS_MAX,4,2     ; @ISER_DEF_XMIT_CMDS_MAX
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_iser_max_sectors,8,3           ; @iser_max_sectors
l_.str.1:                               ; @.str.1
	.asciz	"iser_conn %p, sg_tablesize %u, max_sectors %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"max_sectors was reduced from %u to %u\n"

	.comm	_iscsi_iser_transport,4,2       ; @iscsi_iser_transport
	.no_dead_strip	_iscsi_iser_session_create
.subsections_via_symbols
