	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_wire2pkt                  ## -- Begin function ldns_wire2pkt
	.p2align	4, 0x90
_ldns_wire2pkt:                         ## @ldns_wire2pkt
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -104(%rbp)
	xorl	%eax, %eax
	callq	_ldns_pkt_new
	movq	%rax, %r13
	leaq	-104(%rbp), %rcx
	movq	%rax, %rdi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_ldns_wire2pkt_hdr
	movq	%rax, %r15
	movq	_status_error@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_LDNS_STATUS_CHECK_GOTO
	movq	%r13, %rdi
	callq	_ldns_pkt_qdcount
	testq	%rax, %rax
	jle	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	leaq	-104(%rbp), %rbx
	movq	_LDNS_STATUS_PACKET_OVERFLOW@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_LDNS_SECTION_QUESTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-88(%rbp), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_ldns_wire2rr
	movq	%rax, %r15
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LDNS_STATUS_WIRE_INCOMPLETE_QUESTION@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_status_error@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_LDNS_STATUS_CHECK_GOTO
	movq	%r13, %rdi
	callq	_ldns_pkt_question
	movq	-88(%rbp), %rsi
	movl	%eax, %edi
	callq	_ldns_rr_list_push_rr
	testl	%eax, %eax
	je	LBB0_30
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	%r13, %rdi
	callq	_ldns_pkt_qdcount
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_6:
	movq	%r13, %rdi
	callq	_ldns_pkt_ancount
	testq	%rax, %rax
	jle	LBB0_12
## %bb.7:
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %r12
	movq	_LDNS_STATUS_PACKET_OVERFLOW@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_LDNS_SECTION_ANSWER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-88(%rbp), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_ldns_wire2rr
	movq	%rax, %r15
	cmpq	(%r14), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_LDNS_STATUS_WIRE_INCOMPLETE_ANSWER@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_status_error@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_LDNS_STATUS_CHECK_GOTO
	movq	%r13, %rdi
	callq	_ldns_pkt_answer
	movq	-88(%rbp), %rsi
	movl	%eax, %edi
	callq	_ldns_rr_list_push_rr
	testl	%eax, %eax
	je	LBB0_30
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movq	%r13, %rdi
	callq	_ldns_pkt_ancount
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_12:
	movq	%r13, %rdi
	callq	_ldns_pkt_nscount
	testq	%rax, %rax
	jle	LBB0_18
## %bb.13:
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %r12
	movq	_LDNS_STATUS_PACKET_OVERFLOW@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	_LDNS_SECTION_AUTHORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-88(%rbp), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_ldns_wire2rr
	movq	%rax, %r15
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_LDNS_STATUS_WIRE_INCOMPLETE_AUTHORITY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_status_error@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_LDNS_STATUS_CHECK_GOTO
	movq	%r13, %rdi
	callq	_ldns_pkt_authority
	movq	-88(%rbp), %rsi
	movl	%eax, %edi
	callq	_ldns_rr_list_push_rr
	testl	%eax, %eax
	je	LBB0_30
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movq	%r13, %rdi
	callq	_ldns_pkt_nscount
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_18:
	movq	%r13, %rdi
	callq	_ldns_pkt_arcount
	testq	%rax, %rax
	jle	LBB0_33
