	.file	"extr_host2wire.c_ldns_rdf2wire.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ldns_rdf2wire
	.type	ldns_rdf2wire, @function
ldns_rdf2wire:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR LDNS_MAX_PACKETLEN[rip]
	call	ldns_buffer_new@PLT
	mov	QWORD PTR [r12], 0
	mov	QWORD PTR [rbx], 0
	test	rax, rax
	je	.L7
	mov	rsi, r13
	mov	rdi, rax
	mov	rbp, rax
	call	ldns_rdf2buffer_wire@PLT
	cmp	QWORD PTR LDNS_STATUS_OK[rip], rax
	mov	r13, rax
	je	.L8
.L4:
	mov	rdi, rbp
	call	ldns_buffer_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r13, QWORD PTR LDNS_STATUS_MEM_ERR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	rax, r13
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	ldns_buffer_position@PLT
	mov	rdi, rbp
	mov	QWORD PTR [r12], rax
	call	ldns_buffer_export@PLT
	mov	QWORD PTR [rbx], rax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ldns_rdf2wire, .-ldns_rdf2wire
	.comm	LDNS_STATUS_OK,8,8
	.comm	LDNS_STATUS_MEM_ERR,8,8
	.comm	LDNS_MAX_PACKETLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_host2wire.c_ldns_rdf2wire.c"
	.text
	.align	2
	.global	ldns_rdf2wire
	.syntax unified
	.arm
	.fpu softvfp
	.type	ldns_rdf2wire, %function
ldns_rdf2wire:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r3]
	mov	r7, r2
	mov	r4, r1
	bl	ldns_buffer_new
	mov	r3, #0
	subs	r5, r0, #0
	str	r3, [r7]
	str	r3, [r6]
	beq	.L7
	mov	r1, r4
	bl	ldns_rdf2buffer_wire
	ldr	r3, .L9+4
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L8
.L4:
	mov	r0, r5
	bl	ldns_buffer_free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L9+8
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, r5
	bl	ldns_buffer_position
	str	r0, [r7]
	mov	r0, r5
	bl	ldns_buffer_export
	str	r0, [r6]
	b	.L4
.L10:
	.align	2
.L9:
	.word	LDNS_MAX_PACKETLEN
	.word	LDNS_STATUS_OK
	.word	LDNS_STATUS_MEM_ERR
	.size	ldns_rdf2wire, .-ldns_rdf2wire
	.comm	LDNS_STATUS_OK,4,4
	.comm	LDNS_STATUS_MEM_ERR,4,4
	.comm	LDNS_MAX_PACKETLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
