	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auth_zones_cfg
_auth_zones_cfg:                        ## @auth_zones_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	4(%rdi), %r13
	movq	%r13, %rdi
	callq	_lock_rw_wrlock
	movl	40(%r15), %esi
	movq	%r14, %rdi
	callq	_auth_zones_find_or_add_zone
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r12
	cmpq	$0, 32(%r15)
	jne	LBB0_9
## %bb.2:
	cmpq	$0, 24(%r15)
	je	LBB0_3
LBB0_9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_auth_zones_find_or_add_xfer
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	cmpq	$0, 8(%r15)
	je	LBB0_6
LBB0_5:
	movl	$1, (%r14)
LBB0_6:
	movq	%r13, %rdi
	callq	_lock_rw_unlock
	movq	$0, 24(%r12)
	movl	16(%r15), %esi
	movq	%r12, %rdi
	callq	_auth_zone_set_zonefile
	testl	%eax, %eax
	je	LBB0_7
## %bb.12:
	movq	8(%r15), %rax
	movq	%rax, 16(%r12)
	movl	4(%r15), %eax
	movl	%eax, 12(%r12)
	movl	(%r15), %eax
	movl	%eax, 8(%r12)
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.13:
	movl	$1, (%r12)
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_xfer_set_masters
	testl	%eax, %eax
	je	LBB0_8
## %bb.14:
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_xfer_set_masters
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_lock_basic_unlock
	testl	%r14d, %r14d
	je	LBB0_15
LBB0_16:
	addq	$4, %r12
	movl	$1, %ebx
	jmp	LBB0_17
LBB0_10:
	movq	%r13, %rdi
	callq	_lock_rw_unlock
	jmp	LBB0_11
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_8:
	movq	%rbx, %rdi
	callq	_lock_basic_unlock
LBB0_11:
	addq	$4, %r12
	movq	%r12, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_3:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	jne	LBB0_5
	jmp	LBB0_6
LBB0_15:
	addq	$4, %r12
	xorl	%ebx, %ebx
LBB0_17:
	movq	%r12, %r13
LBB0_18:
	movq	%r13, %rdi
	callq	_lock_rw_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_auth_zones_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auth_zones_cfg
_auth_zones_cfg:                        ; @auth_zones_cfg
	.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, x1
	mov	x23, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_lock_rw_wrlock
	ldr	w1, [x21, #40]
	mov	x0, x23
	bl	_auth_zones_find_or_add_zone
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_17
LBB0_3:
	mov	x0, x23
	mov	x1, x19
	bl	_auth_zones_find_or_add_xfer
	mov	x22, x0
	cbz	x0, LBB0_12
; %bb.4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x23]
LBB0_6:
	mov	x0, x20
	bl	_lock_rw_unlock
	str	xzr, [x19, #24]
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_auth_zone_set_zonefile
	cbz	w0, LBB0_13
; %bb.7:
	ldr	x8, [x21, #8]
	str	x8, [x19, #16]
	ldr	d0, [x21]
	str	d0, [x19, #8]
	cbz	x22, LBB0_10
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x22, #16]
	mov	x1, x21
	mov	w2, #0
	bl	_xfer_set_masters
	cbz	w0, LBB0_14
; %bb.9:
	ldr	x0, [x22, #8]
	mov	x1, x21
	mov	w2, #1
	bl	_xfer_set_masters
	mov	x20, x0
	mov	x0, x22
	bl	_lock_basic_unlock
	cbz	w20, LBB0_15
LBB0_10:
	add	x20, x19, #4
	mov	w21, #1
	b	LBB0_16
LBB0_11:
	mov	w21, #0
	b	LBB0_16
LBB0_12:
	mov	x0, x20
	bl	_lock_rw_unlock
	b	LBB0_15
LBB0_13:
	cbz	x22, LBB0_15
LBB0_14:
	mov	x0, x22
	bl	_lock_basic_unlock
LBB0_15:
	mov	w21, #0
	add	x20, x19, #4
LBB0_16:
	mov	x0, x20
	bl	_lock_rw_unlock
	mov	x0, x21
	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
LBB0_17:
	mov	x22, #0
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_5
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_auth_zones_cfg
.subsections_via_symbols
