	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_wire2str_apl_scan        ## -- Begin function sldns_wire2str_apl_scan
	.p2align	4, 0x90
_sldns_wire2str_apl_scan:               ## @sldns_wire2str_apl_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r15d
	cmpq	$4, (%rsi)
	jb	LBB0_32
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rdx, %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	callq	_sldns_read_uint16
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	movl	12(%rcx), %eax
	movq	_LDNS_APL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%eax, %ebx
	movslq	%ebx, %rsi
	movq	%rsi, %rdx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%rsi), %rdx
	cmpq	%rdx, (%r13)
	jb	LBB0_32
## %bb.2:
	movl	8(%rcx), %esi
	movq	_LDNS_APL_NEGATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_LDNS_APL_IP4@GOTPCREL(%rip), %rdi
	movq	_LDNS_APL_IP6@GOTPCREL(%rip), %r8
	cmpq	(%rdi), %r14
	je	LBB0_4
## %bb.3:
	cmpq	(%r8), %r14
	jne	LBB0_32
LBB0_4:
	testl	%eax, %ecx
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movslq	%eax, %r13
	jmp	LBB0_7
LBB0_6:
	xorl	%r13d, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_sldns_str_print
	addl	%eax, %r13d
	movq	_LDNS_APL_IP4@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_10
