	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dozonetransfer
_dozonetransfer:                        ## @dozonetransfer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_o_rrtype@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_o_mode@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_M_AXFR@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	movq	_LDNS_RR_TYPE_AXFR@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	_LDNS_RR_TYPE_IXFR@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rdx), %edx
	movl	%edx, (%rax)
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_search
	movq	%rax, %rbx
	testq	%rax, %rax
	cmovneq	%rax, %r15
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_answer
	movl	%eax, %edi
	callq	_ldns_rr_list_clone
	movq	%rax, %r14
	movq	-48(%rbp), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_ldns_pkt_filter_answer
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_report
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_get_rcode
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=2
	incq	%r13
	movq	%r14, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %r13
	jae	LBB0_16
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r15
	testq	%rbx, %rbx
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r15, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r15, %rdi
	callq	_ldns_rr_soa_get_serial
	movq	%rax, %r12
	movq	_o_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_M_IXFR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_o_ixfr_serial@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jle	LBB0_19
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%r15, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpq	$1, %rbx
	movl	$1, %ebx
	jne	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r15, %rdi
	callq	_ldns_rr_soa_get_serial
	movl	$2, %ebx
	cmpq	%r12, %rax
	jne	LBB0_8
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-72(%rbp), %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ldns_tcp_read
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %r15
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_answerfrom
	movl	%eax, %edi
	callq	_ldns_rdf_clone
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_answerfrom
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_free
	movq	%r14, %rdi
	callq	_ldns_rr_list_free
	movq	-72(%rbp), %rdi
	movq	%rdi, -48(%rbp)
	callq	_ldns_pkt_answer
	movl	%eax, %edi
	callq	_ldns_rr_list_clone
	movq	%rax, %r14
	movq	-48(%rbp), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_ldns_pkt_filter_answer
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_report
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_18:
	leaq	L_str.3(%rip), %rdi
	callq	_puts
	movq	%r13, %rdi
	jmp	LBB0_21
LBB0_19:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_tcp_close
	movl	$1, %eax
	jmp	LBB0_23
LBB0_20:
	leaq	L_str.2(%rip), %rdi
	callq	_puts
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_21:
	callq	_ldns_tcp_close
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	leaq	L_str.3(%rip), %rdi
	callq	_puts
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_o_rrtype,4,2                   ## @o_rrtype
	.comm	_o_mode,8,3                     ## @o_mode
	.comm	_M_AXFR,8,3                     ## @M_AXFR
	.comm	_LDNS_RR_TYPE_AXFR,4,2          ## @LDNS_RR_TYPE_AXFR
	.comm	_LDNS_RR_TYPE_IXFR,4,2          ## @LDNS_RR_TYPE_IXFR
	.comm	_LDNS_RCODE_NOERROR,8,3         ## @LDNS_RCODE_NOERROR
	.comm	_LDNS_RR_TYPE_SOA,8,3           ## @LDNS_RR_TYPE_SOA
	.comm	_M_IXFR,8,3                     ## @M_IXFR
	.comm	_o_ixfr_serial,8,3              ## @o_ixfr_serial
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
L_str.2:                                ## @str.2
	.asciz	"; Transfer failed. Didn't start with SOA answer."

L_str.3:                                ## @str.3
	.asciz	"; Transfer failed."

	.no_dead_strip	_dozonetransfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dozonetransfer
_dozonetransfer:                        ; @dozonetransfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x3, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _o_rrtype@GOTPAGE
Lloh1:
	ldr	x8, [x8, _o_rrtype@GOTPAGEOFF]
	ldr	w20, [x8]
Lloh2:
	adrp	x9, _o_mode@GOTPAGE
