	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_pkt_reply_type            ## -- Begin function ldns_pkt_reply_type
	.p2align	4, 0x90
_ldns_pkt_reply_type:                   ## @ldns_pkt_reply_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_ldns_pkt_get_rcode
	movq	_LDNS_RCODE_NXDOMAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_LDNS_PACKET_NXDOMAIN@GOTPCREL(%rip), %r14
	jmp	LBB0_14
LBB0_1:
	movq	_LDNS_PACKET_UNKNOWN@GOTPCREL(%rip), %r14
	jmp	LBB0_14
LBB0_4:
	movq	%rbx, %rdi
	callq	_ldns_pkt_ancount
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_ldns_pkt_arcount
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_ldns_pkt_nscount
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.7:
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LDNS_SECTION_AUTHORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ldns_pkt_rr_list_by_type
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rdi
	callq	_ldns_rr_list_deep_free
	movq	_LDNS_PACKET_NODATA@GOTPCREL(%rip), %r14
	jmp	LBB0_14
LBB0_9:
	movq	%rbx, %rdi
	callq	_ldns_pkt_ancount
	movq	_LDNS_PACKET_ANSWER@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_10
LBB0_14:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	callq	_ldns_pkt_nscount
	testl	%eax, %eax
	jle	LBB0_14
## %bb.11:
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LDNS_SECTION_AUTHORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ldns_pkt_rr_list_by_type
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %rdi
	callq	_ldns_rr_list_deep_free
	movq	_LDNS_PACKET_REFERRAL@GOTPCREL(%rip), %r14
	jmp	LBB0_14
LBB0_13:
	xorl	%edi, %edi
	callq	_ldns_rr_list_deep_free
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_PACKET_UNKNOWN,4,2        ## @LDNS_PACKET_UNKNOWN
	.comm	_LDNS_RCODE_NXDOMAIN,8,3        ## @LDNS_RCODE_NXDOMAIN
	.comm	_LDNS_PACKET_NXDOMAIN,4,2       ## @LDNS_PACKET_NXDOMAIN
	.comm	_LDNS_RR_TYPE_SOA,4,2           ## @LDNS_RR_TYPE_SOA
	.comm	_LDNS_SECTION_AUTHORITY,4,2     ## @LDNS_SECTION_AUTHORITY
	.comm	_LDNS_PACKET_NODATA,4,2         ## @LDNS_PACKET_NODATA
	.comm	_LDNS_RR_TYPE_NS,4,2            ## @LDNS_RR_TYPE_NS
	.comm	_LDNS_PACKET_REFERRAL,4,2       ## @LDNS_PACKET_REFERRAL
	.comm	_LDNS_PACKET_ANSWER,4,2         ## @LDNS_PACKET_ANSWER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_pkt_reply_type            ; -- Begin function ldns_pkt_reply_type
	.p2align	2
_ldns_pkt_reply_type:                   ; @ldns_pkt_reply_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_ldns_pkt_get_rcode
Lloh0:
	adrp	x8, _LDNS_RCODE_NXDOMAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RCODE_NXDOMAIN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _LDNS_PACKET_NXDOMAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_PACKET_NXDOMAIN@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
Lloh5:
	adrp	x8, _LDNS_PACKET_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_PACKET_UNKNOWN@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	mov	x0, x19
	bl	_ldns_pkt_ancount
	cbnz	x0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_ldns_pkt_arcount
	cbnz	x0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_ldns_pkt_nscount
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.7:
Lloh7:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _LDNS_SECTION_AUTHORITY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_SECTION_AUTHORITY@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ldns_pkt_rr_list_by_type
	cbz	x0, LBB0_9
; %bb.8:
	bl	_ldns_rr_list_deep_free
Lloh13:
	adrp	x8, _LDNS_PACKET_NODATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LDNS_PACKET_NODATA@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_ldns_pkt_ancount
	cbz	x0, LBB0_12
LBB0_10:
Lloh15:
	adrp	x8, _LDNS_PACKET_ANSWER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LDNS_PACKET_ANSWER@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	bl	_ldns_pkt_nscount
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.13:
Lloh17:
	adrp	x8, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _LDNS_SECTION_AUTHORITY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LDNS_SECTION_AUTHORITY@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ldns_pkt_rr_list_by_type
	cbz	x0, LBB0_15
; %bb.14:
	bl	_ldns_rr_list_deep_free
Lloh23:
	adrp	x8, _LDNS_PACKET_REFERRAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LDNS_PACKET_REFERRAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
	bl	_ldns_rr_list_deep_free
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_PACKET_UNKNOWN,4,2        ; @LDNS_PACKET_UNKNOWN
	.comm	_LDNS_RCODE_NXDOMAIN,8,3        ; @LDNS_RCODE_NXDOMAIN
	.comm	_LDNS_PACKET_NXDOMAIN,4,2       ; @LDNS_PACKET_NXDOMAIN
	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
	.comm	_LDNS_SECTION_AUTHORITY,4,2     ; @LDNS_SECTION_AUTHORITY
	.comm	_LDNS_PACKET_NODATA,4,2         ; @LDNS_PACKET_NODATA
	.comm	_LDNS_RR_TYPE_NS,4,2            ; @LDNS_RR_TYPE_NS
	.comm	_LDNS_PACKET_REFERRAL,4,2       ; @LDNS_PACKET_REFERRAL
	.comm	_LDNS_PACKET_ANSWER,4,2         ; @LDNS_PACKET_ANSWER
.subsections_via_symbols
