	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_file
_make_file:                             ## @make_file
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-40(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
	leaq	L_.str(%rip), %r15
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	incl	%eax
	movslq	%eax, %rdi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcat
	movq	%rbx, %rdi
	callq	_mkstemp
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_8:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_ftruncate
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_10:
	movq	%rbx, %rdi
	callq	_unlink
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_12:
	movq	%rbx, %rdi
	callq	_free
LBB0_13:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-40(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_ftruncate
	testq	%rax, %rax
	jns	LBB0_13
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/flocktempXXXXXX"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.1:                               ## @.str.1
	.asciz	"open(%s)"

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

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

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

	.no_dead_strip	_make_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_file
_make_file:                             ; @make_file
	.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	x19, x1
	mov	x22, x0
	add	x1, sp, #8
	bl	_stat
	cbz	x0, LBB0_9
LBB0_1:
	mov	x0, x22
	bl	_strlen
	mov	x20, x0
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strlen
	add	w8, w20, w0
	add	w8, w8, #1
	sxtw	x0, w8
	bl	_malloc
	mov	x21, x0
	mov	x1, x22
	bl	_strcpy
	mov	x0, x21
	mov	x1, x23
	bl	_strcat
	mov	x0, x21
	bl	_mkstemp
	mov	x20, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_ftruncate
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	mov	x0, x21
	bl	_unlink
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	mov	x0, x21
	bl	_free
LBB0_8:
	mov	x0, x20
	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
LBB0_9:
	ldr	w0, [sp, #8]
	bl	_S_ISREG
	cbz	x0, LBB0_1
; %bb.10:
Lloh8:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_open
	mov	x20, x0
	tbz	w0, #31, LBB0_12
; %bb.11:
	str	x22, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_ftruncate
	tbz	x0, #63, LBB0_8
; %bb.13:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/flocktempXXXXXX"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.1:                               ; @.str.1
	.asciz	"open(%s)"

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

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

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

	.no_dead_strip	_make_file
.subsections_via_symbols
