	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function views_apply_cfg
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_views_apply_cfg
	.p2align	4, 0x90
_views_apply_cfg:                       ## @views_apply_cfg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rsi), %r13
	testq	%r13, %r13
	je	LBB0_16
## %bb.1:
	cmpl	$0, 32(%r13)
	je	LBB0_17
## %bb.2:
	movq	%rdi, %r14
	leaq	-88(%rbp), %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	32(%r13), %esi
	movq	%r14, %rdi
	callq	_views_enter_view_name
	testq	%rax, %rax
	je	LBB0_24
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	24(%r13), %rax
	movq	%rax, 8(%r15)
	cmpq	$0, 16(%r13)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%r13)
	je	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_local_zones_create
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	16(%r13), %rax
	movq	%rax, -80(%rbp)
	movq	8(%r13), %rax
	movq	%rax, -64(%rbp)
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movq	%r15, %rbx
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -88(%rbp)
	movq	(%r13), %r15
	testq	%r15, %r15
	je	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%rax, %r12
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_cfg_str2list_insert
	testl	%eax, %eax
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r15
	movl	4(%rbx), %edi
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_local_zones_apply_cfg
	testl	%eax, %eax
	je	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movq	$0, 16(%r13)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_lock_rw_unlock
	movq	40(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_3
LBB0_16:
	movl	$1, %eax
	jmp	LBB0_25
LBB0_17:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	jmp	LBB0_24
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	movq	%rbx, %rdi
	jmp	LBB0_23
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	movq	%r14, %rdi
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
	callq	_log_err
	movq	%r14, %rdi
	callq	_free
	movq	%r12, %rdi
LBB0_21:
	callq	_free
	movq	%rbx, %rdi
	jmp	LBB0_23
LBB0_22:
	movq	%r15, %rdi
LBB0_23:
	callq	_lock_rw_unlock
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"view without a name"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

L_.str.2:                               ## @.str.2
	.asciz	"nodefault"

L_.str.3:                               ## @.str.3
	.asciz	"failed to insert default zones into local-zone list"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_views_apply_cfg                ; -- Begin function views_apply_cfg
	.p2align	2
_views_apply_cfg:                       ; @views_apply_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x25, [x1, #32]
	cbz	x25, LBB0_16
; %bb.1:
	ldr	w8, [x25, #32]
	cbz	w8, LBB0_17
; %bb.2:
	mov	x20, x0
	add	x8, sp, #8
	add	x21, x8, #8
	mov	w26, #1
Lloh0:
	adrp	x22, l_.str.2@PAGE
Lloh1:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w1, [x25, #32]
	mov	x0, x20
	bl	_views_enter_view_name
	cbz	x0, LBB0_24
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x0
	ldr	x8, [x25, #24]
	str	x8, [x0, #8]
	ldr	x8, [x25, #16]
	cbnz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_15
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_local_zones_create
	str	w0, [x19, #4]
	cbz	w0, LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x8, [x25, #16]
	str	x8, [sp, #16]
	ldr	x8, [x25, #8]
	str	x8, [sp, #32]
	ldr	x8, [x25]
	str	x8, [sp, #24]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w26, [sp, #8]
	ldr	x27, [x25]
	cbz	x27, LBB0_13
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x27]
	bl	_strdup
	cbz	x0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x23, x0
	mov	x0, x22
	bl	_strdup
	cbz	x0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_cfg_str2list_insert
	cbz	w0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x27, [x27, #8]
	cbnz	x27, LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_local_zones_apply_cfg
	cbz	w0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	stp	xzr, xzr, [x25]
	str	xzr, [x25, #16]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_lock_rw_unlock
	ldr	x25, [x25, #40]
	cbnz	x25, LBB0_3
LBB0_16:
	mov	w0, #1
	b	LBB0_24
LBB0_17:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	b	LBB0_23
LBB0_18:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	b	LBB0_22
LBB0_19:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	mov	x0, x23
	b	LBB0_21
LBB0_20:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_err
	mov	x0, x23
	bl	_free
	mov	x0, x24
LBB0_21:
	bl	_free
LBB0_22:
	mov	x0, x19
	bl	_lock_rw_unlock
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"view without a name"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

l_.str.2:                               ; @.str.2
	.asciz	"nodefault"

l_.str.3:                               ; @.str.3
	.asciz	"failed to insert default zones into local-zone list"

.subsections_via_symbols
