	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evdns_server_request_format_response
_evdns_server_request_format_response:  ## @evdns_server_request_format_response
	.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	$1560, %rsp                     ## imm = 0x618
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r12d
	cmpl	$15, %esi
	ja	LBB0_26
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	orl	56(%rdi), %r15d
	orl	$32768, %r15d                   ## imm = 0x8000
	leaq	-1560(%rbp), %rdi
	callq	_dnslabel_table_init
	movl	(%r14), %edi
	callq	_APPEND16
	movl	%r15d, %edi
	callq	_APPEND16
	movl	60(%r14), %edi
	callq	_APPEND16
	movl	4(%r14), %edi
	callq	_APPEND16
	movl	8(%r14), %edi
	callq	_APPEND16
	movl	12(%r14), %edi
	callq	_APPEND16
	cmpl	$0, 60(%r14)
	movl	$0, %r12d
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-1560(%rbp), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	64(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_strlen
	movl	$1500, %esi                     ## imm = 0x5DC
	leaq	-1552(%rbp), %rdi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%eax, %r8d
	movq	%r13, %r9
	callq	_dnsname_to_labels
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_25
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	64(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	8(%rax), %edi
	callq	_APPEND16
	movq	64(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	12(%rax), %edi
	callq	_APPEND16
	incq	%rbx
	movslq	60(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	leaq	40(%r14), %rax
	movq	%rax, -1600(%rbp)               ## 8-byte Spill
	leaq	48(%r14), %rax
	movq	%r14, -1584(%rbp)               ## 8-byte Spill
	leaq	32(%r14), %rcx
	movq	%rcx, -1576(%rbp)               ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rax, -1592(%rbp)               ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-1564(%rbp), %ecx               ## 4-byte Reload
	incl	%ecx
	cmpl	$3, %ecx
	movq	-1592(%rbp), %rax               ## 8-byte Reload
	je	LBB0_19
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-1600(%rbp), %rax               ## 8-byte Reload
	cmpl	$1, %ecx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-1576(%rbp), %rax               ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, -1564(%rbp)               ## 4-byte Spill
	movq	(%rax), %r14
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r14, %r14
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	$1500, %esi                     ## imm = 0x5DC
	leaq	-1552(%rbp), %rdi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	leaq	-1560(%rbp), %r9
	callq	_dnsname_to_labels
	testl	%eax, %eax
	js	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%eax, %r13d
	movl	8(%r14), %edi
	callq	_APPEND16
	movl	12(%r14), %edi
	callq	_APPEND16
	movl	48(%r14), %edi
	callq	_APPEND32
	cmpq	$0, 40(%r14)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	leal	2(%r13), %r15d
	movq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	$1500, %esi                     ## imm = 0x5DC
	leaq	-1552(%rbp), %rdi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	leaq	-1560(%rbp), %r9
	callq	_dnsname_to_labels
	testl	%eax, %eax
	js	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%eax, %r12d
	subl	%r15d, %eax
	movswl	%ax, %edi
	callq	_htons
	movl	%eax, -1568(%rbp)
	movl	%r13d, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-1552, %rdi                    ## imm = 0xF9F0
	leaq	-1568(%rbp), %rsi
	movl	$2, %edx
	xorl	%eax, %eax
	callq	_memcpy
	movq	32(%r14), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	24(%r14), %edi
	callq	_APPEND16
	movl	24(%r14), %edx
	leal	(%rdx,%r13), %eax
	cmpl	$1500, %eax                     ## imm = 0x5DC
	jg	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%r13d, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-1552, %rdi                    ## imm = 0xF9F0
	movq	16(%r14), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_memcpy
	movl	24(%r14), %r12d
	addl	%r13d, %r12d
	movq	32(%r14), %r14
	jmp	LBB0_10
LBB0_19:
	cmpl	$513, %r12d                     ## imm = 0x201
	jl	LBB0_21
LBB0_20:
	orb	$2, -1550(%rbp)
	movl	$512, %r12d                     ## imm = 0x200
LBB0_21:
	movq	-1584(%rbp), %rbx               ## 8-byte Reload
	movl	%r12d, 16(%rbx)
	movl	%r12d, %edi
	callq	_mm_malloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movl	16(%rbx), %edx
	xorl	%r12d, %r12d
	leaq	-1552(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_memcpy
	jmp	LBB0_24
LBB0_22:
	movl	$-1, %r12d
LBB0_24:
	movq	%rbx, %rdi
	callq	_server_request_free_answers
LBB0_25:
	leaq	-1560(%rbp), %rdi
	callq	_dnslabel_clear
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%r12d, %eax
	addq	$1560, %rsp                     ## imm = 0x618
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_evdns_server_request_format_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evdns_server_request_format_response
_evdns_server_request_format_response:  ; @evdns_server_request_format_response
	.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
	sub	sp, sp, #1568
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cmp	w1, #15
	b.ls	LBB0_2
; %bb.1:
	mov	w20, #-1
	b	LBB0_24
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0, #56]
	orr	w8, w8, w1
	orr	w20, w8, #0x8000
	add	x0, sp, #40
	bl	_dnslabel_table_init
	ldr	w0, [x19]
	bl	_APPEND16
	mov	x0, x20
	bl	_APPEND16
	ldr	w0, [x19, #60]
	bl	_APPEND16
	ldr	w0, [x19, #4]
	bl	_APPEND16
	ldr	w0, [x19, #8]
	bl	_APPEND16
	ldr	w0, [x19, #12]
	bl	_APPEND16
	ldr	w8, [x19, #60]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
	mov	w20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #64]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x4, x0
	add	x0, sp, #52
	add	x5, sp, #40
	mov	w1, #1500
	mov	x2, x20
	mov	x3, x21
	bl	_dnsname_to_labels
	mov	x20, x0
	tbnz	w0, #31, LBB0_23
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #64]
	lsl	x21, x22, #3
	ldr	x8, [x8, x21]
	ldr	w0, [x8, #8]
	bl	_APPEND16
	ldr	x8, [x19, #64]
	ldr	x8, [x8, x21]
	ldr	w0, [x8, #12]
	bl	_APPEND16
	add	x22, x22, #1
	ldrsw	x8, [x19, #60]
	cmp	x22, x8
	b.lt	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	w23, #0
	add	x8, x19, #40
	add	x9, x19, #48
	add	x10, x19, #32
	add	x27, sp, #52
	mov	w28, #2
	add	x24, sp, #48
	stp	x10, x8, [sp, #24]              ; 16-byte Folded Spill
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w23, #1
	csel	x8, x10, x8, ne
	cmp	w23, #0
	mov	x26, x9
	csel	x8, x9, x8, eq
	ldr	x25, [x8]
	cbnz	x25, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w23, w23, #1
	cmp	w23, #3
	ldp	x10, x8, [sp, #24]              ; 16-byte Folded Reload
	mov	x9, x26
	b.ne	LBB0_8
	b	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x25, [x25, #32]
	cbz	x25, LBB0_9
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x21, [x25]
	mov	x0, x21
	bl	_strlen
	mov	x4, x0
	add	x0, sp, #52
	add	x5, sp, #40
	mov	w1, #1500
	mov	x2, x20
	mov	x3, x21
	bl	_dnsname_to_labels
	tbnz	w0, #31, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x21, x0
	ldr	w0, [x25, #8]
	bl	_APPEND16
	ldr	w0, [x25, #12]
	bl	_APPEND16
	ldr	w0, [x25, #48]
	bl	_APPEND32
	ldr	x8, [x25, #40]
	cbz	x8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	add	w22, w21, #2
	ldr	x20, [x25, #16]
	mov	x0, x20
	bl	_strlen
	mov	x4, x0
	add	x0, sp, #52
	add	x5, sp, #40
	mov	w1, #1500
	mov	x2, x22
	mov	x3, x20
	bl	_dnsname_to_labels
	tbnz	w0, #31, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x20, x0
	sub	w8, w0, w22
	sxth	w0, w8
	bl	_htons
	str	w0, [sp, #48]
	add	x0, x27, w21, uxtw
	stp	x24, x28, [sp]
	bl	_memcpy
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	w0, [x25, #24]
	bl	_APPEND16
	ldr	w8, [x25, #24]
	add	w9, w8, w21
	cmp	w9, #1500
	b.gt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x0, x27, w21, uxtw
	ldr	x9, [x25, #16]
	stp	x9, x8, [sp]
	bl	_memcpy
	ldr	w8, [x25, #24]
	add	w20, w8, w21
	b	LBB0_10
LBB0_17:
	cmp	w20, #513
	b.lt	LBB0_19
LBB0_18:
	ldrb	w8, [sp, #54]
	orr	w8, w8, #0x2
	strb	w8, [sp, #54]
	mov	w20, #512
LBB0_19:
	str	w20, [x19, #16]
	mov	x0, x20
	bl	_mm_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_21
; %bb.20:
	ldr	w8, [x19, #16]
	add	x9, sp, #52
	stp	x9, x8, [sp]
	bl	_memcpy
	mov	w20, #0
	b	LBB0_22
LBB0_21:
	mov	w20, #-1
LBB0_22:
	mov	x0, x19
	bl	_server_request_free_answers
LBB0_23:
	add	x0, sp, #40
	bl	_dnslabel_clear
LBB0_24:
	ldur	x8, [x29, #-96]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x20
	add	sp, sp, #1568
	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_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_evdns_server_request_format_response
.subsections_via_symbols