## %bb.19:
	leaq	-64(%rbp), %r12
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-88(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ldns_pkt_set_tsig
	movq	%r13, %rdi
	callq	_ldns_pkt_arcount
	leaq	-1(%rax), %rsi
	movq	%r13, %rdi
	callq	_ldns_pkt_set_arcount
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%r14
	movq	%r13, %rdi
	callq	_ldns_pkt_arcount
	cmpq	%rax, %r14
	jge	LBB0_31
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	_LDNS_SECTION_ADDITIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-88(%rbp), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leaq	-104(%rbp), %rcx
	callq	_ldns_wire2rr
	movq	%rax, %r15
	movq	_LDNS_STATUS_PACKET_OVERFLOW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_LDNS_STATUS_WIRE_INCOMPLETE_ADDITIONAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	_status_error@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_LDNS_STATUS_CHECK_GOTO
	movq	-88(%rbp), %rdi
	callq	_ldns_rr_get_type
	movq	-88(%rbp), %rdi
	movq	_LDNS_RR_TYPE_OPT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	callq	_ldns_rr_get_class
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_edns_udp_size
	movq	-88(%rbp), %rdi
	callq	_ldns_rr_ttl
	leaq	-80(%rbp), %rdi
	movl	%eax, %esi
	callq	_ldns_write_uint32
	movq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ldns_pkt_set_edns_extended_rcode
	movq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ldns_pkt_set_edns_version
	movq	%r12, %rdi
	callq	_ldns_read_uint16
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_edns_z
	movq	-88(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-88(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	movq	%rax, %rdi
	callq	_ldns_rdf_clone
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_edns_data
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-88(%rbp), %rdi
	callq	_ldns_rr_free
	incq	%rbx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=1
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_TSIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%r13, %rdi
	callq	_ldns_pkt_additional
	movq	-88(%rbp), %rsi
	movl	%eax, %edi
	callq	_ldns_rr_list_push_rr
	testl	%eax, %eax
	jne	LBB0_21
LBB0_30:
	movq	%r13, %rdi
	callq	_ldns_pkt_free
	movq	_LDNS_STATUS_INTERNAL_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_36
LBB0_31:
	movq	%r13, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_ldns_pkt_set_size
	testq	%rbx, %rbx
	je	LBB0_34
## %bb.32:
	movq	%r13, %rdi
	callq	_ldns_pkt_arcount
	subq	%rbx, %rax
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_ldns_pkt_set_arcount
	jmp	LBB0_35
LBB0_33:
	movq	%r13, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_ldns_pkt_set_size
LBB0_34:
	xorl	%ebx, %ebx
LBB0_35:
	movq	%rbx, (%r13)
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%r13, (%rax)
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	movq	%r15, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_status_error,4,2               ## @status_error
	.comm	_LDNS_SECTION_QUESTION,4,2      ## @LDNS_SECTION_QUESTION
	.comm	_LDNS_STATUS_PACKET_OVERFLOW,8,3 ## @LDNS_STATUS_PACKET_OVERFLOW
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_QUESTION,8,3 ## @LDNS_STATUS_WIRE_INCOMPLETE_QUESTION
	.comm	_LDNS_STATUS_INTERNAL_ERR,8,3   ## @LDNS_STATUS_INTERNAL_ERR
	.comm	_LDNS_SECTION_ANSWER,4,2        ## @LDNS_SECTION_ANSWER
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_ANSWER,8,3 ## @LDNS_STATUS_WIRE_INCOMPLETE_ANSWER
	.comm	_LDNS_SECTION_AUTHORITY,4,2     ## @LDNS_SECTION_AUTHORITY
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_AUTHORITY,8,3 ## @LDNS_STATUS_WIRE_INCOMPLETE_AUTHORITY
	.comm	_LDNS_SECTION_ADDITIONAL,4,2    ## @LDNS_SECTION_ADDITIONAL
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_ADDITIONAL,8,3 ## @LDNS_STATUS_WIRE_INCOMPLETE_ADDITIONAL
	.comm	_LDNS_RR_TYPE_OPT,8,3           ## @LDNS_RR_TYPE_OPT
	.comm	_LDNS_RR_TYPE_TSIG,8,3          ## @LDNS_RR_TYPE_TSIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_wire2pkt                  ; -- Begin function ldns_wire2pkt
	.p2align	2
_ldns_wire2pkt:                         ; @ldns_wire2pkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x2
	mov	x22, x1
	mov	x28, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	xzr, [sp, #16]
	bl	_ldns_pkt_new
	mov	x19, x0
	add	x3, sp, #16
	mov	x1, x22
	mov	x2, x21
	bl	_ldns_wire2pkt_hdr
	mov	x23, x0
Lloh3:
	adrp	x25, _status_error@GOTPAGE
Lloh4:
	ldr	x25, [x25, _status_error@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_LDNS_STATUS_CHECK_GOTO
	mov	x0, x19
	bl	_ldns_pkt_qdcount
Lloh5:
	adrp	x26, _LDNS_STATUS_PACKET_OVERFLOW@GOTPAGE
Lloh6:
	ldr	x26, [x26, _LDNS_STATUS_PACKET_OVERFLOW@GOTPAGEOFF]
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
Lloh7:
	adrp	x24, _LDNS_SECTION_QUESTION@GOTPAGE
Lloh8:
	ldr	x24, [x24, _LDNS_SECTION_QUESTION@GOTPAGEOFF]
Lloh9:
	adrp	x27, _LDNS_STATUS_WIRE_INCOMPLETE_QUESTION@GOTPAGE
Lloh10:
	ldr	x27, [x27, _LDNS_STATUS_WIRE_INCOMPLETE_QUESTION@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x24]
	add	x0, sp, #8
	add	x3, sp, #16
	mov	x1, x22
	mov	x2, x21
	bl	_ldns_wire2rr
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x0, x8
	csel	x23, x9, x0, eq
	ldr	w1, [x25]
	mov	x0, x23
	bl	_LDNS_STATUS_CHECK_GOTO
	mov	x0, x19
	bl	_ldns_pkt_question
	ldr	x1, [sp, #8]
	bl	_ldns_rr_list_push_rr
	cbz	w0, LBB0_22
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	mov	x0, x19
	bl	_ldns_pkt_qdcount
	cmp	x20, x0
	b.lt	LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_ldns_pkt_ancount
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x20, #0
Lloh11:
	adrp	x24, _LDNS_SECTION_ANSWER@GOTPAGE
Lloh12:
	ldr	x24, [x24, _LDNS_SECTION_ANSWER@GOTPAGEOFF]
Lloh13:
	adrp	x27, _LDNS_STATUS_WIRE_INCOMPLETE_ANSWER@GOTPAGE
Lloh14:
	ldr	x27, [x27, _LDNS_STATUS_WIRE_INCOMPLETE_ANSWER@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x24]
	add	x0, sp, #8
	add	x3, sp, #16
	mov	x1, x22
	mov	x2, x21
	bl	_ldns_wire2rr
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x0, x8
	csel	x23, x9, x0, eq
	ldr	w1, [x25]
	mov	x0, x23
	bl	_LDNS_STATUS_CHECK_GOTO
	mov	x0, x19
	bl	_ldns_pkt_answer
	ldr	x1, [sp, #8]
	bl	_ldns_rr_list_push_rr
	cbz	w0, LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	mov	x0, x19
	bl	_ldns_pkt_ancount
	cmp	x20, x0
	b.lt	LBB0_6
LBB0_8:
	mov	x0, x19
	bl	_ldns_pkt_nscount
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x20, #0
Lloh15:
	adrp	x24, _LDNS_SECTION_AUTHORITY@GOTPAGE
Lloh16:
	ldr	x24, [x24, _LDNS_SECTION_AUTHORITY@GOTPAGEOFF]
Lloh17:
	adrp	x27, _LDNS_STATUS_WIRE_INCOMPLETE_AUTHORITY@GOTPAGE
Lloh18:
	ldr	x27, [x27, _LDNS_STATUS_WIRE_INCOMPLETE_AUTHORITY@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x24]
	add	x0, sp, #8
	add	x3, sp, #16
	mov	x1, x22
	mov	x2, x21
	bl	_ldns_wire2rr
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x0, x8
	csel	x23, x9, x0, eq
	ldr	w1, [x25]
	mov	x0, x23
	bl	_LDNS_STATUS_CHECK_GOTO
	mov	x0, x19
	bl	_ldns_pkt_authority
	ldr	x1, [sp, #8]
	bl	_ldns_rr_list_push_rr
	cbz	w0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	mov	x0, x19
	bl	_ldns_pkt_nscount
	cmp	x20, x0
	b.lt	LBB0_10
LBB0_12:
	mov	x0, x19
	bl	_ldns_pkt_arcount
	cmp	x0, #0
	b.le	LBB0_25
; %bb.13:
	str	x28, [sp]                       ; 8-byte Folded Spill
	mov	x27, #0
	mov	x28, #0
	add	x8, sp, #24
	add	x24, x8, #16
Lloh19:
	adrp	x20, _LDNS_RR_TYPE_OPT@GOTPAGE
Lloh20:
	ldr	x20, [x20, _LDNS_RR_TYPE_OPT@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_ldns_pkt_set_tsig
	mov	x0, x19
	bl	_ldns_pkt_arcount
	sub	x1, x0, #1
	mov	x0, x19
	bl	_ldns_pkt_set_arcount
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x28, x28, #1
	mov	x0, x19
	bl	_ldns_pkt_arcount
	cmp	x28, x0
	b.ge	LBB0_23
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
Lloh21:
	adrp	x8, _LDNS_SECTION_ADDITIONAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LDNS_SECTION_ADDITIONAL@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	add	x0, sp, #8
	add	x3, sp, #16
	mov	x1, x22
	mov	x2, x21
	bl	_ldns_wire2rr
	ldr	x8, [x26]
Lloh24:
	adrp	x9, _LDNS_STATUS_WIRE_INCOMPLETE_ADDITIONAL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LDNS_STATUS_WIRE_INCOMPLETE_ADDITIONAL@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x23, x9, x0, eq
	ldr	w1, [x25]
	mov	x0, x23
	bl	_LDNS_STATUS_CHECK_GOTO
	ldr	x0, [sp, #8]
	bl	_ldns_rr_get_type
	mov	x8, x0
	ldr	x9, [x20]
	ldr	x0, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_ldns_rr_get_class
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_pkt_set_edns_udp_size
	ldr	x0, [sp, #8]
	bl	_ldns_rr_ttl
	mov	x1, x0
	add	x0, sp, #24
	bl	_ldns_write_uint32
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_ldns_pkt_set_edns_extended_rcode
	ldr	x1, [sp, #32]
	mov	x0, x19
	bl	_ldns_pkt_set_edns_version
	mov	x0, x24
	bl	_ldns_read_uint16
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_pkt_set_edns_z
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_ldns_rr_rdf
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_ldns_rr_rdf
	bl	_ldns_rdf_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_pkt_set_edns_data
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [sp, #8]
	bl	_ldns_rr_free
	add	x27, x27, #1
	b	LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	bl	_ldns_rr_get_type
Lloh27:
	adrp	x8, _LDNS_RR_TYPE_TSIG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LDNS_RR_TYPE_TSIG@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	bl	_ldns_pkt_additional
	ldr	x1, [sp, #8]
	bl	_ldns_rr_list_push_rr
	cbnz	w0, LBB0_15
LBB0_22:
	mov	x0, x19
	bl	_ldns_pkt_free
Lloh30:
	adrp	x8, _LDNS_STATUS_INTERNAL_ERR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LDNS_STATUS_INTERNAL_ERR@GOTPAGEOFF]
Lloh32:
	ldr	x23, [x8]
	b	LBB0_27
LBB0_23:
	mov	x0, x19
	mov	x1, x21
	bl	_ldns_pkt_set_size
	ldr	x28, [sp]                       ; 8-byte Folded Reload
	cbz	x27, LBB0_26
; %bb.24:
	mov	x0, x19
	bl	_ldns_pkt_arcount
	sub	x1, x0, x27
	mov	x0, x19
	bl	_ldns_pkt_set_arcount
	b	LBB0_26
LBB0_25:
	mov	x0, x19
	mov	x1, x21
	bl	_ldns_pkt_set_size
	mov	x27, #0
LBB0_26:
	str	x27, [x19]
	str	x19, [x28]
LBB0_27:
	ldr	x8, [sp, #56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_status_error,4,2               ; @status_error
	.comm	_LDNS_SECTION_QUESTION,4,2      ; @LDNS_SECTION_QUESTION
	.comm	_LDNS_STATUS_PACKET_OVERFLOW,8,3 ; @LDNS_STATUS_PACKET_OVERFLOW
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_QUESTION,8,3 ; @LDNS_STATUS_WIRE_INCOMPLETE_QUESTION
	.comm	_LDNS_STATUS_INTERNAL_ERR,8,3   ; @LDNS_STATUS_INTERNAL_ERR
	.comm	_LDNS_SECTION_ANSWER,4,2        ; @LDNS_SECTION_ANSWER
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_ANSWER,8,3 ; @LDNS_STATUS_WIRE_INCOMPLETE_ANSWER
	.comm	_LDNS_SECTION_AUTHORITY,4,2     ; @LDNS_SECTION_AUTHORITY
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_AUTHORITY,8,3 ; @LDNS_STATUS_WIRE_INCOMPLETE_AUTHORITY
	.comm	_LDNS_SECTION_ADDITIONAL,4,2    ; @LDNS_SECTION_ADDITIONAL
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_ADDITIONAL,8,3 ; @LDNS_STATUS_WIRE_INCOMPLETE_ADDITIONAL
	.comm	_LDNS_RR_TYPE_OPT,8,3           ; @LDNS_RR_TYPE_OPT
	.comm	_LDNS_RR_TYPE_TSIG,8,3          ; @LDNS_RR_TYPE_TSIG
.subsections_via_symbols
