	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grab_nsec
_grab_nsec:                             ## @grab_nsec
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	40(%rbp), %r14d
	pushq	$0
	pushq	%r14
	callq	_rrset_cache_lookup
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	8(%rax), %rax
	cmpl	%r14d, 16(%rax)
	jge	LBB0_4
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_4:
	movq	(%rax), %rcx
	movq	_sec_status_secure@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.5:
	movq	_sec_status_unchecked@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.6:
	cmpq	$0, 8(%rax)
	jle	LBB0_16
LBB0_7:
	cmpl	$0, 24(%rbp)
	je	LBB0_13
## %bb.8:
	movq	32(%rbp), %rbx
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_nsec_has_type
	testq	%rax, %rax
	jne	LBB0_16
LBB0_11:
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_nsec3_no_type
	testl	%eax, %eax
	je	LBB0_16
LBB0_13:
	movq	16(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_packed_rrset_copy_region
	movq	%rax, %rbx
LBB0_17:
	movq	%r12, %rdi
	callq	_lock_rw_unlock
LBB0_18:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sec_status_secure,8,3          ## @sec_status_secure
	.comm	_sec_status_unchecked,8,3       ## @sec_status_unchecked
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ## @LDNS_RR_TYPE_NSEC3
	.no_dead_strip	_grab_nsec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grab_nsec
_grab_nsec:                             ; @grab_nsec
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x7
	mov	x20, x6
	mov	x22, x3
	ldr	w21, [x29, #24]
	mov	x6, x21
	mov	w7, #0
	bl	_rrset_cache_lookup
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #16]
	cmp	w9, w21
	b.ge	LBB0_4
LBB0_2:
	mov	x20, #0
	b	LBB0_13
LBB0_3:
	mov	x20, #0
	b	LBB0_14
LBB0_4:
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _sec_status_secure@GOTPAGE
Lloh1:
	ldr	x10, [x10, _sec_status_secure@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.5:
Lloh3:
	adrp	x10, _sec_status_unchecked@GOTPAGE
Lloh4:
	ldr	x10, [x10, _sec_status_unchecked@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.6:
	ldr	x8, [x8, #8]
	cmp	x8, #1
	b.lt	LBB0_2
LBB0_7:
	cbz	w23, LBB0_12
; %bb.8:
	ldr	x23, [x29, #16]
Lloh6:
	adrp	x8, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x23
	bl	_nsec_has_type
	cbnz	x0, LBB0_2
LBB0_10:
Lloh9:
	adrp	x8, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x23
	bl	_nsec3_no_type
	cbz	w0, LBB0_2
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_packed_rrset_copy_region
	mov	x20, x0
LBB0_13:
	mov	x0, x19
	bl	_lock_rw_unlock
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_sec_status_secure,8,3          ; @sec_status_secure
	.comm	_sec_status_unchecked,8,3       ; @sec_status_unchecked
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ; @LDNS_RR_TYPE_NSEC3
	.no_dead_strip	_grab_nsec
.subsections_via_symbols
