	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_pathname_fsobj
_cleanup_pathname_fsobj:                ## @cleanup_pathname_fsobj
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movb	(%rdi), %al
	cmpb	$47, %al
	je	LBB0_4
## %bb.1:
	movb	$1, %r8b
	movq	%rdi, %r11
	testb	%al, %al
	jne	LBB0_7
## %bb.2:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	jmp	LBB0_3
LBB0_4:
	movq	_ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %r8
LBB0_3:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_fsobj_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_6:
	leaq	1(%rdi), %r11
	xorl	%r8d, %r8d
LBB0_7:
	movq	_ARCHIVE_EXTRACT_SECURE_NODOTDOT@GOTPCREL(%rip), %r10
	movq	%rdi, %r9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %eax
	cmpb	$47, %bl
	jne	LBB0_10
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%rax, %r11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r11), %ebx
	cmpb	$46, %bl
	jne	LBB0_9
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movzbl	1(%r11), %ebx
	movl	$2, %eax
	cmpb	$47, %bl
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	testb	%bl, %bl
	je	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$46, %bl
	jne	LBB0_11
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movzbl	2(%r11), %eax
	cmpb	$47, %al
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	testb	%al, %al
	jne	LBB0_11
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%ecx, (%r10)
	je	LBB0_11
	jmp	LBB0_24
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	testb	%bl, %bl
	je	LBB0_26
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	testb	$1, %r8b
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movb	$47, (%r9)
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r9
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r11
	movzbl	-1(%r11), %eax
	testb	%al, %al
	je	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$47, %al
	je	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movb	%al, (%r9)
	jmp	LBB0_13
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r8d, %r8d
	jmp	LBB0_8
LBB0_26:
	cmpq	%rdi, %r9
	jne	LBB0_28
## %bb.27:
	andb	$1, %r8b
	xorb	$47, %r8b
	movb	%r8b, (%rdi)
	incq	%rdi
	movq	%rdi, %r9
LBB0_28:
	movb	$0, (%r9)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_24:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %r8
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid empty "

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

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS,4,2 ## @ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS
L_.str.2:                               ## @.str.2
	.asciz	"Path is "

L_.str.3:                               ## @.str.3
	.asciz	"absolute"

	.comm	_ARCHIVE_EXTRACT_SECURE_NODOTDOT,4,2 ## @ARCHIVE_EXTRACT_SECURE_NODOTDOT
L_.str.4:                               ## @.str.4
	.asciz	"Path contains "

L_.str.5:                               ## @.str.5
	.asciz	"'..'"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_cleanup_pathname_fsobj
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_pathname_fsobj
_cleanup_pathname_fsobj:                ; @cleanup_pathname_fsobj
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldrb	w8, [x0]
	cmp	w8, #47
	b.eq	LBB0_3
; %bb.1:
	cbnz	w8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
Lloh5:
	adrp	x4, l_.str.1@PAGE
Lloh6:
	add	x4, x4, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_7
; %bb.4:
Lloh10:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x3, l_.str.2@PAGE
Lloh14:
	add	x3, x3, l_.str.2@PAGEOFF
Lloh15:
	adrp	x4, l_.str.3@PAGE
Lloh16:
	add	x4, x4, l_.str.3@PAGEOFF
LBB0_5:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	bl	_fsobj_error
Lloh17:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
	b	LBB0_29
LBB0_6:
	mov	w8, #1
	mov	x10, x0
	b	LBB0_8
LBB0_7:
	mov	w8, #0
	add	x10, x0, #1
LBB0_8:
Lloh19:
	adrp	x11, _ARCHIVE_EXTRACT_SECURE_NODOTDOT@GOTPAGE
Lloh20:
	ldr	x11, [x11, _ARCHIVE_EXTRACT_SECURE_NODOTDOT@GOTPAGEOFF]
	mov	w12, #47
	mov	x9, x0
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	ldrb	w13, [x10]
	cmp	w13, #46
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w13, #47
	b.ne	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w13, #1
	add	x10, x10, x13
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w13, [x10, #1]
	cmp	w13, #47
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w13, #2
	add	x10, x10, x13
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	w13, LBB0_26
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w13, #46
	b.ne	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w13, [x10, #2]
	cmp	w13, #47
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	w13, LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w13, [x11]
	tst	w13, w3
	b.eq	LBB0_20
	b	LBB0_30
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	w13, LBB0_26
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	tbnz	w8, #0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=1
	strb	w12, [x9], #1
LBB0_22:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x10, x10, #1
	ldurb	w13, [x10, #-1]
	cbz	w13, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	cmp	w13, #47
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=2
	strb	w13, [x9], #1
	b	LBB0_22
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #0
	b	LBB0_9
LBB0_26:
	cmp	x9, x0
	b.ne	LBB0_28
; %bb.27:
	tst	w8, #0x1
	mov	w8, #46
	cinc	w8, w8, eq
	strb	w8, [x0], #1
	mov	x9, x0
LBB0_28:
	strb	wzr, [x9]
Lloh21:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_29:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_30:
Lloh23:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x3, l_.str.4@PAGE
Lloh27:
	add	x3, x3, l_.str.4@PAGEOFF
Lloh28:
	adrp	x4, l_.str.5@PAGE
Lloh29:
	add	x4, x4, l_.str.5@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid empty "

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

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS,4,2 ; @ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS
l_.str.2:                               ; @.str.2
	.asciz	"Path is "

l_.str.3:                               ; @.str.3
	.asciz	"absolute"

	.comm	_ARCHIVE_EXTRACT_SECURE_NODOTDOT,4,2 ; @ARCHIVE_EXTRACT_SECURE_NODOTDOT
l_.str.4:                               ; @.str.4
	.asciz	"Path contains "

l_.str.5:                               ; @.str.5
	.asciz	"'..'"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_cleanup_pathname_fsobj
.subsections_via_symbols
