	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tfhinval
_tfhinval:                              ## @tfhinval
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_srandom
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	movq	%r14, %rdi
	callq	_rump_sys_chdir
	movl	%eax, %edi
	callq	_RL
	movq	$0, -24(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-24(%rbp), %rdx
	xorl	%esi, %esi
	callq	_rump_sys_getfh
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_tc_skip
	jmp	LBB0_5
LBB0_3:
	movq	_E2BIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_5:
	movq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_tests_makegarbage
	movq	-24(%rbp), %rsi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rump_sys_fhopen
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %edi
	callq	_rump_sys_close
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	callq	_rump_sys_chdir
	movl	%eax, %edi
	callq	_RL
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RNG seed %lu\n"

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

	.comm	_errno,8,3                      ## @errno
	.comm	_EOPNOTSUPP,8,3                 ## @EOPNOTSUPP
L_.str.2:                               ## @.str.2
	.asciz	"file handles not supported"

	.comm	_E2BIG,8,3                      ## @E2BIG
L_.str.3:                               ## @.str.3
	.asciz	"getfh size"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.4:                               ## @.str.4
	.asciz	"/"

	.no_dead_strip	_tfhinval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tfhinval
_tfhinval:                              ; @tfhinval
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x0, #0
	bl	_time
	mov	x20, x0
	bl	_srandom
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_printf
	mov	x0, x19
	bl	_rump_sys_chdir
	bl	_RL
	str	xzr, [sp, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x1, #0
	bl	_rump_sys_getfh
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.1:
Lloh4:
	adrp	x8, _errno@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EOPNOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_skip
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x9, _E2BIG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _E2BIG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_5:
	ldr	x19, [sp, #8]
	mov	x0, x19
	bl	_malloc
	mov	x20, x0
	mov	x1, x19
	bl	_tests_makegarbage
	ldr	x1, [sp, #8]
Lloh17:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_rump_sys_fhopen
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:
	bl	_rump_sys_close
LBB0_7:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_rump_sys_chdir
	bl	_RL
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RNG seed %lu\n"

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

	.comm	_errno,8,3                      ; @errno
	.comm	_EOPNOTSUPP,8,3                 ; @EOPNOTSUPP
l_.str.2:                               ; @.str.2
	.asciz	"file handles not supported"

	.comm	_E2BIG,8,3                      ; @E2BIG
l_.str.3:                               ; @.str.3
	.asciz	"getfh size"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.4:                               ; @.str.4
	.asciz	"/"

	.no_dead_strip	_tfhinval
.subsections_via_symbols
