	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_http
_apply_http:                            ## @apply_http
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -1080(%rbp)               ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$3600, -1112(%rbp)              ## imm = 0xE10
	movl	(%r14), %edx
	cmpl	$7, %edx
	ja	LBB0_2
## %bb.1:
	movl	%edx, -1108(%rbp)
	movq	-1104(%rbp), %rdi
	movl	32(%r14), %esi
	callq	_memmove
LBB0_2:
	movq	_verbosity@GOTPCREL(%rip), %r13
	movq	_VERB_ALGO@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	cmpq	%r15, (%r13)
	jl	LBB0_4
## %bb.3:
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdi
	movl	(%rcx), %r12d
	callq	_chunklist_sum
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movq	_VERB_ALGO@GOTPCREL(%rip), %r12
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_verbose
LBB0_4:
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	(%r13), %rcx
	cmpq	(%r12), %rcx
	jl	LBB0_10
## %bb.6:
	movl	(%rax), %edx
	movl	4(%rax), %esi
	leal	-1024(%rdx), %eax
	leaq	-1072(%rbp), %rdi
	cmpl	$-1026, %eax                    ## imm = 0xFBFE
	ja	LBB0_8
## %bb.7:
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	_memmove
	movl	$1023, %eax                     ## imm = 0x3FF
	jmp	LBB0_9
