	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtfs_genfile                   ## -- Begin function dtfs_genfile
	.p2align	4, 0x90
_dtfs_genfile:                          ## @dtfs_genfile
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_VDIR@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 24(%r12)
	setne	%dil
	callq	_assert
	movq	$0, -56(%rbp)
	movl	8(%r14), %edi
	leaq	-56(%rbp), %rsi
	callq	_puffs_cred_getuid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	%ebx, %eax
	cmpq	%rax, (%r15)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_dtfs_newdir
	movq	%rax, %rbx
	movq	%r12, (%rax)
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_dtfs_newfile
	movq	%rax, %rbx
LBB0_3:
	movq	%r12, %rdi
	callq	_puffs_pn_getmntspecific
	movq	%rax, %r13
	movq	24(%r12), %rdi
	movq	%rbx, %rsi
	callq	_puffs_pn_new
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_5:
	movl	(%r13), %edx
	leal	1(%rdx), %eax
	movl	%eax, (%r13)
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dtfs_baseattrs
	movl	$24, %edi
	callq	_emalloc
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movl	(%r14), %esi
	movl	4(%r14), %edi
	callq	_estrndup
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_strlen
	movl	%eax, 12(%rbx)
	movq	%r12, (%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dtfs_adddent
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r15)
	movl	8(%r12), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VDIR,8,3                       ## @VDIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getnewpnode"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtfs_genfile                   ; -- Begin function dtfs_genfile
	.p2align	2
_dtfs_genfile:                          ; @dtfs_genfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _VDIR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VDIR@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	str	xzr, [sp, #8]
	ldr	w0, [x20, #8]
	add	x1, sp, #8
	bl	_puffs_cred_getuid
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	cmp	x8, w21, uxtw
	b.ne	LBB0_2
; %bb.1:
	bl	_dtfs_newdir
	mov	x22, x0
	str	x19, [x0]
	b	LBB0_3
LBB0_2:
	bl	_dtfs_newfile
	mov	x22, x0
LBB0_3:
	mov	x0, x19
	bl	_puffs_pn_getmntspecific
	mov	x23, x0
	ldr	x0, [x19, #24]
	mov	x1, x22
	bl	_puffs_pn_new
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
	ldr	w2, [x23]
	add	w8, w2, #1
	str	w8, [x23]
	mov	x0, x22
	mov	x1, x21
	bl	_dtfs_baseattrs
	mov	w0, #24
	bl	_emalloc
	mov	x21, x0
	str	x22, [x0, #16]
	ldp	w1, w0, [x20]
	bl	_estrndup
	str	w0, [x21, #8]
	bl	_strlen
	str	w0, [x21, #12]
	str	x19, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_dtfs_adddent
	ldr	x8, [sp, #8]
	str	x8, [x22, #16]
	ldr	w8, [x19, #8]
	str	w8, [x22, #8]
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VDIR,8,3                       ; @VDIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getnewpnode"

.subsections_via_symbols
