	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_wire2str_pkt_scan        ## -- Begin function sldns_wire2str_pkt_scan
	.p2align	4, 0x90
_sldns_wire2str_pkt_scan:               ## @sldns_wire2str_pkt_scan
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rsi
	movq	_LDNS_HEADER_SIZE@GOTPCREL(%rip), %rdi
	xorl	%r15d, %r15d
	movl	$0, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$0, %eax
	movl	$0, %r12d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	cmpq	(%rdi), %rsi
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jb	LBB0_2
## %bb.1:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %r13
	callq	_LDNS_QDCOUNT
	movq	%rax, %r12
	movq	(%r14), %rdi
	callq	_LDNS_ANCOUNT
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_LDNS_NSCOUNT
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	callq	_LDNS_ARCOUNT
	movq	%r13, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
LBB0_2:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%rcx, %r13
	movq	%rdx, %rbx
	callq	_sldns_wire2str_header_scan
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	addl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %rbx
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	testl	%r12d, %r12d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.3:
	decl	%r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r13d
	movq	%r14, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_sldns_wire2str_rrquestion_scan
	movq	%rax, %rbx
	addl	%r13d, %ebx
	subl	$1, %r12d
	setb	%al
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%al, %al
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %r12
	addl	%ebx, %r12d
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %rbx
	addl	%r12d, %ebx
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.8:
	decl	%r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r12d
	movq	%r14, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_sldns_wire2str_rr_scan
	movq	%rax, %rbx
	addl	%r12d, %ebx
	subl	$1, %r15d
	setb	%al
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	testb	%al, %al
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
	jmp	LBB0_12
LBB0_10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %r15
	addl	%ebx, %r15d
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %rbx
	addl	%r15d, %ebx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.13:
	decl	%ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r15d
	movq	%r14, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%rcx, %rbx
	movq	%r13, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_sldns_wire2str_rr_scan
	movq	%rbx, %rcx
	movq	%rax, %rbx
	addl	%r15d, %ebx
	subl	$1, %ecx
	setb	%al
	cmpq	$0, (%r14)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testb	%al, %al
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
LBB0_16:
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %r14
	addl	%ebx, %r14d
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %rbx
	addl	%r14d, %ebx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.18:
	decl	%ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rcx, %rbx
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_sldns_wire2str_rr_scan
	movq	%rbx, %rcx
	movq	%rax, %rbx
	addl	%r14d, %ebx
	subl	$1, %ecx
	setb	%al
	cmpq	$0, (%r15)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	testb	%al, %al
	je	LBB0_19
	jmp	LBB0_21
LBB0_17:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_21:
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %r14
	addl	%ebx, %r14d
	cmpq	$0, (%r15)
	je	LBB0_23
## %bb.22:
	leaq	L_.str.6(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	callq	_print_remainder_hex
	addl	%eax, %r14d
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	addl	%r14d, %eax
	movl	%eax, %r14d
LBB0_23:
	movl	%r14d, %eax
	addq	$72, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	";; QUESTION SECTION:\n"

L_.str.2:                               ## @.str.2
	.asciz	";; ANSWER SECTION:\n"

L_.str.3:                               ## @.str.3
	.asciz	";; AUTHORITY SECTION:\n"

L_.str.4:                               ## @.str.4
	.asciz	";; ADDITIONAL SECTION:\n"

L_.str.5:                               ## @.str.5
	.asciz	";; MSG SIZE  rcvd: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	";; trailing garbage 0x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_wire2str_pkt_scan        ; -- Begin function sldns_wire2str_pkt_scan
	.p2align	2
_sldns_wire2str_pkt_scan:               ; @sldns_wire2str_pkt_scan
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x24, [x0]
	ldr	x23, [x1]
Lloh0:
	adrp	x8, _LDNS_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x23, x8
	b.hs	LBB0_2
; %bb.1:
	mov	w27, #0
	mov	w26, #0
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
	mov	w28, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x24
	bl	_LDNS_QDCOUNT
	mov	x28, x0
	ldr	x0, [x22]
	bl	_LDNS_ANCOUNT
	mov	x27, x0
	ldr	x0, [x22]
	bl	_LDNS_NSCOUNT
	mov	x26, x0
	ldr	x0, [x22]
	bl	_LDNS_ARCOUNT
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_sldns_wire2str_header_scan
	mov	x25, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w25, w0, w25
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w25, w25, w0
	cbz	w28, LBB0_6
; %bb.4:
	sub	w28, w28, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x24
	mov	x5, x23
	bl	_sldns_wire2str_rrquestion_scan
	add	w25, w25, w0
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	w28, #0, #4, ne
	sub	w28, w28, #1
	b.ne	LBB0_5
LBB0_6:
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w25, w25, w0
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w25, w25, w0
	cbz	w27, LBB0_9
; %bb.7:
	sub	w27, w27, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x24
	mov	x5, x23
	bl	_sldns_wire2str_rr_scan
	add	w25, w25, w0
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	w27, #0, #4, ne
	sub	w27, w27, #1
	b.ne	LBB0_8
LBB0_9:
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w25, w25, w0
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w25, w25, w0
	cbz	w26, LBB0_12
; %bb.10:
	sub	w26, w26, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x24
	mov	x5, x23
	bl	_sldns_wire2str_rr_scan
	add	w25, w25, w0
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	w26, #0, #4, ne
	sub	w26, w26, #1
	b.ne	LBB0_11
LBB0_12:
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w25, w25, w0
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w25, w25, w0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	w8, LBB0_15
; %bb.13:
	sub	w26, w8, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x24
	mov	x5, x23
	bl	_sldns_wire2str_rr_scan
	add	w25, w25, w0
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	w26, #0, #4, ne
	sub	w26, w26, #1
	b.ne	LBB0_14
LBB0_15:
	str	x23, [sp]
Lloh19:
	adrp	x2, l_.str.5@PAGE
Lloh20:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w23, w25, w0
	ldr	x8, [x21]
	cbz	x8, LBB0_17
; %bb.16:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_print_remainder_hex
	add	w21, w23, w0
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_sldns_str_print
	add	w23, w21, w0
LBB0_17:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_HEADER_SIZE,8,3           ; @LDNS_HEADER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	";; QUESTION SECTION:\n"

l_.str.2:                               ; @.str.2
	.asciz	";; ANSWER SECTION:\n"

l_.str.3:                               ; @.str.3
	.asciz	";; AUTHORITY SECTION:\n"

l_.str.4:                               ; @.str.4
	.asciz	";; ADDITIONAL SECTION:\n"

l_.str.5:                               ; @.str.5
	.asciz	";; MSG SIZE  rcvd: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	";; trailing garbage 0x"

.subsections_via_symbols
