	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function record_delete
_record_delete:                         ## @record_delete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_last_deleted_record@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	16(%rax), %edi
	movq	8(%rax), %rsi
	movl	16(%rbx), %edx
	movq	8(%rbx), %rcx
	callq	_cmp_str
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	je	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	callq	_try_change_zone
	movq	(%rbx), %r8
	movq	8(%rbx), %rdx
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_vkprintf
	movq	_LEV_DNS_DELETE_RECORDS@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	movq	(%rax), %rdi
	addq	%rsi, %rdi
	addl	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_alloc_log_event
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movq	8(%rbx), %rdx
	callq	_memcpy
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	callq	_compute_uncommitted_log_bytes
	cmpl	$8388609, %eax                  ## imm = 0x800001
	jl	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_flush_binlog_forced
LBB0_5:
	movq	_delete_logevents@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_deleted_record,8,3        ## @last_deleted_record
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Delete records for name '%.*s' of type %d.\n"

	.comm	_LEV_DNS_DELETE_RECORDS,8,3     ## @LEV_DNS_DELETE_RECORDS
	.comm	_delete_logevents,4,2           ## @delete_logevents
	.no_dead_strip	_record_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function record_delete
_record_delete:                         ; @record_delete
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _last_deleted_record@GOTPAGE
Lloh1:
	ldr	x20, [x20, _last_deleted_record@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x8, #16]
	ldr	x1, [x8, #8]
	ldr	w2, [x19, #16]
	ldr	x3, [x19, #8]
	bl	_cmp_str
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_3:
	bl	_try_change_zone
	ldr	w3, [x19, #16]
	ldp	x4, x2, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
Lloh4:
	adrp	x8, _LEV_DNS_DELETE_RECORDS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LEV_DNS_DELETE_RECORDS@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldp	x2, x9, [x19]
	add	x0, x9, x8
	add	w1, w9, #4
	bl	_alloc_log_event
	ldr	w0, [x0]
	ldr	w1, [x19, #16]
	ldr	x2, [x19, #8]
	bl	_memcpy
	str	x19, [x20]
	bl	_compute_uncommitted_log_bytes
	cmp	w0, #2048, lsl #12              ; =8388608
	b.le	LBB0_5
; %bb.4:
	mov	w0, #0
	bl	_flush_binlog_forced
LBB0_5:
Lloh7:
	adrp	x8, _delete_logevents@GOTPAGE
Lloh8:
	ldr	x8, [x8, _delete_logevents@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_last_deleted_record,8,3        ; @last_deleted_record
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Delete records for name '%.*s' of type %d.\n"

	.comm	_LEV_DNS_DELETE_RECORDS,8,3     ; @LEV_DNS_DELETE_RECORDS
	.comm	_delete_logevents,4,2           ; @delete_logevents
	.no_dead_strip	_record_delete
.subsections_via_symbols
