	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function startSession
_startSession:                          ## @startSession
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$3, %edi
	callq	_debug_called
	movq	_SESS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	4(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_3
LBB0_14:
	movq	_ISCSISETSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rbx
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_15
## %bb.16:
	movq	_T4@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_1:
	movq	_T2@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_iscsidev@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_O_RDWR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%eax, %r14d
	movq	$8, -40(%rbp)
	movq	16(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	leaq	-40(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	_ISCSISETSES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:
	movq	(%r12), %rdx
	movl	-44(%rbp), %ecx
	leaq	L_.str.3(%rip), %rsi
	leaq	-40(%rbp), %rdi
	callq	_asprintf
	movq	-40(%rbp), %rdi
	movl	(%r15), %esi
	callq	_open
	movq	-40(%rbp), %rdi
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movl	%eax, %r15d
	callq	_free
	movl	%r14d, %edi
	callq	_close
	movl	%r15d, 4(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setOptions
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_18
## %bb.13:
	movl	4(%rbx), %edi
	jmp	LBB0_14
LBB0_15:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_9
LBB0_4:
	callq	_startSession.cold.1
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	callq	_perror
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_11:
	callq	_perror
	movq	-40(%rbp), %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function startSession.cold.1
_startSession.cold.1:                   ## @startSession.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_iscsidev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	popq	%rbp
	jmp	_perror                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SESS_CONNECTED,4,2             ## @SESS_CONNECTED
	.comm	_T2,4,2                         ## @T2
	.comm	_iscsidev,8,3                   ## @iscsidev
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net.iscsi_initiator.isid"

L_.str.1:                               ## @.str.1
	.asciz	"sysctlbyname"

	.comm	_ISCSISETSES,4,2                ## @ISCSISETSES
L_.str.2:                               ## @.str.2
	.asciz	"ISCSISETSES"

L_.str.3:                               ## @.str.3
	.asciz	"%s%d"

	.comm	_ISCSISETSOC,4,2                ## @ISCSISETSOC
L_.str.4:                               ## @.str.4
	.asciz	"ISCSISETSOC"

	.comm	_T4,4,2                         ## @T4
	.no_dead_strip	_startSession
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function startSession
_startSession:                          ; @startSession
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w0, #3
	bl	_debug_called
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SESS_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SESS_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
	cmn	w0, #1
	b.eq	LBB0_7
LBB0_2:
Lloh3:
	adrp	x8, _ISCSISETSOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISCSISETSOC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, x19, #8
	bl	_ioctl
	cbnz	x0, LBB0_14
; %bb.3:
Lloh6:
	adrp	x8, _T4@GOTPAGE
Lloh7:
	ldr	x8, [x8, _T4@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _T2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _T2@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
Lloh10:
	adrp	x22, _iscsidev@GOTPAGE
Lloh11:
	ldr	x22, [x22, _iscsidev@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh12:
	adrp	x21, _O_RDWR@GOTPAGE
Lloh13:
	ldr	x21, [x21, _O_RDWR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_open
	tbnz	w0, #31, LBB0_15
; %bb.8:
	mov	x20, x0
	mov	w8, #8
	str	x8, [sp]
	ldr	x1, [x19, #16]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, sp
	mov	w3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cbnz	x0, LBB0_16
LBB0_9:
Lloh16:
	adrp	x8, _ISCSISETSES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ISCSISETSES@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_ioctl
	cbnz	x0, LBB0_17
; %bb.10:
	ldr	x2, [x22]
	ldr	w3, [sp, #12]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, sp
	bl	_asprintf
	ldr	x0, [sp]
	ldr	w1, [x21]
	bl	_open
	mov	x21, x0
	ldr	x0, [sp]
	tbnz	w21, #31, LBB0_19
; %bb.11:
	bl	_free
	mov	x0, x20
	bl	_close
	str	w21, [x19, #4]
	mov	x0, x19
	mov	w1, #0
	bl	_setOptions
	cbz	x0, LBB0_13
; %bb.12:
	mov	w0, #-1
	b	LBB0_6
LBB0_13:
	ldr	w0, [x19, #4]
	b	LBB0_2
LBB0_14:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_15:
	bl	_startSession.cold.1
	mov	w0, #0
	b	LBB0_6
LBB0_16:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_9
LBB0_17:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_18:
	bl	_perror
	mov	w0, #0
	b	LBB0_6
LBB0_19:
	bl	_perror
	ldr	x0, [sp]
	bl	_free
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function startSession.cold.1
_startSession.cold.1:                   ; @startSession.cold.1
	.cfi_startproc
; %bb.0:
Lloh27:
	adrp	x8, _iscsidev@GOTPAGE
Lloh28:
	ldr	x8, [x8, _iscsidev@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
	b	_perror
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SESS_CONNECTED,4,2             ; @SESS_CONNECTED
	.comm	_T2,4,2                         ; @T2
	.comm	_iscsidev,8,3                   ; @iscsidev
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net.iscsi_initiator.isid"

l_.str.1:                               ; @.str.1
	.asciz	"sysctlbyname"

	.comm	_ISCSISETSES,4,2                ; @ISCSISETSES
l_.str.2:                               ; @.str.2
	.asciz	"ISCSISETSES"

l_.str.3:                               ; @.str.3
	.asciz	"%s%d"

	.comm	_ISCSISETSOC,4,2                ; @ISCSISETSOC
l_.str.4:                               ; @.str.4
	.asciz	"ISCSISETSOC"

	.comm	_T4,4,2                         ; @T4
	.no_dead_strip	_startSession
.subsections_via_symbols
