	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perform_zone_add
_perform_zone_add:                      ## @perform_zone_add
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_find_arg2
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-40(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_parse_arg_name
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	-56(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_local_zone_str2type
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_lock_rw_wrlock
	movq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movl	-40(%rbp), %ecx
	movq	_LDNS_RR_CLASS_IN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	%r14, %rdi
	callq	_local_zones_find
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_lock_rw_wrlock
	movl	-36(%rbp), %eax
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_lock_rw_unlock
	movq	-48(%rbp), %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_lock_rw_unlock
	movl	$1, %r12d
	jmp	LBB0_8
LBB0_3:
	movq	-56(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ssl_printf
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_8
LBB0_6:
	movq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movl	-40(%rbp), %ecx
	movl	(%rbx), %r8d
	movl	-36(%rbp), %r9d
	movq	%r14, %rdi
	callq	_local_zones_add_zone
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_lock_rw_unlock
	movl	$1, %r12d
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ssl_printf
LBB0_8:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error not a zone type. %s\n"

	.comm	_LDNS_RR_CLASS_IN,4,2           ## @LDNS_RR_CLASS_IN
L_.str.1:                               ## @.str.1
	.asciz	"error out of memory\n"

	.no_dead_strip	_perform_zone_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perform_zone_add
_perform_zone_add:                      ; @perform_zone_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #16
	mov	x1, x21
	bl	_find_arg2
	cbz	w0, LBB0_10
; %bb.1:
	add	x2, sp, #40
	add	x3, sp, #24
	add	x4, sp, #36
	mov	x0, x20
	mov	x1, x21
	bl	_parse_arg_name
	cbz	w0, LBB0_10
; %bb.2:
	ldr	x0, [sp, #16]
	add	x1, sp, #12
	bl	_local_zone_str2type
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_lock_rw_wrlock
	ldr	x1, [sp, #40]
	ldr	x2, [sp, #24]
	ldr	w3, [sp, #36]
Lloh0:
	adrp	x22, _LDNS_RR_CLASS_IN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LDNS_RR_CLASS_IN@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x19
	bl	_local_zones_find
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_lock_rw_wrlock
	ldr	w8, [sp, #12]
	str	w8, [x21]
	mov	x0, x20
	bl	_lock_rw_unlock
	ldr	x0, [sp, #40]
	bl	_free
	mov	x0, x19
	bl	_lock_rw_unlock
	mov	w0, #1
	b	LBB0_10
LBB0_5:
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ssl_printf
	ldr	x0, [sp, #40]
	bl	_free
	b	LBB0_9
LBB0_6:
	ldr	x1, [sp, #40]
	ldr	x2, [sp, #24]
	ldr	w3, [sp, #36]
	ldr	w4, [x22]
	ldr	w5, [sp, #12]
	mov	x0, x19
	bl	_local_zones_add_zone
	mov	x21, x0
	mov	x0, x19
	bl	_lock_rw_unlock
	cbz	w21, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ssl_printf
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error not a zone type. %s\n"

	.comm	_LDNS_RR_CLASS_IN,4,2           ; @LDNS_RR_CLASS_IN
l_.str.1:                               ; @.str.1
	.asciz	"error out of memory\n"

	.no_dead_strip	_perform_zone_add
.subsections_via_symbols
