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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_nsec_bitmap_clear_type    ; -- Begin function ldns_nsec_bitmap_clear_type
	.p2align	2
_ldns_nsec_bitmap_clear_type:           ; @ldns_nsec_bitmap_clear_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_8
; %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	w10, w19, #8
	ubfx	w9, w19, #3, #5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x20]
	cmp	w11, w10
	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	w9, w11, #0, eq
	ccmp	x12, x8, #2, lt
	b.ls	LBB0_9
; %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:
Lloh3:
	adrp	x8, _LDNS_STATUS_TYPE_NOT_IN_BITMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_STATUS_TYPE_NOT_IN_BITMAP@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	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_9:
	and	w8, w19, #0x7
	mov	w10, #-129
	asr	w8, w10, w8
	add	w9, w9, #2
	lsl	x9, x9, #2
	ldr	w10, [x20, x9]
	and	w8, w10, w8
	str	w8, [x20, x9]
Lloh5:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RDF_TYPE_BITMAP,8,3       ; @LDNS_RDF_TYPE_BITMAP
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_TYPE_NOT_IN_BITMAP,4,2 ; @LDNS_STATUS_TYPE_NOT_IN_BITMAP
.subsections_via_symbols
