	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lz_enter_zone_dname
_lz_enter_zone_dname:                   ## @lz_enter_zone_dname
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	movl	%r9d, -308(%rbp)                ## 4-byte Spill
	movl	%r9d, %r8d
	callq	_local_zone_create
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_lock_rw_wrlock
	movq	%rbx, %rdi
	callq	_lock_rw_wrlock
	leaq	4(%r14), %rdi
	movq	%rbx, %rsi
	addq	$4, %rsi
	callq	_rbtree_insert
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_lock_rw_unlock
	jmp	LBB0_5
LBB0_1:
	movq	%r13, %rdi
	callq	_free
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	leaq	-304(%rbp), %rsi
	movq	%r13, %rdi
	callq	_dname_str
	leaq	L_.str.1(%rip), %rdi
	leaq	-304(%rbp), %rsi
	callq	_log_warn
	movq	%rbx, %rdi
	callq	_lock_rw_unlock
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	-308(%rbp), %r8d                ## 4-byte Reload
	callq	_local_zones_find
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_lock_rw_wrlock
	movq	%r14, %rdi
	callq	_lock_rw_unlock
	movq	%rbx, %rdi
	callq	_local_zone_delete
	movq	%r15, %rbx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rax
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"duplicate local-zone %s"

	.no_dead_strip	_lz_enter_zone_dname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lz_enter_zone_dname
_lz_enter_zone_dname:                   ; @lz_enter_zone_dname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x21, x5
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	bl	_local_zone_create
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_lock_rw_wrlock
	mov	x0, x19
	bl	_lock_rw_wrlock
	add	x0, x20, #4
	add	x1, x19, #4
	bl	_rbtree_insert
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_lock_rw_unlock
	b	LBB0_5
LBB0_3:
	mov	x0, x23
	bl	_free
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	b	LBB0_5
LBB0_4:
	add	x1, sp, #8
	mov	x0, x23
	bl	_dname_str
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_log_warn
	mov	x0, x19
	bl	_lock_rw_unlock
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	bl	_local_zones_find
	mov	x21, x0
	bl	_lock_rw_wrlock
	mov	x0, x20
	bl	_lock_rw_unlock
	mov	x0, x19
	bl	_local_zone_delete
	mov	x19, x21
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"duplicate local-zone %s"

	.no_dead_strip	_lz_enter_zone_dname
.subsections_via_symbols
