	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tncs_global_init               ## -- Begin function tncs_global_init
	.p2align	4, 0x90
_tncs_global_init:                      ## @tncs_global_init
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_tncs_global_data@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	$8, %edi
	callq	_os_zalloc
	movq	%rax, (%rbx)
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %rdi
	callq	_tncs_read_config
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_tncs_load_imv
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_10
LBB0_3:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_7:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_8:
	xorl	%eax, %eax
	callq	_tncs_global_deinit
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_tncs_global_data,8,3           ## @tncs_global_data
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TNC: Failed to read TNC configuration"

L_.str.1:                               ## @.str.1
	.asciz	"TNC: Failed to load IMV '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tncs_global_init               ; -- Begin function tncs_global_init
	.p2align	2
_tncs_global_init:                      ; @tncs_global_init
	.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
Lloh0:
	adrp	x19, _tncs_global_data@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tncs_global_data@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_11
LBB0_2:
	mov	w0, #8
	bl	_os_zalloc
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.3:
	bl	_tncs_read_config
	tbnz	x0, #63, LBB0_7
; %bb.4:
	ldr	x8, [x19]
	ldr	x19, [x8]
	cbz	x19, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_tncs_load_imv
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_5
	b	LBB0_1
LBB0_7:
Lloh2:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_wpa_printf
	bl	_tncs_global_deinit
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_tncs_global_data,8,3           ; @tncs_global_data
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TNC: Failed to read TNC configuration"

l_.str.1:                               ; @.str.1
	.asciz	"TNC: Failed to load IMV '%s'"

.subsections_via_symbols
