	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_a_test_path
_gen_a_test_path:                       ## @gen_a_test_path
	.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	%rdi, %rbx
	movq	_TEST_PATH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rcx
	cmovneq	%rax, %rcx
	movq	_test_path_idx@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_snprintf
	incl	(%r15)
	movq	%rbx, %rdi
	callq	_mkstemp
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_ATF_REQUIRE_MSG
	movq	%rbx, %rdi
	callq	_unlink
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATF_REQUIRE_MSG                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TEST_PATH_LEN,4,2              ## @TEST_PATH_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/tmp.XXXXXX%d"

L_.str.1:                               ## @.str.1
	.asciz	"TMPDIR"

L_.str.2:                               ## @.str.2
	.asciz	"/tmp"

	.comm	_test_path_idx,4,2              ## @test_path_idx
L_.str.3:                               ## @.str.3
	.asciz	"mkstemp failed; errno=%d"

	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"unlink failed; errno=%d"

	.no_dead_strip	_gen_a_test_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_a_test_path
_gen_a_test_path:                       ; @gen_a_test_path
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _TEST_PATH_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEST_PATH_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x3, x8, x0, eq
Lloh7:
	adrp	x21, _test_path_idx@GOTPAGE
Lloh8:
	ldr	x21, [x21, _test_path_idx@GOTPAGEOFF]
	ldr	w4, [x21]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_snprintf
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x19
	bl	_mkstemp
	cmn	w0, #1
	cset	w0, ne
Lloh11:
	adrp	x20, _errno@GOTPAGE
Lloh12:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	mov	x0, x19
	bl	_unlink
	cmp	x0, #0
	cset	w0, eq
	ldr	w2, [x20]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	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
	b	_ATF_REQUIRE_MSG
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TEST_PATH_LEN,4,2              ; @TEST_PATH_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/tmp.XXXXXX%d"

l_.str.1:                               ; @.str.1
	.asciz	"TMPDIR"

l_.str.2:                               ; @.str.2
	.asciz	"/tmp"

	.comm	_test_path_idx,4,2              ; @test_path_idx
l_.str.3:                               ; @.str.3
	.asciz	"mkstemp failed; errno=%d"

	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"unlink failed; errno=%d"

	.no_dead_strip	_gen_a_test_path
.subsections_via_symbols
