	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_caps_strip_reply               ## -- Begin function caps_strip_reply
	.p2align	4, 0x90
_caps_strip_reply:                      ## @caps_strip_reply
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	movq	_BIT_AA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_11
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movl	8(%r14), %eax
	subl	%eax, 16(%r14)
	movq	$0, 8(%r14)
LBB0_4:
	movq	24(%r14), %rbx
	movq	32(%r14), %rax
	addq	%rbx, %rax
	cmpq	%rax, %rbx
	jae	LBB0_11
## %bb.5:
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_ntohs
	cmpq	(%r15), %rax
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	32(%r14), %rax
	addq	24(%r14), %rax
	cmpq	%rax, %rbx
	jb	LBB0_6
	jmp	LBB0_11
LBB0_7:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_verbose
	movslq	16(%r14), %rcx
	leaq	-1(%rcx), %rax
	cmpq	%rax, %rbx
	jae	LBB0_9
## %bb.8:
	movq	40(%r14), %rdx
	movq	-8(%rdx,%rcx,8), %rcx
	movq	%rcx, (%rdx,%rbx,8)
LBB0_9:
	movl	%eax, 16(%r14)
	decq	32(%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_AA,4,2                     ## @BIT_AA
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"caps fallback: removing additional section"

	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
L_.str.1:                               ## @.str.1
	.asciz	"caps fallback: removing NS rrset"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_caps_strip_reply               ; -- Begin function caps_strip_reply
	.p2align	2
_caps_strip_reply:                      ; @caps_strip_reply
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BIT_AA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BIT_AA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #16]
	sub	w8, w9, w8
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
LBB0_4:
	ldp	x20, x8, [x19, #24]
	add	x8, x8, x20
	cmp	x20, x8
	b.hs	LBB0_11
; %bb.5:
Lloh8:
	adrp	x21, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w0, [x8]
	bl	_ntohs
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldp	x8, x9, [x19, #24]
	add	x8, x9, x8
	cmp	x20, x8
	b.lo	LBB0_6
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
	ldrsw	x8, [x19, #16]
	sub	x8, x8, #1
	cmp	x20, x8
	b.hs	LBB0_10
; %bb.9:
	ldr	x9, [x19, #40]
	ldr	x10, [x9, x8, lsl #3]
	str	x10, [x9, x20, lsl #3]
LBB0_10:
	str	w8, [x19, #16]
	ldr	x8, [x19, #32]
	sub	x8, x8, #1
	str	x8, [x19, #32]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_AA,4,2                     ; @BIT_AA
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"caps fallback: removing additional section"

	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
l_.str.1:                               ; @.str.1
	.asciz	"caps fallback: removing NS rrset"

.subsections_via_symbols
