	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_stats
_open_stats:                            ## @open_stats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	$0, -16(%rbp)
	movq	_slave_stats_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_hdb_db_dir
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %rdi
	movl	%eax, %edx
	callq	_asprintf
	movq	-16(%rbp), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %r8
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	callq	_krb5_config_get_string_default
	movq	%rax, %rdi
LBB0_2:
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	movq	-16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_slave_stats_file,8,3           ## @slave_stats_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/slaves-stats"

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

L_.str.2:                               ## @.str.2
	.asciz	"iprop-stats"

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

	.no_dead_strip	_open_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_stats
_open_stats:                            ; @open_stats
	.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, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _slave_stats_file@GOTPAGE
Lloh1:
	ldr	x8, [x8, _slave_stats_file@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_hdb_db_dir
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	ldr	x2, [sp, #8]
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh7:
	adrp	x4, l_.str.2@PAGE
Lloh8:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x5, #0
	bl	_krb5_config_get_string_default
LBB0_2:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	mov	x19, x0
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_slave_stats_file,8,3           ; @slave_stats_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/slaves-stats"

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

l_.str.2:                               ; @.str.2
	.asciz	"iprop-stats"

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

	.no_dead_strip	_open_stats
.subsections_via_symbols