LBB0_8:
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	movslq	(%rax), %rax
LBB0_9:
	movb	$0, -1072(%rbp,%rax)
	leaq	L_.str.1(%rip), %rdi
	leaq	-1072(%rbp), %rsi
	callq	_log_info
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_http_zonefile_syntax_check
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	_auth_data_del@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-1080(%rbp), %r15               ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_traverse_postorder
	movq	_auth_data_cmp@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_rbtree_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	movq	%rax, -1072(%rbp)
	movq	$0, -1088(%rbp)
	movl	$0, -1096(%rbp)
	leaq	-1072(%rbp), %rdi
	leaq	-1088(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_chunkline_get_line_collated
	movl	$1, %r13d
	testq	%rax, %rax
	je	LBB0_21
## %bb.13:
	leaq	-1112(%rbp), %r13
	leaq	-1072(%rbp), %r15
	leaq	-1088(%rbp), %r12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_chunkline_get_line_collated
	testq	%rax, %rax
	je	LBB0_16
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	incl	-1096(%rbp)
	movq	%rbx, %rdi
	callq	_chunkline_newline_removal
	movq	%rbx, %rdi
	callq	_chunkline_is_comment_line_or_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_http_parse_origin
	testq	%rax, %rax
	jne	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_http_parse_ttl
	testq	%rax, %rax
	jne	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movq	-1080(%rbp), %rsi               ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_http_parse_add_rr
	testl	%eax, %eax
	jne	LBB0_15
## %bb.20:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movl	-1096(%rbp), %r12d
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_verbose
	jmp	LBB0_21
LBB0_11:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movl	4(%rax), %r15d
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_log_err
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_16:
	movl	$1, %r13d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r13d, %eax
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_VERB_ALGO,8,3                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http download %s of size %d"

L_.str.1:                               ## @.str.1
	.asciz	"auth zone http downloaded content preview: %s"

L_.str.2:                               ## @.str.2
	.asciz	"http download %s/%s does not contain a zonefile, but got '%s'"

	.comm	_auth_data_del,4,2              ## @auth_data_del
	.comm	_auth_data_cmp,4,2              ## @auth_data_cmp
L_.str.3:                               ## @.str.3
	.asciz	"error parsing line [%s:%d] %s"

	.no_dead_strip	_apply_http
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_http
_apply_http:                            ; @apply_http
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #1072
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	w8, #3600
	str	w8, [sp, #16]
	ldr	w2, [x20]
	cmp	w2, #7
	b.hi	LBB0_2
; %bb.1:
	str	w2, [sp, #20]
	ldr	x0, [sp, #24]
	ldr	w1, [x20, #32]
	bl	_memmove
LBB0_2:
Lloh3:
	adrp	x25, _verbosity@GOTPAGE
Lloh4:
	ldr	x25, [x25, _verbosity@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh5:
	adrp	x24, _VERB_ALGO@GOTPAGE
Lloh6:
	ldr	x24, [x24, _VERB_ALGO@GOTPAGEOFF]
	ldr	x22, [x24]
	cmp	x8, x22
	b.lt	LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	ldp	x9, x0, [x8]
	ldr	w23, [x9]
	bl	_chunklist_sum
	mov	x3, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_verbose
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	x9, [x25]
	ldr	x10, [x24]
	cmp	x9, x10
	b.lt	LBB0_10
; %bb.6:
	ldp	w2, w1, [x8]
	sub	w8, w2, #1024
	cmn	w8, #1026
	b.hi	LBB0_8
; %bb.7:
	mov	w22, #1023
	add	x0, sp, #40
	mov	w2, #1023
	bl	_memmove
	b	LBB0_9
LBB0_8:
	add	x0, sp, #40
	bl	_memmove
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldrsw	x22, [x8]
LBB0_9:
	add	x8, sp, #40
	strb	wzr, [x8, x22]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #40
	bl	_log_info
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_http_zonefile_syntax_check
	cbz	w0, LBB0_19
; %bb.11:
Lloh11:
	adrp	x8, _auth_data_del@GOTPAGE
Lloh12:
	ldr	x8, [x8, _auth_data_del@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, #0
	bl	_traverse_postorder
Lloh14:
	adrp	x1, _auth_data_cmp@GOTPAGE
Lloh15:
	ldr	x1, [x1, _auth_data_cmp@GOTPAGEOFF]
	mov	x0, x21
	bl	_rbtree_init
	stp	xzr, xzr, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	str	x8, [sp, #40]
	str	xzr, [sp, #8]
	str	wzr, [sp, #32]
	add	x0, sp, #40
	add	x1, sp, #8
	mov	x2, x19
	bl	_chunkline_get_line_collated
	cbnz	x0, LBB0_14
LBB0_12:
	mov	w0, #1
	b	LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #40
	add	x1, sp, #8
	mov	x2, x19
	bl	_chunkline_get_line_collated
	cbz	x0, LBB0_12
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #32]
	add	w8, w8, #1
	str	w8, [sp, #32]
	mov	x0, x19
	bl	_chunkline_newline_removal
	mov	x0, x19
	bl	_chunkline_is_comment_line_or_empty
	cbnz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x1, sp, #16
	mov	x0, x19
	bl	_http_parse_origin
	cbnz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x1, sp, #16
	mov	x0, x19
	bl	_http_parse_ttl
	cbnz	x0, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_http_parse_add_rr
	cbnz	w0, LBB0_13
; %bb.18:
	ldr	x21, [x24]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w20, [x8]
	ldr	w22, [sp, #32]
	mov	x0, x19
	bl	_sldns_buffer_begin
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	bl	_verbose
	b	LBB0_20
LBB0_19:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldp	w21, w20, [x8]
	mov	x0, x19
	bl	_sldns_buffer_begin
	mov	x3, x0
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_log_err
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	add	sp, sp, #1072
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_VERB_ALGO,8,3                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http download %s of size %d"

l_.str.1:                               ; @.str.1
	.asciz	"auth zone http downloaded content preview: %s"

l_.str.2:                               ; @.str.2
	.asciz	"http download %s/%s does not contain a zonefile, but got '%s'"

	.comm	_auth_data_del,4,2              ; @auth_data_del
	.comm	_auth_data_cmp,4,2              ; @auth_data_cmp
l_.str.3:                               ; @.str.3
	.asciz	"error parsing line [%s:%d] %s"

	.no_dead_strip	_apply_http
.subsections_via_symbols
