	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compress_rdata
_compress_rdata:                        ## @compress_rdata
	.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
	movq	%r9, %rbx
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_sldns_buffer_position
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_sldns_buffer_skip
	addq	$16, %r13
	addq	$-2, %r12
	setne	%al
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.2:
	movq	%rbx, %rcx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r15), %edi
	cmpl	$128, %edi
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %edi
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	-96(%rbp), %rsi
	callq	_dname_count_size_labels
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_compress_any_dname
	movq	_RETVAL_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rax
	leaq	(%r13,%rax,8), %r13
	subq	%rax, %r12
	decq	%rbx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r14
	incq	%r14
	testq	%r14, %r14
	jne	LBB0_10
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	callq	_get_rdf_size
	movq	%rax, %r14
	testq	%r14, %r14
	je	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sldns_buffer_remaining
	cmpq	%r14, %rax
	jb	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %r13
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_sldns_buffer_write
	subq	%r14, %r12
	leaq	(%rbx,%r14,8), %r13
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	setne	%al
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r15
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_16:
	testb	%al, %al
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_19
## %bb.17:
	movq	%r14, %rdi
	callq	_sldns_buffer_remaining
	cmpq	%r12, %rax
	jae	LBB0_18
LBB0_11:
	movq	_RETVAL_TRUNC@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_sldns_buffer_write
LBB0_19:
	movq	%r14, %rdi
	callq	_sldns_buffer_position
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subq	%rsi, %rax
	leaq	-2(%rax), %rdx
	movq	%r14, %rdi
	callq	_sldns_buffer_write_u16_at
	movq	_RETVAL_OK@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETVAL_OK,4,2                  ## @RETVAL_OK
	.comm	_RETVAL_TRUNC,4,2               ## @RETVAL_TRUNC
	.no_dead_strip	_compress_rdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compress_rdata
_compress_rdata:                        ; @compress_rdata
	.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	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_sldns_buffer_position
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x28, [x23, #8]
	mov	x0, x19
	mov	w1, #2
	bl	_sldns_buffer_skip
	add	x21, x21, #16
	subs	x22, x22, #2
	cset	w8, ne
Lloh0:
	adrp	x27, _RETVAL_OK@GOTPAGE
Lloh1:
	ldr	x27, [x27, _RETVAL_OK@GOTPAGEOFF]
	cbz	x22, LBB0_13
; %bb.1:
	cbz	x28, LBB0_13
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x20]
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #129
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_dname_count_size_labels
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	mov	x3, x25
	mov	x4, x24
	bl	_compress_any_dname
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	add	x21, x21, x8, lsl #3
	sub	x22, x22, x8
	sub	x28, x28, #1
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	add	x26, x8, #1
	cbnz	x26, LBB0_9
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_get_rdf_size
	mov	x26, x0
	cbz	x26, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_sldns_buffer_remaining
	cmp	x0, x26
	b.lo	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x26
	bl	_sldns_buffer_write
	sub	x22, x22, x26
	add	x21, x21, x26, lsl #3
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x22, #0
	cset	w8, ne
	cbz	x22, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #4
	cbnz	x28, LBB0_3
LBB0_13:
	cbz	w8, LBB0_17
; %bb.14:
	mov	x0, x19
	bl	_sldns_buffer_remaining
	cmp	x0, x22
	b.hs	LBB0_16
LBB0_15:
Lloh2:
	adrp	x8, _RETVAL_TRUNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RETVAL_TRUNC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_16:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_sldns_buffer_write
LBB0_17:
	mov	x0, x19
	bl	_sldns_buffer_position
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	sub	x8, x0, x1
	sub	x2, x8, #2
	mov	x0, x19
	bl	_sldns_buffer_write_u16_at
	ldr	w0, [x27]
LBB0_18:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RETVAL_OK,4,2                  ; @RETVAL_OK
	.comm	_RETVAL_TRUNC,4,2               ; @RETVAL_TRUNC
	.no_dead_strip	_compress_rdata
.subsections_via_symbols
