	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function val_new_getmsg
_val_new_getmsg:                        ## @val_new_getmsg
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %ecx
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_3
## %bb.2:
	movq	%rax, 16(%r14)
	movq	(%rax), %rsi
	jmp	LBB0_6
LBB0_3:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movl	8(%rbx), %edi
	movl	$16, %esi
	callq	_regional_alloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movl	12(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movl	8(%rbx), %edi
	movl	$24, %esi
	callq	_regional_alloc
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	(%rbx), %eax
	andl	$15, %eax
	movq	_BIT_QR@GOTPCREL(%rip), %rcx
	movq	_BIT_RA@GOTPCREL(%rip), %rdx
	movq	_BIT_CD@GOTPCREL(%rip), %rsi
	movq	_BIT_RD@GOTPCREL(%rip), %rdi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	4(%rbx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	movq	16(%r14), %rcx
	movq	(%rcx), %rsi
	movl	%eax, (%rsi)
	movl	$1, 4(%rsi)
LBB0_6:
	movl	12(%rbx), %eax
	movl	%eax, 24(%r14)
	movl	8(%rbx), %edi
	movl	$20, %edx
	callq	_regional_alloc_init
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edx
	movq	_RR_COUNT_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jg	LBB0_14
## %bb.11:
	movl	8(%rbx), %edi
	movq	16(%rax), %rsi
	shll	$3, %edx
	callq	_regional_alloc_init
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	$0, (%r14)
	jmp	LBB0_15
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RCODE_NOERROR,4,2         ## @LDNS_RCODE_NOERROR
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"constructing reply for validation"

	.comm	_BIT_QR,4,2                     ## @BIT_QR
	.comm	_BIT_RA,4,2                     ## @BIT_RA
	.comm	_BIT_CD,4,2                     ## @BIT_CD
	.comm	_BIT_RD,4,2                     ## @BIT_RD
	.comm	_RR_COUNT_MAX,4,2               ## @RR_COUNT_MAX
	.no_dead_strip	_val_new_getmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function val_new_getmsg
_val_new_getmsg:                        ; @val_new_getmsg
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.2:
	str	x8, [x19, #16]
	ldr	x1, [x8]
	b	LBB0_6
LBB0_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	w0, [x20, #8]
	mov	w1, #16
	bl	_regional_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.4:
	ldp	w8, w9, [x20, #8]
	str	w9, [x0, #8]
	mov	x0, x8
	mov	w1, #24
	bl	_regional_alloc
	ldr	x8, [x19, #16]
	str	x0, [x8]
	cbz	x0, LBB0_10
; %bb.5:
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldp	w8, w9, [x20]
	and	w8, w8, #0xf
Lloh8:
	adrp	x10, _BIT_QR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BIT_QR@GOTPAGEOFF]
Lloh10:
	adrp	x11, _BIT_RA@GOTPAGE
Lloh11:
	ldr	x11, [x11, _BIT_RA@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	adrp	x12, _BIT_CD@GOTPAGE
Lloh15:
	ldr	x12, [x12, _BIT_CD@GOTPAGEOFF]
Lloh16:
	adrp	x13, _BIT_RD@GOTPAGE
Lloh17:
	ldr	x13, [x13, _BIT_RD@GOTPAGEOFF]
Lloh18:
	ldr	w12, [x12]
Lloh19:
	ldr	w13, [x13]
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w9
	orr	w8, w8, w12
	orr	w8, w8, w13
	ldr	x9, [x19, #16]
	ldr	x1, [x9]
	mov	w9, #1
	stp	w8, w9, [x1]
LBB0_6:
	ldp	w0, w8, [x20, #8]
	str	w8, [x19, #24]
	mov	w2, #20
	bl	_regional_alloc_init
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
Lloh20:
	adrp	x10, _RR_COUNT_MAX@GOTPAGE
Lloh21:
	ldr	x10, [x10, _RR_COUNT_MAX@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	w9, w10
	b.gt	LBB0_10
; %bb.8:
	ldr	w0, [x20, #8]
	ldr	x1, [x8, #16]
	lsl	w2, w9, #3
	bl	_regional_alloc_init
	ldr	x8, [x19, #8]
	str	x0, [x8]
	cbz	x0, LBB0_10
; %bb.9:
	str	xzr, [x19]
	b	LBB0_11
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RCODE_NOERROR,4,2         ; @LDNS_RCODE_NOERROR
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"constructing reply for validation"

	.comm	_BIT_QR,4,2                     ; @BIT_QR
	.comm	_BIT_RA,4,2                     ; @BIT_RA
	.comm	_BIT_CD,4,2                     ; @BIT_CD
	.comm	_BIT_RD,4,2                     ; @BIT_RD
	.comm	_RR_COUNT_MAX,4,2               ; @RR_COUNT_MAX
	.no_dead_strip	_val_new_getmsg
.subsections_via_symbols
