	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_rr2buffer_wire_compress   ## -- Begin function ldns_rr2buffer_wire_compress
	.p2align	4, 0x90
_ldns_rr2buffer_wire_compress:          ## @ldns_rr2buffer_wire_compress
	.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	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_ldns_rr_owner
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_ldns_rr_owner
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_ldns_dname2buffer_wire_compress
LBB0_2:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_ldns_buffer_reserve
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_ldns_rr_get_type
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ldns_buffer_write_u16
	movq	%r13, %rdi
	callq	_ldns_rr_get_class
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ldns_buffer_write_u16
LBB0_4:
	movq	_LDNS_SECTION_QUESTION@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_17
## %bb.5:
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_ldns_buffer_reserve
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r13, %rdi
	callq	_ldns_rr_ttl
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ldns_buffer_write_u32
	movq	%r14, %rdi
	callq	_ldns_buffer_position
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ldns_buffer_write_u16
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	_LDNS_RR_COMPRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_ldns_rr_get_type
	movl	%eax, %edi
	callq	_ldns_rr_descript
	movq	(%rax), %r12
	movq	%r13, %rdi
	callq	_ldns_rr_rd_count
	cmpq	%r12, %rbx
	jne	LBB0_9
## %bb.12:
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_rdf
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_ldns_rdf2buffer_wire_compress
	incq	%rbx
	movq	%r13, %rdi
	callq	_ldns_rr_rd_count
	cmpq	%rax, %rbx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_9:
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_15
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_rdf
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ldns_rdf2buffer_wire
	incq	%rbx
	movq	%r13, %rdi
	callq	_ldns_rr_rd_count
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_15:
	testq	%r12, %r12
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_ldns_buffer_position
	subq	%r12, %rax
	leaq	-2(%rax), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ldns_buffer_write_u16_at
LBB0_17:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_buffer_status             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_SECTION_QUESTION,4,2      ## @LDNS_SECTION_QUESTION
	.comm	_LDNS_RR_COMPRESS,8,3           ## @LDNS_RR_COMPRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_rr2buffer_wire_compress   ; -- Begin function ldns_rr2buffer_wire_compress
	.p2align	2
_ldns_rr2buffer_wire_compress:          ; @ldns_rr2buffer_wire_compress
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ldns_rr_owner
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ldns_rr_owner
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_ldns_dname2buffer_wire_compress
LBB0_2:
	mov	x0, x19
	mov	w1, #4
	bl	_ldns_buffer_reserve
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_ldns_rr_get_type
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_buffer_write_u16
	mov	x0, x20
	bl	_ldns_rr_get_class
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_buffer_write_u16
LBB0_4:
Lloh0:
	adrp	x8, _LDNS_SECTION_QUESTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_SECTION_QUESTION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.eq	LBB0_17
; %bb.5:
	mov	x0, x19
	mov	w1, #6
	bl	_ldns_buffer_reserve
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_ldns_rr_ttl
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_buffer_write_u32
	mov	x0, x19
	bl	_ldns_buffer_position
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_ldns_buffer_write_u16
	b	LBB0_8
LBB0_7:
	mov	x22, #0
LBB0_8:
Lloh3:
	adrp	x8, _LDNS_RR_COMPRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_COMPRESS@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_ldns_rr_get_type
	bl	_ldns_rr_descript
	ldr	x24, [x0]
	mov	x0, x20
	bl	_ldns_rr_rd_count
	cmp	x23, x24
	b.ne	LBB0_12
; %bb.9:
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_ldns_rr_rdf
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_ldns_rdf2buffer_wire_compress
	add	x23, x23, #1
	mov	x0, x20
	bl	_ldns_rr_rd_count
	cmp	x23, x0
	b.lt	LBB0_11
	b	LBB0_15
LBB0_12:
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x21, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ldns_rr_rdf
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rdf2buffer_wire
	add	x21, x21, #1
	mov	x0, x20
	bl	_ldns_rr_rd_count
	cmp	x21, x0
	b.lt	LBB0_14
LBB0_15:
	cbz	x22, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_ldns_buffer_position
	sub	x8, x0, x22
	sub	x2, x8, #2
	mov	x0, x19
	mov	x1, x22
	bl	_ldns_buffer_write_u16_at
LBB0_17:
	mov	x0, x19
	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
	b	_ldns_buffer_status
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_SECTION_QUESTION,4,2      ; @LDNS_SECTION_QUESTION
	.comm	_LDNS_RR_COMPRESS,8,3           ; @LDNS_RR_COMPRESS
.subsections_via_symbols
