	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_creat                     ## -- Begin function file_creat
	.p2align	4, 0x90
_file_creat:                            ## @file_creat
	.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
	movq	%rdi, %r12
	movq	_FILEBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	4(%rdi), %r14d
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_TRUNC@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movl	(%rdi), %edi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r14d, %edx
	callq	_open
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.1:
	movl	(%r12), %edi
	movl	16(%r12), %esi
	callq	_unlnk_exist
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_nodirs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r12), %esi
	movl	(%r12), %edi
	movl	8(%r12), %edx
	callq	_chk_path
	testq	%rax, %rax
	js	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r13), %esi
	movl	%r14d, %edx
	callq	_open
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_6:
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_syswarn
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FILEBITS,4,2                   ## @FILEBITS
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_errno,4,2                      ## @errno
	.comm	_nodirs,8,3                     ## @nodirs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to create %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_creat                     ; -- Begin function file_creat
	.p2align	2
_file_creat:                            ; @file_creat
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _FILEBITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILEBITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w0, w9, [x0]
	and	w20, w8, w9
Lloh3:
	adrp	x22, _O_WRONLY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _O_WRONLY@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _O_CREAT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _O_CREAT@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh7:
	adrp	x24, _O_TRUNC@GOTPAGE
Lloh8:
	ldr	x24, [x24, _O_TRUNC@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x2, x20
	bl	_open
	tbz	w0, #31, LBB0_8
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x19, #16]
	bl	_unlnk_exist
	cbnz	x0, LBB0_7
; %bb.2:
Lloh12:
	adrp	x25, _errno@GOTPAGE
Lloh13:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh14:
	adrp	x26, _nodirs@GOTPAGE
Lloh15:
	ldr	x26, [x26, _nodirs@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w1, w8, w9
	mov	x2, x20
	bl	_open
	tbz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x25]
	ldr	x8, [x26]
	cbnz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19]
	ldp	w2, w1, [x19, #8]
	bl	_chk_path
	tbz	x0, #63, LBB0_3
LBB0_6:
	ldr	w3, [x19]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	x1, x21
	bl	_syswarn
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FILEBITS,4,2                   ; @FILEBITS
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_errno,4,2                      ; @errno
	.comm	_nodirs,8,3                     ; @nodirs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to create %s"

.subsections_via_symbols
