	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_nametoolong
_create_nametoolong:                    ## @create_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, %rdi
	callq	_rump_sys_chdir
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_2:
	movq	__PC_NAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_rump_sys_pathconf
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_4:
	leaq	1(%rbx), %r15
	addq	$2, %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_6:
	movq	%r14, %rdi
	movl	$97, %esi
	movq	%r15, %rdx
	callq	_memset
	movb	$0, (%r14,%r15)
	movq	__PC_NO_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_rump_sys_pathconf
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_8:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_rump_sys_open
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_11:
	movl	%eax, %edi
	callq	_rump_sys_close
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_13:
	movq	%r14, %rdi
	callq	_rump_sys_unlink
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.6(%rip), %rdi
LBB0_15:
	callq	_atf_tc_fail_errno
LBB0_16:
	movq	%r14, %rdi
	callq	_free
	leaq	L_.str.7(%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	"chdir mountpoint"

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

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

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

	.comm	__PC_NO_TRUNC,4,2               ## @_PC_NO_TRUNC
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_errno,8,3                      ## @errno
	.comm	_ENAMETOOLONG,8,3               ## @ENAMETOOLONG
L_.str.4:                               ## @.str.4
	.asciz	"open"

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

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

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

	.no_dead_strip	_create_nametoolong
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_nametoolong
_create_nametoolong:                    ; @create_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	x0, x1
	bl	_rump_sys_chdir
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_2:
Lloh2:
	adrp	x8, __PC_NAME_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, __PC_NAME_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rump_sys_pathconf
	mov	x19, x0
	cmn	x0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_4:
	add	x20, x19, #1
	add	x0, x19, #2
	bl	_malloc
	mov	x19, x0
	cbnz	x0, 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:
	mov	x0, x19
	mov	w1, #97
	mov	x2, x20
	bl	_memset
	strb	wzr, [x19, x20]
Lloh11:
	adrp	x8, __PC_NO_TRUNC@GOTPAGE
Lloh12:
	ldr	x8, [x8, __PC_NO_TRUNC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rump_sys_pathconf
	mov	x20, x0
	cmn	x0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_8:
Lloh18:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #438
	bl	_rump_sys_open
	cbz	x20, LBB0_12
; %bb.9:
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _ENAMETOOLONG@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ENAMETOOLONG@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
LBB0_11:
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_12:
	bl	_rump_sys_close
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.13:
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_14:
	mov	x0, x19
	bl	_rump_sys_unlink
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.15:
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_16:
	bl	_atf_tc_fail_errno
LBB0_17:
	mov	x0, x19
	bl	_free
Lloh36:
	adrp	x0, l_.str.7@PAGE
Lloh37:
	add	x0, x0, l_.str.7@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rump_sys_chdir
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chdir mountpoint"

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

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

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

	.comm	__PC_NO_TRUNC,4,2               ; @_PC_NO_TRUNC
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_errno,8,3                      ; @errno
	.comm	_ENAMETOOLONG,8,3               ; @ENAMETOOLONG
l_.str.4:                               ; @.str.4
	.asciz	"open"

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

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

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

	.no_dead_strip	_create_nametoolong
.subsections_via_symbols
