	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tncs_read_config
_tncs_read_config:                      ## @tncs_read_config
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_TNC_CONFIG_FILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-72(%rbp), %rsi
	callq	_os_readfile
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_14
## %bb.2:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r14
	addq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r15, %r13
	jmp	LBB0_5
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, (%r13)
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	%r13, %r15
	cmpq	%r14, %r13
	jae	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %eax
	cmpb	$10, %al
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$13, %al
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r14, %r13
	jae	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, -44(%rbp)
	addq	$4, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r13, %rdx
	leaq	-44(%rbp), %rcx
	callq	_tncs_parse_imv
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	cmoveq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%rax, (%r12)
	movq	%rax, %r12
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	jmp	LBB0_4
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_free
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_15:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_16:
	movl	$-1, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TNC_CONFIG_FILE,4,2            ## @TNC_CONFIG_FILE
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TNC: Could not open TNC configuration file '%s'"

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

	.no_dead_strip	_tncs_read_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tncs_read_config
_tncs_read_config:                      ; @tncs_read_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x21, _TNC_CONFIG_FILE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TNC_CONFIG_FILE@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_os_readfile
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	w21, #0
	mov	x26, #0
	add	x25, x20, x8
	mov	x24, x20
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x23]
	mov	x0, x24
	mov	x1, x22
	mov	w2, #4
	bl	_os_strncmp
	cbz	x0, LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x23, #1
	cmp	x24, x25
	b.hs	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x23, x24
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x23]
	cmp	w8, #10
	ccmp	w8, #13, #4, ne
	ccmp	x23, x25, #2, ne
	b.hs	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x23, x23, #1
	b	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [sp, #4]
	add	x1, x24, #4
	add	x3, sp, #4
	mov	x0, x21
	mov	x2, x23
	bl	_tncs_parse_imv
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x26, #0
	csel	x9, x19, x26, eq
	str	x0, [x9]
	cbz	w8, LBB0_12
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	cbnz	w8, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	mov	x26, x0
	b	LBB0_4
LBB0_13:
	mov	x0, x20
	bl	_os_free
	mov	w0, #0
	b	LBB0_16
LBB0_14:
Lloh4:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x21]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TNC_CONFIG_FILE,4,2            ; @TNC_CONFIG_FILE
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TNC: Could not open TNC configuration file '%s'"

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

	.no_dead_strip	_tncs_read_config
.subsections_via_symbols
