	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_new_tmp_file_name              ## -- Begin function new_tmp_file_name
	.p2align	4, 0x90
_new_tmp_file_name:                     ## @new_tmp_file_name
	.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	_tmpdir@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_strlen
	movl	%eax, %ebx
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	addl	$34, %eax
	movslq	%eax, %rdi
	callq	_sort_malloc
	movq	%rax, %rbx
	movq	(%r15), %r15
	xorl	%eax, %eax
	callq	_getpid
	movq	_new_tmp_file_name.tfcounter(%rip), %r9
	leaq	1(%r9), %rcx
	movq	%rcx, _new_tmp_file_name.tfcounter(%rip)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	callq	_sprintf
	movq	%rbx, %rdi
	callq	_tmp_file_atexit
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_new_tmp_file_name.tfcounter,8,3 ## @new_tmp_file_name.tfcounter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".bsdsort."

	.comm	_tmpdir,8,3                     ## @tmpdir
L_.str.1:                               ## @.str.1
	.asciz	"%s/%s%d.%lu"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_new_tmp_file_name              ; -- Begin function new_tmp_file_name
	.p2align	2
_new_tmp_file_name:                     ; @new_tmp_file_name
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _tmpdir@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tmpdir@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_strlen
	mov	x19, x0
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strlen
	add	w8, w19, w0
	add	w8, w8, #34
	sxtw	x0, w8
	bl	_sort_malloc
	mov	x19, x0
	ldr	x21, [x21]
	bl	_getpid
	mov	x4, x0
	adrp	x8, _new_tmp_file_name.tfcounter@PAGE
	ldr	x5, [x8, _new_tmp_file_name.tfcounter@PAGEOFF]
	add	x9, x5, #1
	str	x9, [x8, _new_tmp_file_name.tfcounter@PAGEOFF]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_sprintf
	mov	x0, x19
	bl	_tmp_file_atexit
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_new_tmp_file_name.tfcounter,8,3 ; @new_tmp_file_name.tfcounter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".bsdsort."

	.comm	_tmpdir,8,3                     ; @tmpdir
l_.str.1:                               ; @.str.1
	.asciz	"%s/%s%d.%lu"

.subsections_via_symbols