## %bb.8:
	testl	%ebx, %ebx
	jle	LBB0_20
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	16(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	jmp	LBB0_21
LBB0_10:
	movq	_LDNS_APL_IP6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_19
## %bb.11:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	L_.str.7(%rip), %rdx
	xorl	%eax, %eax
	callq	_sldns_str_print
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	addl	%eax, %r13d
	incq	%rbx
	cmpq	$16, %rbx
	je	LBB0_31
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %eax
	andl	$1, %eax
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_sldns_str_print
	addl	%eax, %r13d
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	jge	LBB0_12
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %rax
	movl	16(%rax,%rbx,4), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_sldns_str_print
	jmp	LBB0_13
LBB0_19:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_20:
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
LBB0_21:
	addl	%eax, %r13d
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %r14
	addl	%r13d, %r14d
	cmpl	$1, %ebx
	jle	LBB0_23
## %bb.22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	20(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
LBB0_24:
	addl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	addl	%r14d, %eax
	movq	%rax, %r14
	cmpl	$2, %ebx
	jle	LBB0_26
## %bb.25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	24(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	jmp	LBB0_27
LBB0_26:
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
LBB0_27:
	addl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %r13
	addl	%r14d, %r13d
	cmpl	$3, %ebx
	jle	LBB0_29
## %bb.28:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	28(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	jmp	LBB0_30
LBB0_29:
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_30:
	addl	%eax, %r13d
LBB0_31:
	leaq	L_.str.8(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_sldns_str_print
	movq	%rax, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	16(,%rax,4), %rax
	addq	%rax, (%r14)
	addl	%r13d, %r15d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subq	%rcx, (%rax)
LBB0_32:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_APL_NEGATION,4,2          ## @LDNS_APL_NEGATION
	.comm	_LDNS_APL_MASK,4,2              ## @LDNS_APL_MASK
	.comm	_LDNS_APL_IP4,8,3               ## @LDNS_APL_IP4
	.comm	_LDNS_APL_IP6,8,3               ## @LDNS_APL_IP6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"!"

L_.str.1:                               ## @.str.1
	.asciz	"%u:"

L_.str.2:                               ## @.str.2
	.asciz	"."

L_.str.3:                               ## @.str.3
	.asciz	"%d"

L_.str.4:                               ## @.str.4
	.asciz	"0"

L_.str.5:                               ## @.str.5
	.asciz	":"

L_.str.6:                               ## @.str.6
	.asciz	"%02x"

L_.str.7:                               ## @.str.7
	.asciz	"00"

L_.str.8:                               ## @.str.8
	.asciz	"/%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_wire2str_apl_scan        ; -- Begin function sldns_wire2str_apl_scan
	.p2align	2
_sldns_wire2str_apl_scan:               ; @sldns_wire2str_apl_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
	ldr	x8, [x1]
	cmp	x8, #4
	b.lo	LBB0_5
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_sldns_read_uint16
	ldr	x9, [x20]
	ldr	w8, [x9, #12]
Lloh0:
	adrp	x10, _LDNS_APL_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LDNS_APL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w26, w10, w8
	sxtw	x27, w26
	ldr	x10, [x19]
	add	x11, x27, #4
	cmp	x10, x11
	b.lo	LBB0_5
; %bb.2:
	mov	x23, x0
Lloh3:
	adrp	x25, _LDNS_APL_IP4@GOTPAGE
Lloh4:
	ldr	x25, [x25, _LDNS_APL_IP4@GOTPAGEOFF]
	ldr	x10, [x25]
Lloh5:
	adrp	x24, _LDNS_APL_IP6@GOTPAGE
Lloh6:
	ldr	x24, [x24, _LDNS_APL_IP6@GOTPAGEOFF]
	ldr	x11, [x24]
	cmp	x0, x10
	ccmp	x0, x11, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	w10, [x9, #8]
Lloh7:
	adrp	x9, _LDNS_APL_NEGATION@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LDNS_APL_NEGATION@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	cbz	w8, LBB0_7
; %bb.4:
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	sxtw	x28, w0
	b	LBB0_8
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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_7:
	mov	x28, #0
LBB0_8:
	str	x23, [sp]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	add	w28, w0, w28
	ldr	x8, [x25]
	cmp	x23, x8
	b.ne	LBB0_11
; %bb.9:
	cmp	w26, #1
	b.lt	LBB0_20
; %bb.10:
	ldr	x8, [x20]
	ldr	w8, [x8, #16]
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_11:
	ldr	x8, [x24]
	cmp	x23, x8
	b.ne	LBB0_31
; %bb.12:
	mov	x23, #0
Lloh16:
	adrp	x24, l_.str.6@PAGE
Lloh17:
	add	x24, x24, l_.str.6@PAGEOFF
Lloh18:
	adrp	x25, l_.str.7@PAGE
Lloh19:
	add	x25, x25, l_.str.7@PAGEOFF
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_sldns_str_print
	add	w28, w28, w0
	add	x23, x23, #1
	cmp	x23, #16
	b.eq	LBB0_31
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cbz	x23, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	tbnz	w23, #0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x22
	mov	x1, x21
Lloh20:
	adrp	x2, l_.str.5@PAGE
Lloh21:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_sldns_str_print
	add	w28, w28, w0
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	x23, x27
	b.ge	LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x23, lsl #2
	ldr	w8, [x8, #16]
	str	x8, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	b	LBB0_14
LBB0_20:
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_21:
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	add	w23, w28, w0
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	add	w23, w23, w0
	cmp	w26, #1
	b.le	LBB0_23
; %bb.22:
	ldr	x8, [x20]
	ldr	w8, [x8, #20]
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_24:
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	add	w23, w23, w0
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	add	w23, w23, w0
	cmp	w26, #2
	b.le	LBB0_26
; %bb.25:
	ldr	x8, [x20]
	ldr	w8, [x8, #24]
	str	x8, [sp]
Lloh32:
	adrp	x2, l_.str.3@PAGE
Lloh33:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_27
LBB0_26:
Lloh34:
	adrp	x2, l_.str.4@PAGE
Lloh35:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_27:
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	add	w23, w23, w0
Lloh36:
	adrp	x2, l_.str.2@PAGE
Lloh37:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	add	w23, w23, w0
	cmp	w26, #3
	b.le	LBB0_29
; %bb.28:
	ldr	x8, [x20]
	ldr	w8, [x8, #28]
	str	x8, [sp]
Lloh38:
	adrp	x2, l_.str.3@PAGE
Lloh39:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_30
LBB0_29:
Lloh40:
	adrp	x2, l_.str.4@PAGE
Lloh41:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_30:
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	add	w28, w23, w0
LBB0_31:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [sp]
Lloh42:
	adrp	x2, l_.str.8@PAGE
Lloh43:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_sldns_str_print
	add	w0, w28, w0
	add	w8, w26, #4
	ldr	x9, [x20]
	sxtw	x10, w8
	add	x8, x9, w8, sxtw #2
	str	x8, [x20]
	ldr	x8, [x19]
	sub	x8, x8, x10
	str	x8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_APL_NEGATION,4,2          ; @LDNS_APL_NEGATION
	.comm	_LDNS_APL_MASK,4,2              ; @LDNS_APL_MASK
	.comm	_LDNS_APL_IP4,8,3               ; @LDNS_APL_IP4
	.comm	_LDNS_APL_IP6,8,3               ; @LDNS_APL_IP6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"!"

l_.str.1:                               ; @.str.1
	.asciz	"%u:"

l_.str.2:                               ; @.str.2
	.asciz	"."

l_.str.3:                               ; @.str.3
	.asciz	"%d"

l_.str.4:                               ; @.str.4
	.asciz	"0"

l_.str.5:                               ; @.str.5
	.asciz	":"

l_.str.6:                               ; @.str.6
	.asciz	"%02x"

l_.str.7:                               ; @.str.7
	.asciz	"00"

l_.str.8:                               ; @.str.8
	.asciz	"/%u"

.subsections_via_symbols
