	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rrinternal_write_typeclassttl
_rrinternal_write_typeclassttl:         ## @rrinternal_write_typeclassttl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%rcx, %rbx
	movq	%rsi, %r14
	cmpl	$0, 24(%rbp)
	je	LBB0_3
## %bb.1:
	leaq	4(%rbx), %rax
	cmpq	%rdx, %rax
	ja	LBB0_6
## %bb.2:
	leaq	(%r14,%rbx,4), %rdi
	movl	%r8d, %esi
	callq	_sldns_write_uint16
	leaq	(%r14,%rbx,4), %rdi
	addq	$8, %rdi
	movl	%r15d, %esi
	jmp	LBB0_5
LBB0_3:
	leaq	10(%rbx), %rax
	cmpq	%rdx, %rax
	jbe	LBB0_4
LBB0_6:
	movq	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_sldns_buffer_position
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET_ERR                        ## TAILCALL
LBB0_4:
	movl	16(%rbp), %r12d
	leaq	(%r14,%rbx,4), %rdi
	movl	%r8d, %esi
	callq	_sldns_write_uint16
	leaq	(%r14,%rbx,4), %rdi
	addq	$8, %rdi
	movl	%r15d, %esi
	callq	_sldns_write_uint16
	leaq	(%r14,%rbx,4), %rdi
	addq	$16, %rdi
	movl	%r12d, %esi
	callq	_sldns_write_uint32
	leaq	(%r14,%rbx,4), %rdi
	addq	$32, %rdi
	xorl	%esi, %esi
LBB0_5:
	callq	_sldns_write_uint16
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ## @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ## @LDNS_WIREPARSE_ERR_OK
	.no_dead_strip	_rrinternal_write_typeclassttl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rrinternal_write_typeclassttl
_rrinternal_write_typeclassttl:         ; @rrinternal_write_typeclassttl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x5
	cbz	w7, LBB0_3
; %bb.1:
	add	x8, x3, #4
	cmp	x8, x2
	b.hi	LBB0_4
; %bb.2:
	add	x20, x1, x3, lsl #2
	mov	x0, x20
	mov	x1, x4
	bl	_sldns_write_uint16
	add	x0, x20, #8
	mov	x1, x19
	b	LBB0_6
LBB0_3:
	add	x8, x3, #10
	cmp	x8, x2
	b.ls	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_sldns_buffer_position
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_RET_ERR
LBB0_5:
	mov	x20, x6
	add	x21, x1, x3, lsl #2
	mov	x0, x21
	mov	x1, x4
	bl	_sldns_write_uint16
	add	x0, x21, #8
	mov	x1, x19
	bl	_sldns_write_uint16
	add	x0, x21, #16
	mov	x1, x20
	bl	_sldns_write_uint32
	add	x0, x21, #32
	mov	w1, #0
LBB0_6:
	bl	_sldns_write_uint16
Lloh3:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ; @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ; @LDNS_WIREPARSE_ERR_OK
	.no_dead_strip	_rrinternal_write_typeclassttl
.subsections_via_symbols
