	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rename_nametoolong
_rename_nametoolong:                    ## @rename_nametoolong
	.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	%rsi, %rbx
	callq	_FSTYPE_RUMPFS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_skip
LBB0_2:
	movq	%rbx, %rdi
	callq	_rump_sys_chdir
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_4:
	movq	__PC_NAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_rump_sys_pathconf
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_6:
	leaq	1(%rbx), %r15
	addq	$2, %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_8:
	movq	%r14, %rdi
	movl	$97, %esi
	movq	%r15, %rdx
	callq	_memset
	movb	$0, (%r14,%r15)
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_rump_sys_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.6(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_10:
	movl	%ebx, %edi
	callq	_rump_sys_close
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.7(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_12:
	movq	__PC_NO_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_rump_sys_pathconf
	cmpq	$-1, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rbx
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	callq	_rump_sys_rename
	testq	%rbx, %rbx
	jne	LBB0_15
## %bb.17:
	movq	%r14, %rdi
	callq	_rump_sys_unlink
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.18:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	callq	_atf_tc_fail_errno
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	callq	_rump_sys_rename
LBB0_15:
	leaq	L_.str.8(%rip), %rdi
	cmpl	$-1, %eax
	jne	LBB0_19
## %bb.16:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
LBB0_19:
	callq	_atf_tc_fail_errno
LBB0_20:
	movq	%r14, %rdi
	callq	_free
	leaq	L_.str.10(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rump_sys_chdir                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rename not supported by file system"

L_.str.1:                               ## @.str.1
	.asciz	"chdir mountpoint"

L_.str.2:                               ## @.str.2
	.asciz	"."

	.comm	__PC_NAME_MAX,4,2               ## @_PC_NAME_MAX
L_.str.3:                               ## @.str.3
	.asciz	"pathconf"

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

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

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
L_.str.6:                               ## @.str.6
	.asciz	"open"

L_.str.7:                               ## @.str.7
	.asciz	"close"

	.comm	__PC_NO_TRUNC,4,2               ## @_PC_NO_TRUNC
	.comm	_errno,8,3                      ## @errno
	.comm	_ENAMETOOLONG,8,3               ## @ENAMETOOLONG
L_.str.8:                               ## @.str.8
	.asciz	"rename"

L_.str.9:                               ## @.str.9
	.asciz	"unlink"

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

	.no_dead_strip	_rename_nametoolong
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rename_nametoolong
_rename_nametoolong:                    ; @rename_nametoolong
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_FSTYPE_RUMPFS
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_skip
LBB0_2:
	mov	x0, x19
	bl	_rump_sys_chdir
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_4:
Lloh4:
	adrp	x8, __PC_NAME_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, __PC_NAME_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_rump_sys_pathconf
	mov	x19, x0
	cmn	x0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_6:
	add	x20, x19, #1
	add	x0, x19, #2
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_8:
	mov	x0, x19
	mov	w1, #97
	mov	x2, x20
	bl	_memset
	strb	wzr, [x19, x20]
Lloh13:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w2, #438
	bl	_rump_sys_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_10:
	mov	x0, x20
	bl	_rump_sys_close
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_12:
Lloh25:
	adrp	x8, __PC_NO_TRUNC@GOTPAGE
Lloh26:
	ldr	x8, [x8, __PC_NO_TRUNC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_rump_sys_pathconf
	cmn	x0, #1
	b.eq	LBB0_15
; %bb.13:
	mov	x20, x0
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_rump_sys_rename
	cbz	x20, LBB0_20
; %bb.14:
	cmn	w0, #1
	b.ne	LBB0_17
	b	LBB0_16
LBB0_15:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_atf_tc_fail_errno
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_rump_sys_rename
	cmn	w0, #1
	b.ne	LBB0_17
LBB0_16:
Lloh36:
	adrp	x8, _errno@GOTPAGE
Lloh37:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
Lloh39:
	adrp	x9, _ENAMETOOLONG@GOTPAGE
Lloh40:
	ldr	x9, [x9, _ENAMETOOLONG@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
LBB0_17:
Lloh42:
	adrp	x0, l_.str.8@PAGE
Lloh43:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_18:
	bl	_atf_tc_fail_errno
LBB0_19:
	mov	x0, x19
	bl	_free
Lloh44:
	adrp	x0, l_.str.10@PAGE
Lloh45:
	add	x0, x0, l_.str.10@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rump_sys_chdir
LBB0_20:
	mov	x0, x19
	bl	_rump_sys_unlink
	cmn	w0, #1
	b.ne	LBB0_19
; %bb.21:
Lloh46:
	adrp	x0, l_.str.9@PAGE
Lloh47:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rename not supported by file system"

l_.str.1:                               ; @.str.1
	.asciz	"chdir mountpoint"

l_.str.2:                               ; @.str.2
	.asciz	"."

	.comm	__PC_NAME_MAX,4,2               ; @_PC_NAME_MAX
l_.str.3:                               ; @.str.3
	.asciz	"pathconf"

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

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

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
l_.str.6:                               ; @.str.6
	.asciz	"open"

l_.str.7:                               ; @.str.7
	.asciz	"close"

	.comm	__PC_NO_TRUNC,4,2               ; @_PC_NO_TRUNC
	.comm	_errno,8,3                      ; @errno
	.comm	_ENAMETOOLONG,8,3               ; @ENAMETOOLONG
l_.str.8:                               ; @.str.8
	.asciz	"rename"

l_.str.9:                               ; @.str.9
	.asciz	"unlink"

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

	.no_dead_strip	_rename_nametoolong
.subsections_via_symbols
