	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfr_write_after_update
_xfr_write_after_update:                ## @xfr_write_after_update
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_lock_basic_unlock
	movq	(%rbx), %rdi
	callq	_lock_rw_rdlock
	movq	(%rbx), %rdi
	movl	20(%r13), %esi
	movl	12(%r13), %ecx
	movl	16(%r13), %edx
	callq	_auth_zone_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r15, -1080(%rbp)               ## 8-byte Spill
	movq	%rax, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_lock_rw_rdlock
	movq	%r14, %rdi
	callq	_lock_basic_lock
	movq	(%rbx), %rdi
	callq	_lock_rw_unlock
	movq	(%r12), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.7:
	movq	-1080(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.8:
	cmpb	$0, (%rbx)
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	-1080(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_strlen
	addq	%rax, %r14
LBB0_11:
	movq	%r14, %rdi
	callq	_strlen
	addq	$-1009, %rax                    ## imm = 0xFC0F
	cmpq	$-1026, %rax                    ## imm = 0xFBFE
	ja	LBB0_14
## %bb.12:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_verbose
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.6:
	movq	%r15, %rdi
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lock_rw_unlock                 ## TAILCALL
LBB0_1:
	movq	(%rbx), %rdi
	callq	_lock_rw_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.2:
	movq	%r14, %rdi
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lock_basic_lock                ## TAILCALL
LBB0_14:
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str.1(%rip), %rdx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rcx
	movl	%eax, %r8d
	callq	_snprintf
	movq	(%r13), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.15:
	leaq	-1072(%rbp), %rsi
	movq	%r13, %rdi
	callq	_auth_zone_write_chunks
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	leaq	-1072(%rbp), %rdi
	callq	_unlink
	movq	%r15, %rdi
	callq	_lock_rw_unlock
	jmp	LBB0_17
LBB0_19:
	leaq	-1072(%rbp), %rsi
	movq	%r12, %rdi
	callq	_auth_zone_write_file
	testl	%eax, %eax
	je	LBB0_20
LBB0_17:
	leaq	-1072(%rbp), %rdi
	movq	%r14, %rsi
	callq	_rename
	testq	%rax, %rax
	jns	LBB0_22
## %bb.18:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_log_err
	movq	%rbx, %rdi
	jmp	LBB0_21
LBB0_20:
	leaq	-1072(%rbp), %rdi
LBB0_21:
	callq	_unlink
LBB0_22:
	movq	%r15, %rdi
	callq	_lock_rw_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.23:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tmpfilename too long, cannot update  zonefile %s"

L_.str.1:                               ## @.str.1
	.asciz	"%s.tmp%u"

L_.str.2:                               ## @.str.2
	.asciz	"could not rename(%s, %s): %s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_xfr_write_after_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfr_write_after_update
_xfr_write_after_update:                ; @xfr_write_after_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #1040
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x24, [x1, #8]
	add	x20, x0, #8
	mov	x0, x20
	bl	_lock_basic_unlock
	ldr	x0, [x23]
	bl	_lock_rw_rdlock
	ldr	x0, [x23]
	ldp	w2, w1, [x21, #16]
	ldr	w3, [x21, #12]
	bl	_auth_zone_find
	cbz	x0, LBB0_11
; %bb.1:
	mov	x22, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_lock_rw_rdlock
	mov	x0, x20
	bl	_lock_basic_lock
	ldr	x0, [x23]
	bl	_lock_rw_unlock
	ldr	x20, [x22]
	cbz	x20, LBB0_9
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x23, [x24]
	cbz	x23, LBB0_7
; %bb.4:
	ldrb	w8, [x23]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_strncmp
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x24]
	bl	_strlen
	add	x20, x20, x0
LBB0_7:
	mov	x0, x20
	bl	_strlen
	sub	x8, x0, #1009
	cmn	x8, #1026
	b.hi	LBB0_13
; %bb.8:
Lloh3:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_verbose
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.10:
	mov	x0, x19
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	b	_lock_rw_unlock
LBB0_11:
	ldr	x0, [x23]
	bl	_lock_rw_unlock
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.12:
	mov	x0, x20
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	b	_lock_basic_lock
LBB0_13:
	bl	_getpid
	mov	x4, x0
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #1024
	mov	x3, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_snprintf
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
	add	x1, sp, #8
	mov	x0, x21
	bl	_auth_zone_write_chunks
	cbnz	w0, LBB0_17
; %bb.15:
	add	x0, sp, #8
	bl	_unlink
	mov	x0, x19
	bl	_lock_rw_unlock
	b	LBB0_17
LBB0_16:
	add	x1, sp, #8
	mov	x0, x22
	bl	_auth_zone_write_file
	cbz	w0, LBB0_19
LBB0_17:
	add	x0, sp, #8
	mov	x1, x20
	bl	_rename
	tbz	x0, #63, LBB0_20
; %bb.18:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #8
	mov	x2, x20
	bl	_log_err
LBB0_19:
	add	x0, sp, #8
	bl	_unlink
LBB0_20:
	mov	x0, x19
	bl	_lock_rw_unlock
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tmpfilename too long, cannot update  zonefile %s"

l_.str.1:                               ; @.str.1
	.asciz	"%s.tmp%u"

l_.str.2:                               ; @.str.2
	.asciz	"could not rename(%s, %s): %s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_xfr_write_after_update
.subsections_via_symbols