Lloh3:
	ldr	x9, [x9, _o_mode@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _M_AXFR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _M_AXFR@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _LDNS_RR_TYPE_AXFR@GOTPAGE
Lloh9:
	ldr	x11, [x11, _LDNS_RR_TYPE_AXFR@GOTPAGEOFF]
Lloh10:
	adrp	x12, _LDNS_RR_TYPE_IXFR@GOTPAGE
Lloh11:
	ldr	x12, [x12, _LDNS_RR_TYPE_IXFR@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	str	w9, [x8]
	add	x2, sp, #24
	mov	w4, #0
	bl	_search
	mov	x21, x0
	cmp	x0, #0
	csel	x22, x22, x0, eq
	ldr	x0, [sp, #24]
	bl	_ldns_pkt_answer
	bl	_ldns_rr_list_clone
	mov	x23, x0
	ldr	x0, [sp, #24]
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	mov	x1, x20
	bl	_ldns_pkt_filter_answer
	ldr	x2, [sp, #24]
	mov	x0, x19
	str	x22, [sp]                       ; 8-byte Folded Spill
	mov	x1, x22
	bl	_report
	cbz	x21, LBB0_16
; %bb.1:
	mov	x24, #0
	mov	x27, #0
Lloh12:
	adrp	x28, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh13:
	ldr	x28, [x28, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh14:
	adrp	x20, _M_IXFR@GOTPAGE
Lloh15:
	ldr	x20, [x20, _M_IXFR@GOTPAGEOFF]
Lloh16:
	adrp	x22, _o_ixfr_serial@GOTPAGE
Lloh17:
	ldr	x22, [x22, _o_ixfr_serial@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x0, [sp, #24]
	bl	_ldns_pkt_get_rcode
Lloh18:
	adrp	x8, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	w27, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
	mov	x0, x23
	bl	_ldns_rr_list_rr_count
	cmp	x25, x0
	b.hs	LBB0_14
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x1, x25
	bl	_ldns_rr_list_rr
	mov	x26, x0
	cbnz	x27, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	bl	_ldns_rr_get_type
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	bl	_ldns_rr_soa_get_serial
	mov	x24, x0
Lloh21:
	adrp	x8, _o_mode@GOTPAGE
Lloh22:
	ldr	x8, [x8, _o_mode@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x0, x10, #0, eq
	b.le	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	bl	_ldns_rr_get_type
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	x27, #1
	b.ne	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	bl	_ldns_rr_soa_get_serial
	cmp	x0, x24
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	w27, #2
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #16
	mov	x1, x19
	bl	_ldns_tcp_read
Lloh24:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldp	x25, x0, [sp, #16]
	bl	_ldns_pkt_answerfrom
	bl	_ldns_rdf_clone
	mov	x1, x0
	mov	x0, x25
	bl	_ldns_pkt_set_answerfrom
	ldr	x0, [sp, #24]
	bl	_ldns_pkt_free
	mov	x0, x23
	bl	_ldns_rr_list_free
	ldr	x0, [sp, #16]
	str	x0, [sp, #24]
	bl	_ldns_pkt_answer
	bl	_ldns_rr_list_clone
	mov	x23, x0
	ldr	x0, [sp, #24]
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_ldns_pkt_filter_answer
	ldr	x2, [sp, #24]
	mov	x0, x19
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_report
	cbnz	x21, LBB0_2
LBB0_16:
Lloh27:
	adrp	x0, l_str.3@PAGE
Lloh28:
	add	x0, x0, l_str.3@PAGEOFF
	b	LBB0_19
LBB0_17:
	mov	x0, x19
	bl	_ldns_tcp_close
	mov	w0, #1
	b	LBB0_21
LBB0_18:
Lloh29:
	adrp	x0, l_str.2@PAGE
Lloh30:
	add	x0, x0, l_str.2@PAGEOFF
LBB0_19:
	bl	_puts
	mov	x0, x19
	bl	_ldns_tcp_close
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
Lloh31:
	adrp	x0, l_str.3@PAGE
Lloh32:
	add	x0, x0, l_str.3@PAGEOFF
	bl	_puts
	b	LBB0_20
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_o_rrtype,4,2                   ; @o_rrtype
	.comm	_o_mode,8,3                     ; @o_mode
	.comm	_M_AXFR,8,3                     ; @M_AXFR
	.comm	_LDNS_RR_TYPE_AXFR,4,2          ; @LDNS_RR_TYPE_AXFR
	.comm	_LDNS_RR_TYPE_IXFR,4,2          ; @LDNS_RR_TYPE_IXFR
	.comm	_LDNS_RCODE_NOERROR,8,3         ; @LDNS_RCODE_NOERROR
	.comm	_LDNS_RR_TYPE_SOA,8,3           ; @LDNS_RR_TYPE_SOA
	.comm	_M_IXFR,8,3                     ; @M_IXFR
	.comm	_o_ixfr_serial,8,3              ; @o_ixfr_serial
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
l_str.2:                                ; @str.2
	.asciz	"; Transfer failed. Didn't start with SOA answer."

l_str.3:                                ; @str.3
	.asciz	"; Transfer failed."

	.no_dead_strip	_dozonetransfer
.subsections_via_symbols
