	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function absolutize
_absolutize:                            ## @absolutize
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_getcwd
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	movb	$0, (%rax)
	movq	%r12, %rdi
	callq	_chdir
	movb	$47, (%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movq	%r12, %rsi
	jmp	LBB0_13
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_cow_printf
	jmp	LBB0_14
LBB0_6:
	leaq	-304(%rbp), %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	incl	%eax
	cmpl	%r15d, %eax
	jge	LBB0_12
## %bb.7:
	leaq	-304(%rbp), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
	movq	%r14, %rdi
	movq	%r12, %rsi
	jmp	LBB0_11
LBB0_8:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_getcwd
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	%r14, %rdi
	callq	_strlen
	movl	%r15d, %r13d
	subl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	%r13d, %eax
	jge	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
LBB0_11:
	callq	_strcat
	leaq	-304(%rbp), %rdi
	callq	_chdir
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
LBB0_13:
	xorl	%eax, %eax
	callq	_cow_printf
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.16:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"absolutize : unable to get cwd - errno = %d\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"absolutize : Can't cd to '%s' - errno = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"absolutize : unable to get cwd of '%s' - errno = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"absolutize : unable to fit '%s' into %d chars\n"

L_.str.4:                               ## @.str.4
	.asciz	"/"

	.no_dead_strip	_absolutize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function absolutize
_absolutize:                            ; @absolutize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x0, sp, #24
	mov	w1, #256
	bl	_getcwd
	cbz	x0, LBB0_4
; %bb.1:
	mov	w23, #47
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	strb	wzr, [x0]
	mov	x0, x19
	bl	_chdir
	strb	w23, [x22]
	cbz	w0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	x19, x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_4:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_5:
	add	x0, sp, #24
	bl	_strlen
	mov	x22, x0
	mov	x0, x19
	bl	_strlen
	add	w8, w22, w0
	add	w8, w8, #1
	cmp	w8, w21
	b.ge	LBB0_11
; %bb.6:
	add	x1, sp, #24
	mov	x0, x20
	bl	_strcpy
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcat
	mov	x0, x20
	mov	x1, x19
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_getcwd
	cbz	x0, LBB0_13
; %bb.8:
	mov	x0, x20
	bl	_strlen
	sub	w23, w21, w0
	mov	x0, x22
	bl	_strlen
	cmp	w0, w23
	b.ge	LBB0_12
; %bb.9:
	mov	x0, x20
	mov	x1, x22
LBB0_10:
	bl	_strcat
	add	x0, sp, #24
	bl	_chdir
	mov	w0, #0
	b	LBB0_15
LBB0_11:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_12:
	stp	x19, x21, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	stp	x19, x8, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_14:
	bl	_cow_printf
	mov	w0, #-1
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"absolutize : unable to get cwd - errno = %d\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"absolutize : Can't cd to '%s' - errno = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"absolutize : unable to get cwd of '%s' - errno = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"absolutize : unable to fit '%s' into %d chars\n"

l_.str.4:                               ; @.str.4
	.asciz	"/"

	.no_dead_strip	_absolutize
.subsections_via_symbols
