	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_session
_new_session:                           ## @new_session
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TTY_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, 8(%rsi)
	je	LBB0_12
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.3:
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	_SE_PRESENT@GOTPCREL(%rip), %rcx
	movl	20(%rax), %eax
	orl	(%rcx), %eax
	movl	%eax, 20(%r15)
	movl	(%rbx), %ecx
	movq	_TTY_IFEXISTS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	_SE_IFEXISTS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 20(%r15)
LBB0_5:
	movq	_TTY_IFCONSOLE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_SE_IFCONSOLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 20(%r15)
LBB0_7:
	movq	%r15, %rdi
	addq	$16, %rdi
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_asprintf
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_setupargv
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	$0, 8(%r15)
	testq	%r14, %r14
	je	LBB0_16
## %bb.11:
	movq	%r15, 8(%r14)
	movq	%r14, (%r15)
	jmp	LBB0_17
LBB0_12:
	xorl	%r15d, %r15d
LBB0_17:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r15, %rdi
	callq	_free_session
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_16:
	movq	_sessions@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	$0, (%r15)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_TTY_ON,4,2                     ## @TTY_ON
	.comm	_SE_PRESENT,4,2                 ## @SE_PRESENT
	.comm	_TTY_IFEXISTS,4,2               ## @TTY_IFEXISTS
	.comm	_SE_IFEXISTS,4,2                ## @SE_IFEXISTS
	.comm	_TTY_IFCONSOLE,4,2              ## @TTY_IFCONSOLE
	.comm	_SE_IFCONSOLE,4,2               ## @SE_IFCONSOLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.comm	__PATH_DEV,4,2                  ## @_PATH_DEV
L_.str.1:                               ## @.str.1
	.asciz	"asprintf"

	.comm	_sessions,8,3                   ## @sessions
	.no_dead_strip	_new_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_session
_new_session:                           ; @new_session
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _TTY_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTY_ON@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_12
; %bb.2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_12
; %bb.3:
	mov	x20, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x19, x0
Lloh3:
	adrp	x8, _SE_PRESENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SE_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x0, #20]
	orr	w8, w9, w8
	str	w8, [x0, #20]
	ldr	w9, [x21]
Lloh6:
	adrp	x10, _TTY_IFEXISTS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TTY_IFEXISTS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x10, _SE_IFEXISTS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SE_IFEXISTS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x19, #20]
LBB0_5:
Lloh12:
	adrp	x10, _TTY_IFCONSOLE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TTY_IFCONSOLE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
Lloh15:
	adrp	x9, _SE_IFCONSOLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SE_IFCONSOLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #20]
LBB0_7:
	add	x0, x19, #16
Lloh18:
	adrp	x8, __PATH_DEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, __PATH_DEV@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	x3, [x21, #8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_asprintf
	tbz	x0, #63, LBB0_9
; %bb.8:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_setupargv
	cbz	x0, LBB0_14
; %bb.10:
	str	xzr, [x19, #8]
	cbz	x20, LBB0_15
; %bb.11:
	str	x19, [x20, #8]
	str	x20, [x19]
	b	LBB0_13
LBB0_12:
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	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
LBB0_14:
	mov	x0, x19
	bl	_free_session
	mov	x19, #0
	b	LBB0_13
LBB0_15:
Lloh25:
	adrp	x8, _sessions@GOTPAGE
Lloh26:
	ldr	x8, [x8, _sessions@GOTPAGEOFF]
Lloh27:
	str	x19, [x8]
	str	xzr, [x19]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_TTY_ON,4,2                     ; @TTY_ON
	.comm	_SE_PRESENT,4,2                 ; @SE_PRESENT
	.comm	_TTY_IFEXISTS,4,2               ; @TTY_IFEXISTS
	.comm	_SE_IFEXISTS,4,2                ; @SE_IFEXISTS
	.comm	_TTY_IFCONSOLE,4,2              ; @TTY_IFCONSOLE
	.comm	_SE_IFCONSOLE,4,2               ; @SE_IFCONSOLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	__PATH_DEV,4,2                  ; @_PATH_DEV
l_.str.1:                               ; @.str.1
	.asciz	"asprintf"

	.comm	_sessions,8,3                   ; @sessions
	.no_dead_strip	_new_session
.subsections_via_symbols
