	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_rdf_reverse_aaaa
_ldns_rdf_reverse_aaaa:                 ## @ldns_rdf_reverse_aaaa
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	_LDNS_IP6ADDRLEN@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leal	(%rax,%rcx,4), %edi
	incl	%edi
	callq	_alloca
	movq	%rax, %r13
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$-1, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_rdf_data
	movq	_LDNS_IP6ADDRLEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	addl	%r14d, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%r12d, %edi
	andl	$-4, %edi
	addq	%r13, %rdi
	movl	%ecx, %edx
	andl	$15, %edx
	sarl	$4, %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	incq	%r15
	movslq	(%rbx), %rax
	addq	$4, %r12
	decl	%r14d
	cmpq	%rax, %r15
	jl	LBB0_2
## %bb.3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_4:
	shll	$2, %eax
	cltq
	movq	%r13, %rdi
	addq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_dname_new_frm_str         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_IP6ADDRLEN,4,2            ## @LDNS_IP6ADDRLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x.%x."

	.no_dead_strip	_ldns_rdf_reverse_aaaa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_rdf_reverse_aaaa
_ldns_rdf_reverse_aaaa:                 ; @ldns_rdf_reverse_aaaa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x23, _LDNS_IP6ADDRLEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LDNS_IP6ADDRLEN@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w0, w8, lsl #2
	add	w0, w8, #1
	bl	_alloca
	mov	x20, x0
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	mov	w26, #-1
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_ldns_rdf_data
	ldr	w8, [x23]
	add	w8, w26, w8
	ldr	w8, [x0, w8, sxtw #2]
	and	x9, x24, #0xfffffffc
	add	x0, x20, x9
	and	w9, w8, #0xf
	asr	w8, w8, #4
	stp	x9, x8, [sp]
	mov	x1, x22
	bl	_sprintf
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	sub	w26, w26, #1
	cmp	x25, x8
	b.lt	LBB0_2
LBB0_3:
	lsl	w8, w8, #2
	add	x0, x20, w8, sxtw
	mov	x1, x19
	bl	_strcpy
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ldns_dname_new_frm_str
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_IP6ADDRLEN,4,2            ; @LDNS_IP6ADDRLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x.%x."

	.no_dead_strip	_ldns_rdf_reverse_aaaa
.subsections_via_symbols
