	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function titan_parse_env_address
_titan_parse_env_address:               ## @titan_parse_env_address
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_prom_getenv
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$30, %edx
	callq	_strncpy
	movb	$0, -51(%rbp)
	movq	%rbx, -96(%rbp)
	leaq	L_.str.1(%rip), %r13
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strsep
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strsep
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_simple_strtol
	movl	%eax, (%r15)
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_simple_strtol
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.4:
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	andl	$268435455, %ecx                ## imm = 0xFFFFFFF
	movl	%ecx, (%r15)
	andb	$15, 3(%rdx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	leaq	-80(%rbp), %rsi
LBB0_8:
	xorl	%eax, %eax
	callq	_printk
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_9
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"titan: invalid env name, %s.\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"titan: Couldn't tokenize %s start,end.\n"

L_.str.3:                               ## @.str.3
	.asciz	"titan: Unable to convert :%s: :%s: into start,end values.\n"

	.no_dead_strip	_titan_parse_env_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function titan_parse_env_address
_titan_parse_env_address:               ; @titan_parse_env_address
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_prom_getenv
	cbz	x0, LBB0_6
; %bb.1:
	mov	x1, x0
	add	x22, sp, #26
	add	x0, sp, #26
	mov	w2, #30
	bl	_strncpy
	strb	wzr, [sp, #55]
	str	x22, [sp, #16]
Lloh3:
	adrp	x22, l_.str.1@PAGE
Lloh4:
	add	x22, x22, l_.str.1@PAGEOFF
	add	x0, sp, #16
	mov	x1, x22
	bl	_strsep
	mov	x23, x0
	add	x0, sp, #16
	mov	x1, x22
	bl	_strsep
	cbz	x23, LBB0_7
; %bb.2:
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x23
	mov	x1, #0
	mov	w2, #0
	bl	_simple_strtol
	str	w0, [x21]
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	bl	_simple_strtol
	str	w0, [x20]
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.4:
	cbz	w0, LBB0_8
; %bb.5:
	mov	w0, #0
	and	w8, w8, #0xfffffff
	str	w8, [x21]
	ldr	w8, [x20]
	and	w8, w8, #0xfffffff
	str	w8, [x20]
	b	LBB0_11
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #26
	b	LBB0_10
LBB0_8:
	add	x8, sp, #26
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	mov	x1, x19
LBB0_10:
	bl	_printk
	mov	w0, #-1
LBB0_11:
	ldr	x8, [sp, #56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	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
	add	sp, sp, #128
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"titan: invalid env name, %s.\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"titan: Couldn't tokenize %s start,end.\n"

l_.str.3:                               ; @.str.3
	.asciz	"titan: Unable to convert :%s: :%s: into start,end values.\n"

	.no_dead_strip	_titan_parse_env_address
.subsections_via_symbols
