	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chunk_rrlist_get_current
_chunk_rrlist_get_current:              ## @chunk_rrlist_get_current
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r13d, %r13d
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_LDNS_HEADER_SIZE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jb	LBB0_17
## %bb.2:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_LDNS_ANCOUNT
	cmpl	%r15d, %eax
	jle	LBB0_17
## %bb.3:
	movq	(%rbx), %rdx
	cmpq	%r14, %rdx
	jbe	LBB0_17
## %bb.4:
	movl	8(%rbx), %esi
	leaq	-44(%rbp), %rdi
	callq	_sldns_buffer_init_frm_data
	testq	%r14, %r14
	je	LBB0_10
## %bb.5:
	leaq	-44(%rbp), %rdi
	movq	%r14, %rsi
	callq	_sldns_buffer_set_position
LBB0_6:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sldns_buffer_current
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_pkt_dname_len
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	leaq	-44(%rbp), %rdi
	callq	_sldns_buffer_remaining
	cmpl	$10, %eax
	jl	LBB0_17
## %bb.8:
	movq	24(%rbp), %r14
	movq	16(%rbp), %r15
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sldns_buffer_read_u16
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_sldns_buffer_read_u16
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_sldns_buffer_read_u32
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_sldns_buffer_read_u16
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_sldns_buffer_remaining
	cmpl	(%r14), %eax
	jl	LBB0_17
## %bb.9:
	movq	40(%rbp), %r15
	movq	32(%rbp), %r12
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sldns_buffer_current
	movq	%rax, (%r12)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sldns_buffer_skip
	movq	%rbx, %rdi
	callq	_sldns_buffer_position
	movq	%rax, (%r15)
	movl	$1, %r13d
	jmp	LBB0_17
LBB0_10:
	movq	(%r12), %rsi
	leaq	-44(%rbp), %rdi
	callq	_sldns_buffer_set_position
	movl	8(%rbx), %edi
	callq	_LDNS_QDCOUNT
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_pkt_dname_len
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	callq	_sldns_buffer_remaining
	cmpl	$4, %eax
	jl	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_sldns_buffer_skip
	incq	%r15
	movl	8(%rbx), %edi
	callq	_LDNS_QDCOUNT
	cmpq	%rax, %r15
	jb	LBB0_12
	jmp	LBB0_6
LBB0_16:
	xorl	%r13d, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_HEADER_SIZE,8,3           ## @LDNS_HEADER_SIZE
	.no_dead_strip	_chunk_rrlist_get_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chunk_rrlist_get_current
_chunk_rrlist_get_current:              ; @chunk_rrlist_get_current
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_10
; %bb.1:
	mov	x24, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x27, _LDNS_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _LDNS_HEADER_SIZE@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.lo	LBB0_9
; %bb.2:
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x25, x2
	mov	x26, x1
	ldr	w0, [x24, #8]
	bl	_LDNS_ANCOUNT
	cmp	w0, w26
	b.le	LBB0_9
; %bb.3:
	ldr	x2, [x24]
	cmp	x2, x25
	b.ls	LBB0_9
; %bb.4:
	ldr	w1, [x24, #8]
	add	x0, sp, #12
	bl	_sldns_buffer_init_frm_data
	cbz	x25, LBB0_11
; %bb.5:
	add	x0, sp, #12
	mov	x1, x25
	bl	_sldns_buffer_set_position
LBB0_6:
	add	x0, sp, #12
	bl	_sldns_buffer_current
	str	x0, [x23]
	add	x0, sp, #12
	bl	_pkt_dname_len
	cbz	x0, LBB0_10
; %bb.7:
	add	x0, sp, #12
	bl	_sldns_buffer_remaining
	cmp	w0, #10
	b.lt	LBB0_9
; %bb.8:
	add	x0, sp, #12
	bl	_sldns_buffer_read_u16
	str	w0, [x22]
	add	x0, sp, #12
	bl	_sldns_buffer_read_u16
	str	w0, [x21]
	add	x0, sp, #12
	bl	_sldns_buffer_read_u32
	str	w0, [x20]
	add	x0, sp, #12
	bl	_sldns_buffer_read_u16
	str	w0, [x19]
	add	x0, sp, #12
	bl	_sldns_buffer_remaining
	ldr	w8, [x19]
	cmp	w0, w8
	b.ge	LBB0_16
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	ldr	x1, [x27]
	add	x0, sp, #12
	bl	_sldns_buffer_set_position
	ldr	w0, [x24, #8]
	bl	_LDNS_QDCOUNT
	cbz	x0, LBB0_6
; %bb.12:
	mov	x25, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_pkt_dname_len
	cbz	x0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #12
	bl	_sldns_buffer_remaining
	cmp	w0, #4
	b.lt	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #12
	mov	w1, #4
	bl	_sldns_buffer_skip
	add	x25, x25, #1
	ldr	w0, [x24, #8]
	bl	_LDNS_QDCOUNT
	cmp	x25, x0
	b.lo	LBB0_13
	b	LBB0_6
LBB0_16:
	ldp	x21, x20, [x29, #16]
	add	x0, sp, #12
	bl	_sldns_buffer_current
	str	x0, [x21]
	ldr	w1, [x19]
	add	x0, sp, #12
	bl	_sldns_buffer_skip
	add	x0, sp, #12
	bl	_sldns_buffer_position
	str	x0, [x20]
	mov	w0, #1
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_HEADER_SIZE,8,3           ; @LDNS_HEADER_SIZE
	.no_dead_strip	_chunk_rrlist_get_current
.subsections_via_symbols
