	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filesys_create
_filesys_create:                        ## @filesys_create
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_lf_find@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_filesys_lookup_file
	movq	%rax, %rcx
	movl	$-3, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.1:
	movq	_lf_creat@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_filesys_lookup_file
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r14d, %eax
	movl	%eax, (%r15)
	movw	%r13w, 4(%r15)
	movw	%r12w, 6(%r15)
	movq	_cur_inode@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movl	%ecx, 8(%r15)
	movl	%ecx, (%rsp)
	movzwl	%r13w, %r8d
	movzwl	%r12w, %r9d
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_vkprintf
	movl	8(%r15), %edi
	movl	$1, %esi
	callq	_get_inode_f
	movl	$1, (%rax)
	movq	_now@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movl	$-1, 4(%rax)
	movl	8(%r15), %eax
	jmp	LBB0_4
LBB0_2:
	movl	$-2, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lf_find,4,2                    ## @lf_find
	.comm	_lf_creat,4,2                   ## @lf_creat
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_cur_inode,4,2                  ## @cur_inode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"creat: %s, mode = %o, uid = %d, gid = %d, inode = %lld\n"

	.comm	_now,4,2                        ## @now
	.no_dead_strip	_filesys_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function filesys_create
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_filesys_create:                        ; @filesys_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _lf_find@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lf_find@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_filesys_lookup_file
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-3
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _lf_creat@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lf_creat@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_filesys_lookup_file
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x8, _S_IFREG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_IFREG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w22
	str	w8, [x0]
	strh	w21, [x0, #4]
	strh	w19, [x0, #6]
Lloh9:
	adrp	x8, _cur_inode@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cur_inode@GOTPAGEOFF]
	ldr	w6, [x8]
	add	w9, w6, #1
	str	w9, [x8]
	str	w6, [x0, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x19
	bl	_vkprintf
	ldr	w0, [x20, #8]
	mov	w1, #1
	bl	_get_inode_f
	stp	xzr, xzr, [x0, #8]
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
Lloh15:
	adrp	x8, _now@GOTPAGE
Lloh16:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	ldr	w0, [x20, #8]
	b	LBB0_5
LBB0_4:
	mov	w0, #-2
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdrp	Lloh13, Lloh15
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_lf_find,4,2                    ; @lf_find
	.comm	_lf_creat,4,2                   ; @lf_creat
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_cur_inode,4,2                  ; @cur_inode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"creat: %s, mode = %o, uid = %d, gid = %d, inode = %lld\n"

	.comm	_now,4,2                        ; @now
	.no_dead_strip	_filesys_create
.subsections_via_symbols
