	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkt_dname_tolower              ## -- Begin function pkt_dname_tolower
	.p2align	4, 0x90
_pkt_dname_tolower:                     ## @pkt_dname_tolower
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_sldns_buffer_end
	cmpq	%r15, %rax
	jbe	LBB0_9
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%r15), %r13d
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r15
	movl	%r13d, %edi
	callq	_LABEL_IS_PTR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	leaq	(%r15,%rax,4), %r12
	movq	%r14, %rdi
	callq	_sldns_buffer_end
	cmpq	%rax, %r12
	jae	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rbx
	movzbl	(%r15), %edi
	callq	_tolower
	addq	$4, %r15
	movl	%eax, (%rbx)
	decl	%r13d
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_sldns_buffer_end
	cmpq	%rax, %r15
	jb	LBB0_2
	jmp	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_PTR_OFFSET
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_sldns_buffer_limit
	cmpq	%rax, %r12
	jae	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_PTR_OFFSET
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sldns_buffer_at
	movq	%rax, %r15
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rdx), %eax
	movq	_MAX_COMPRESS_PTRS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_COMPRESS_PTRS,4,2          ## @MAX_COMPRESS_PTRS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkt_dname_tolower              ; -- Begin function pkt_dname_tolower
	.p2align	2
_pkt_dname_tolower:                     ; @pkt_dname_tolower
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_sldns_buffer_end
	cmp	x0, x20
	b.ls	LBB0_9
; %bb.1:
	mov	w23, #0
Lloh0:
	adrp	x24, _MAX_COMPRESS_PTRS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_COMPRESS_PTRS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w21, [x20]
	cbz	w21, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #4
	mov	x0, x21
	bl	_LABEL_IS_PTR
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x20, w21, sxtw #2
	mov	x0, x19
	bl	_sldns_buffer_end
	cmp	x22, x0
	b.hs	LBB0_9
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w21, w21, #1
	ldrb	w0, [x20]
	bl	_tolower
	str	w0, [x20], #4
	cbnz	w21, LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_sldns_buffer_end
	cmp	x20, x0
	b.lo	LBB0_2
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x20]
	mov	x0, x21
	bl	_PTR_OFFSET
	mov	x22, x0
	mov	x0, x19
	bl	_sldns_buffer_limit
	cmp	x22, x0
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x20]
	mov	x0, x21
	bl	_PTR_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_sldns_buffer_at
	mov	x20, x0
	add	w8, w23, #1
	ldr	w9, [x24]
	cmp	w23, w9
	mov	x23, x8
	b.le	LBB0_2
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_COMPRESS_PTRS,4,2          ; @MAX_COMPRESS_PTRS
.subsections_via_symbols
