	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chaos_replystr
_chaos_replystr:                        ## @chaos_replystr
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_RD_WIRE
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_CD_WIRE
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_sldns_buffer_clear
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_sldns_buffer_skip
	movq	_BIT_QR@GOTPCREL(%rip), %rax
	movq	_BIT_RA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sldns_buffer_write_u16
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_RD_SET
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_CD_SET
LBB0_4:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_sldns_buffer_write_u16
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_sldns_buffer_write_u16
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sldns_buffer_write_u16
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sldns_buffer_write_u16
	movq	%r12, %rdi
	callq	_query_dname_len
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_sldns_buffer_skip
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_sldns_buffer_skip
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.5:
	movl	%r15d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r15,8), %rdi
	callq	_strlen
	movq	%rax, %rbx
	cmpq	$255, %rax
	movl	$255, %eax
	cmovaeq	%rax, %rbx
	movq	%r12, %rdi
	movl	$49164, %esi                    ## imm = 0xC00C
	callq	_sldns_buffer_write_u16
	movq	_LDNS_RR_TYPE_TXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sldns_buffer_write_u16
	movq	_LDNS_RR_CLASS_CH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sldns_buffer_write_u16
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sldns_buffer_write_u32
	leal	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_sldns_buffer_write_u16
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_sldns_buffer_write_u8
	movq	(%r13,%r15,8), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_sldns_buffer_write
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_sldns_buffer_flip
	movq	_EDNS_ADVERTISED_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 16(%rbx)
	movq	_EDNS_ADVERTISED_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_EDNS_DO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, 8(%rbx)
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	addq	$4, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	pushq	%rax
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_inplace_cb_reply_local_call
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	$0, (%rbx)
LBB0_9:
	movq	%r12, %rdi
	callq	_sldns_buffer_capacity
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_sldns_buffer_limit
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_calc_edns_field_size
	addq	%r15, %rax
	cmpq	%rax, %r14
	jge	LBB0_11
## %bb.10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_attach_edns_record             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_QR,4,2                     ## @BIT_QR
	.comm	_BIT_RA,4,2                     ## @BIT_RA
	.comm	_LDNS_RR_TYPE_TXT,4,2           ## @LDNS_RR_TYPE_TXT
	.comm	_LDNS_RR_CLASS_CH,4,2           ## @LDNS_RR_CLASS_CH
	.comm	_EDNS_ADVERTISED_VERSION,4,2    ## @EDNS_ADVERTISED_VERSION
	.comm	_EDNS_ADVERTISED_SIZE,4,2       ## @EDNS_ADVERTISED_SIZE
	.comm	_EDNS_DO,4,2                    ## @EDNS_DO
	.comm	_LDNS_RCODE_NOERROR,4,2         ## @LDNS_RCODE_NOERROR
	.no_dead_strip	_chaos_replystr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chaos_replystr
_chaos_replystr:                        ; @chaos_replystr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	bl	_sldns_buffer_begin
	bl	_LDNS_RD_WIRE
	mov	x26, x0
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_CD_WIRE
	mov	x25, x0
	mov	x0, x20
	bl	_sldns_buffer_clear
	mov	x0, x20
	mov	w1, #4
	bl	_sldns_buffer_skip
Lloh0:
	adrp	x8, _BIT_QR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_QR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BIT_RA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BIT_RA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_sldns_buffer_write_u16
	cbz	w26, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_RD_SET
LBB0_2:
	cbz	w25, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_CD_SET
LBB0_4:
	mov	x0, x20
	mov	w1, #1
	bl	_sldns_buffer_write_u16
	mov	x0, x20
	mov	x1, x24
	bl	_sldns_buffer_write_u16
	mov	x0, x20
	mov	w1, #0
	bl	_sldns_buffer_write_u16
	mov	x0, x20
	mov	w1, #0
	bl	_sldns_buffer_write_u16
	mov	x0, x20
	bl	_query_dname_len
	mov	x0, x20
	mov	w1, #4
	bl	_sldns_buffer_skip
	mov	x0, x20
	mov	w1, #4
	bl	_sldns_buffer_skip
	cmp	w24, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w25, #255
Lloh6:
	adrp	x26, _LDNS_RR_TYPE_TXT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _LDNS_RR_TYPE_TXT@GOTPAGEOFF]
Lloh8:
	adrp	x27, _LDNS_RR_CLASS_CH@GOTPAGE
Lloh9:
	ldr	x27, [x27, _LDNS_RR_CLASS_CH@GOTPAGEOFF]
	mov	w28, w24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	bl	_strlen
	cmp	x0, #255
	csel	x24, x0, x25, lo
	mov	x0, x20
	mov	w1, #49164
	bl	_sldns_buffer_write_u16
	ldr	w1, [x26]
	mov	x0, x20
	bl	_sldns_buffer_write_u16
	ldr	w1, [x27]
	mov	x0, x20
	bl	_sldns_buffer_write_u16
	mov	x0, x20
	mov	w1, #0
	bl	_sldns_buffer_write_u32
	add	w1, w24, #4
	mov	x0, x20
	bl	_sldns_buffer_write_u16
	mov	x0, x20
	mov	x1, x24
	bl	_sldns_buffer_write_u8
	ldr	x1, [x23], #8
	mov	x0, x20
	mov	x2, x24
	bl	_sldns_buffer_write
	subs	x28, x28, #1
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x20
	bl	_sldns_buffer_flip
Lloh10:
	adrp	x8, _EDNS_ADVERTISED_VERSION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EDNS_ADVERTISED_VERSION@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh13:
	adrp	x8, _EDNS_ADVERTISED_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EDNS_ADVERTISED_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _EDNS_DO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EDNS_DO@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	and	w9, w10, w9
	stp	w9, w8, [x19, #8]
Lloh19:
	adrp	x8, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
	ldr	w7, [x22], #4
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x5, x19
	mov	x6, x21
	bl	_inplace_cb_reply_local_call
	cbnz	w0, LBB0_9
; %bb.8:
	str	xzr, [x19]
LBB0_9:
	mov	x0, x20
	bl	_sldns_buffer_capacity
	mov	x21, x0
	mov	x0, x20
	bl	_sldns_buffer_limit
	mov	x22, x0
	mov	x0, x19
	bl	_calc_edns_field_size
	add	x8, x0, x22
	cmp	x21, x8
	b.ge	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_attach_edns_record
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_QR,4,2                     ; @BIT_QR
	.comm	_BIT_RA,4,2                     ; @BIT_RA
	.comm	_LDNS_RR_TYPE_TXT,4,2           ; @LDNS_RR_TYPE_TXT
	.comm	_LDNS_RR_CLASS_CH,4,2           ; @LDNS_RR_CLASS_CH
	.comm	_EDNS_ADVERTISED_VERSION,4,2    ; @EDNS_ADVERTISED_VERSION
	.comm	_EDNS_ADVERTISED_SIZE,4,2       ; @EDNS_ADVERTISED_SIZE
	.comm	_EDNS_DO,4,2                    ; @EDNS_DO
	.comm	_LDNS_RCODE_NOERROR,4,2         ; @LDNS_RCODE_NOERROR
	.no_dead_strip	_chaos_replystr
.subsections_via_symbols
