	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_wrongly_truncated
_detect_wrongly_truncated:              ## @detect_wrongly_truncated
	.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
	xorl	%r14d, %r14d
	cmpl	$1, (%rdi)
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	8(%rax), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	(%rdx), %rsi
	movq	_sec_status_secure@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, (%rsi)
	je	LBB0_9
## %bb.4:
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movq	(%rdi), %rdi
	cmpq	%rdx, (%rdi)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_7
LBB0_8:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
	.comm	_sec_status_secure,8,3          ## @sec_status_secure
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"truncating to minimal response"

	.no_dead_strip	_detect_wrongly_truncated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_wrongly_truncated
_detect_wrongly_truncated:              ; @detect_wrongly_truncated
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x19, #16]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w0, [x8, #8]
	bl	_ntohs
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x9, x8, [x19, #8]
	ldr	x10, [x8, x9, lsl #3]
	ldr	x10, [x10]
	ldr	x11, [x10]
Lloh3:
	adrp	x10, _sec_status_secure@GOTPAGE
Lloh4:
	ldr	x10, [x10, _sec_status_secure@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x11, x10
	b.ne	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	cbz	x9, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	ldr	x11, [x11]
	ldr	x11, [x11]
	cmp	x11, x10
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_9:
Lloh6:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
	.comm	_sec_status_secure,8,3          ; @sec_status_secure
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"truncating to minimal response"

	.no_dead_strip	_detect_wrongly_truncated
.subsections_via_symbols
