	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_autr_read_file                 ## -- Begin function autr_read_file
	.p2align	4, 0x90
_autr_read_file:                        ## @autr_read_file
	.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
	pushq	%rax
	movl	$10312, %eax                    ## imm = 0x2848
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -10308(%rbp)
	movq	$0, -10328(%rbp)
	movq	$0, -10320(%rbp)
	movq	$0, -10336(%rbp)
	movq	$0, -10344(%rbp)
	movq	$0, -10352(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, -10304(%rbp)              ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_verbose
	leaq	-10288(%rbp), %rbx
	leaq	-10308(%rbp), %r13
	leaq	-10328(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$10240, %esi                    ## imm = 0x2800
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_read_multiline
	movl	%eax, -10292(%rbp)
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_parse_var_line
	movl	%eax, -10292(%rbp)
	cmpl	$1, %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_str_contains_data
	testl	%eax, %eax
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	-10320(%rbp), %rsi
	leaq	-10344(%rbp), %rdx
	callq	_handle_origin
	testq	%rax, %rax
	jne	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -10292(%rbp)
	movq	-10320(%rbp), %rcx
	movq	-10344(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-10304(%rbp), %rdx              ## 8-byte Reload
	leaq	-10336(%rbp), %r9
	leaq	-10292(%rbp), %rax
	pushq	%rax
	leaq	-10352(%rbp), %rax
	pushq	%rax
	callq	_load_trustanchor
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-10328(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %rcx
	jne	LBB0_17
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -10328(%rbp)
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -10292(%rbp)
	jne	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-10308(%rbp), %edx
	leaq	L_.str.5(%rip), %rdi
	movq	-10304(%rbp), %rsi              ## 8-byte Reload
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_3
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_25
LBB0_8:
	movl	-10308(%rbp), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	movq	-10304(%rbp), %rsi              ## 8-byte Reload
	xorl	%eax, %eax
	callq	_log_err
LBB0_18:
	movq	%r12, %rdi
	callq	_fclose
	movq	-10320(%rbp), %rdi
	callq	_free
	movq	-10336(%rbp), %rdi
	callq	_free
	jmp	LBB0_25
LBB0_20:
	movq	%r12, %rdi
	callq	_fclose
	movq	-10320(%rbp), %rdi
	callq	_free
	movq	-10336(%rbp), %rdi
	callq	_free
	movq	-10328(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.22:
	callq	_lock_basic_lock
	movq	-10328(%rbp), %rdi
	callq	_autr_assemble
	movl	%eax, %r14d
	movq	-10328(%rbp), %rdi
	callq	_lock_basic_unlock
	movl	$1, %r15d
	testl	%r14d, %r14d
	jne	LBB0_25
## %bb.23:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_24
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	movq	-10304(%rbp), %rsi              ## 8-byte Reload
	callq	_log_warn
	movq	%r12, %rdi
	callq	_fclose
	movq	-10320(%rbp), %rdi
	callq	_free
	movq	-10336(%rbp), %rdi
	callq	_free
	movl	$1, %r15d
	jmp	LBB0_25
LBB0_21:
	leaq	L_.str.7(%rip), %rdi
LBB0_24:
	xorl	%r15d, %r15d
	movq	-10304(%rbp), %rsi              ## 8-byte Reload
	xorl	%eax, %eax
	callq	_log_err
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movl	%r15d, %eax
	addq	$10312, %rsp                    ## imm = 0x2848
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.6(%rip), %rdi
	xorl	%r15d, %r15d
	movq	-10304(%rbp), %rsi              ## 8-byte Reload
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_18
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"unable to open %s for reading: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.2:                               ## @.str.2
	.asciz	"reading autotrust anchor file %s"

L_.str.3:                               ## @.str.3
	.asciz	"could not parse auto-trust-anchor-file %s line %d"

L_.str.4:                               ## @.str.4
	.asciz	"trust anchor %s has been revoked"

L_.str.5:                               ## @.str.5
	.asciz	"failed to load trust anchor from %s at line %i, skipping"

L_.str.6:                               ## @.str.6
	.asciz	"file %s has mismatching data inside: the file may only contain keys for one name, remove keys for other domain names"

L_.str.7:                               ## @.str.7
	.asciz	"failed to read %s"

L_.str.8:                               ## @.str.8
	.asciz	"malloc failure assembling %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_autr_read_file                 ; -- Begin function autr_read_file
	.p2align	2
_autr_read_file:                        ; @autr_read_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #10320
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #2128
	mov	x19, x1
	mov	x21, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	wzr, [sp, #68]
	str	xzr, [sp, #56]
	stp	xzr, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #16]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x0
Lloh7:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_verbose
Lloh12:
	adrp	x22, l_.str.5@PAGE
Lloh13:
	add	x22, x22, l_.str.5@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #72
	add	x3, sp, #68
	mov	w1, #10240
	mov	x2, x20
	bl	_read_multiline
	str	w0, [sp, #52]
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_22
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #72
	add	x2, sp, #56
	mov	x1, x21
	bl	_parse_var_line
	str	w0, [sp, #52]
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #2
	b.eq	LBB0_25
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #72
	mov	w1, #59
	bl	_str_contains_data
	cbz	w0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #72
	add	x1, sp, #40
	add	x2, sp, #24
	bl	_handle_origin
	cbnz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [sp, #52]
	ldr	x3, [sp, #40]
	ldr	x4, [sp, #24]
	add	x1, sp, #72
	add	x5, sp, #32
	add	x6, sp, #16
	add	x7, sp, #52
	mov	x0, x21
	mov	x2, x19
	bl	_load_trustanchor
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x8, x0
	b.ne	LBB0_28
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [sp, #56]
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #52]
	cbnz	w8, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #68]
	str	x8, [sp]
	mov	x0, x22
	mov	x1, x19
	bl	_log_err
	b	LBB0_2
LBB0_15:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_16:
	mov	x1, x19
	bl	_log_err
	b	LBB0_19
LBB0_17:
	ldr	w8, [sp, #68]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_18:
	mov	x1, x19
	bl	_log_err
	mov	x0, x20
	bl	_fclose
	ldr	x0, [sp, #40]
	bl	_free
	ldr	x0, [sp, #32]
	bl	_free
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.21:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #2128
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	x0, x20
	bl	_fclose
	ldr	x0, [sp, #40]
	bl	_free
	ldr	x0, [sp, #32]
	bl	_free
	ldr	x0, [sp, #56]
	cbz	x0, LBB0_26
; %bb.23:
	bl	_lock_basic_lock
	ldr	x0, [sp, #56]
	bl	_autr_assemble
	mov	x20, x0
	ldr	x0, [sp, #56]
	bl	_lock_basic_unlock
	cbz	w20, LBB0_27
; %bb.24:
	mov	w0, #1
	b	LBB0_20
LBB0_25:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_log_warn
	mov	x0, x20
	bl	_fclose
	ldr	x0, [sp, #40]
	bl	_free
	ldr	x0, [sp, #32]
	bl	_free
	mov	w0, #1
	b	LBB0_20
LBB0_26:
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_27:
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_16
LBB0_28:
Lloh30:
	adrp	x0, l_.str.6@PAGE
Lloh31:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_18
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"unable to open %s for reading: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.2:                               ; @.str.2
	.asciz	"reading autotrust anchor file %s"

l_.str.3:                               ; @.str.3
	.asciz	"could not parse auto-trust-anchor-file %s line %d"

l_.str.4:                               ; @.str.4
	.asciz	"trust anchor %s has been revoked"

l_.str.5:                               ; @.str.5
	.asciz	"failed to load trust anchor from %s at line %i, skipping"

l_.str.6:                               ; @.str.6
	.asciz	"file %s has mismatching data inside: the file may only contain keys for one name, remove keys for other domain names"

l_.str.7:                               ; @.str.7
	.asciz	"failed to read %s"

l_.str.8:                               ; @.str.8
	.asciz	"malloc failure assembling %s"

.subsections_via_symbols
