	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_local_zones_add_zone           ## -- Begin function local_zones_add_zone
	.p2align	4, 0x90
_local_zones_add_zone:                  ## @local_zones_add_zone
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	movl	%r9d, %ecx
	callq	_local_zone_create
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_lock_rw_wrlock
	movl	%r15d, %r8d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_local_zones_find
	movl	%eax, 4(%rbx)
	movq	%rbx, %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	callq	_rbtree_insert
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_set_kiddo_parents
	movq	%rbx, %rdi
	callq	_lock_rw_unlock
	jmp	LBB0_6
LBB0_3:
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_lock_rw_unlock
	movq	%rbx, %rdi
	callq	_local_zone_delete
	leaq	L_.str(%rip), %rdi
	callq	_log_err
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %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	"internal: duplicate entry in local_zones_add_zone"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_local_zones_add_zone           ; -- Begin function local_zones_add_zone
	.p2align	2
_local_zones_add_zone:                  ; @local_zones_add_zone
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x5
	bl	_local_zone_create
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_lock_rw_wrlock
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	bl	_local_zones_find
	str	w0, [x19, #4]
	add	x1, x19, #8
	mov	x0, x20
	bl	_rbtree_insert
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w1, [x19, #4]
	mov	x0, x19
	mov	x2, x19
	bl	_set_kiddo_parents
	mov	x0, x19
	bl	_lock_rw_unlock
	b	LBB0_5
LBB0_3:
	mov	x0, x23
	bl	_free
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_lock_rw_unlock
	mov	x0, x19
	bl	_local_zone_delete
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal: duplicate entry in local_zones_add_zone"

.subsections_via_symbols
