	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compress_any_dname
_compress_any_dname:                    ## @compress_any_dname
	.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	%r8, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	movq	%rsi, %rdi
	callq	_sldns_buffer_position
	movq	%rax, %r12
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_compress_tree_lookup
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	%r15d, %edx
	movq	%rbx, %rcx
	callq	_write_compressed_dname
	testl	%eax, %eax
	je	LBB0_7
LBB0_4:
	movq	-48(%rbp), %r9
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_compress_tree_store
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_RETVAL_OUTMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	callq	_dname_buffer_write
	testl	%eax, %eax
	jne	LBB0_4
LBB0_7:
	movq	_RETVAL_TRUNC@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_RETVAL_OK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETVAL_TRUNC,4,2               ## @RETVAL_TRUNC
	.comm	_RETVAL_OUTMEM,4,2              ## @RETVAL_OUTMEM
	.comm	_RETVAL_OK,4,2                  ## @RETVAL_OK
	.no_dead_strip	_compress_any_dname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compress_any_dname
_compress_any_dname:                    ; @compress_any_dname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	x0, x1
	bl	_sldns_buffer_position
	mov	x22, x0
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_compress_tree_lookup
	mov	x23, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	bl	_write_compressed_dname
	cbz	w0, LBB0_4
LBB0_2:
	ldr	x5, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x23
	bl	_compress_tree_store
Lloh0:
	adrp	x8, _RETVAL_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RETVAL_OK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RETVAL_OUTMEM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RETVAL_OUTMEM@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	b	LBB0_5
LBB0_3:
	mov	x0, x24
	mov	x1, x21
	bl	_dname_buffer_write
	cbnz	w0, LBB0_2
LBB0_4:
Lloh4:
	adrp	x8, _RETVAL_TRUNC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RETVAL_TRUNC@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RETVAL_TRUNC,4,2               ; @RETVAL_TRUNC
	.comm	_RETVAL_OUTMEM,4,2              ; @RETVAL_OUTMEM
	.comm	_RETVAL_OK,4,2                  ; @RETVAL_OK
	.no_dead_strip	_compress_any_dname
.subsections_via_symbols
