	.file	"extr_str2wire.c_sldns_str2wire_type_buf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TYPE0"
	.text
	.p2align 4
	.globl	sldns_str2wire_type_buf
	.type	sldns_str2wire_type_buf, @function
sldns_str2wire_type_buf:
.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, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	sldns_get_rr_type_by_name@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
.L2:
	cmp	QWORD PTR [rbx], 1
	mov	eax, DWORD PTR LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL[rip]
	jbe	.L1
	mov	rsi, rbp
	mov	rdi, r13
	call	sldns_write_uint16@PLT
	mov	QWORD PTR [rbx], 2
	mov	eax, DWORD PTR LDNS_WIREPARSE_ERR_OK[rip]
.L1:
	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
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	strcmp@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR LDNS_WIREPARSE_ERR_SYNTAX_TYPE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	sldns_str2wire_type_buf, .-sldns_str2wire_type_buf
	.comm	LDNS_WIREPARSE_ERR_SYNTAX_TYPE,4,4
	.comm	LDNS_WIREPARSE_ERR_OK,4,4
	.comm	LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,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_str2wire.c_sldns_str2wire_type_buf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TYPE0\000"
	.text
	.align	2
	.global	sldns_str2wire_type_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	sldns_str2wire_type_buf, %function
sldns_str2wire_type_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r5, r2
	mov	r6, r0
	bl	sldns_get_rr_type_by_name
	subs	r4, r0, #0
	bne	.L2
	mov	r0, r6
	ldr	r1, .L12
	bl	strcmp
	cmp	r0, #0
	bne	.L10
.L2:
	ldr	r3, [r5]
	cmp	r3, #1
	bls	.L11
	mov	r1, r4
	mov	r0, r7
	bl	sldns_write_uint16
	mov	r2, #2
	ldr	r3, .L12+4
	str	r2, [r5]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L12+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	LDNS_WIREPARSE_ERR_OK
	.word	LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.word	LDNS_WIREPARSE_ERR_SYNTAX_TYPE
	.size	sldns_str2wire_type_buf, .-sldns_str2wire_type_buf
	.comm	LDNS_WIREPARSE_ERR_SYNTAX_TYPE,4,4
	.comm	LDNS_WIREPARSE_ERR_OK,4,4
	.comm	LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
