	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_nsec_bitmap_covers_type   ## -- Begin function ldns_nsec_bitmap_covers_type
	.p2align	4, 0x90
_ldns_nsec_bitmap_covers_type:          ## @ldns_nsec_bitmap_covers_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_BITMAP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	%r12, %rdi
	callq	_ldns_rdf_data
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ldns_rdf_data
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_ldns_rdf_size
	cltq
	leaq	(,%rax,4), %rcx
	addq	%r13, %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_9
## %bb.2:
	movl	%r14d, %edx
	sarl	$8, %edx
	movl	%r14d, %eax
	shrl	$3, %eax
	andl	$31, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%rsi,4), %rbx
	addq	$8, %rbx
	cmpq	%rcx, %rbx
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rbx)
	jg	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	4(%rbx), %rsi
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%esi, %eax
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%rsi,4), %rdi
	addq	$8, %rdi
	cmpq	%rcx, %rdi
	ja	LBB0_8
## %bb.7:
	andb	$7, %r14b
	movl	$128, %r15d
	movl	%r14d, %ecx
	shrl	%cl, %r15d
	movl	%eax, %eax
	andl	8(%rbx,%rax,4), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RDF_TYPE_BITMAP,8,3       ## @LDNS_RDF_TYPE_BITMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_nsec_bitmap_covers_type   ; -- Begin function ldns_nsec_bitmap_covers_type
	.p2align	2
_ldns_nsec_bitmap_covers_type:          ; @ldns_nsec_bitmap_covers_type
	.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_7
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_ldns_rdf_get_type
Lloh0:
	adrp	x8, _LDNS_RDF_TYPE_BITMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RDF_TYPE_BITMAP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	bl	_ldns_rdf_data
	mov	x20, x0
	mov	x0, x21
	bl	_ldns_rdf_data
	mov	x22, x0
	mov	x0, x21
	bl	_ldns_rdf_size
	add	x8, x22, w0, sxtw #2
	cmp	x20, x8
	b.hs	LBB0_6
; %bb.2:
	asr	w9, w19, #8
	ubfx	w10, w19, #3, #5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x20]
	cmp	w11, w9
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x11, [x20, #4]
	add	x12, x20, x11, lsl #2
	add	x12, x12, #8
	ccmp	w10, w11, #0, eq
	ccmp	x12, x8, #2, lt
	b.ls	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w11, #2
	add	x20, x20, w11, sxtw #2
	cmp	x20, x8
	b.lo	LBB0_3
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
LBB0_8:
	add	w8, w10, #2
	ldr	w8, [x20, w8, uxtw #2]
	and	w9, w19, #0x7
	mov	w10, #128
	lsr	w9, w10, w9
	and	w0, w8, w9
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RDF_TYPE_BITMAP,8,3       ; @LDNS_RDF_TYPE_BITMAP
.subsections_via_symbols
