	.file	"extr_str2wire.c_rrinternal_get_owner.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
	.string	""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"\t\n "
.LC2:
	.string	"@"
	.text
	.p2align 4
	.type	rrinternal_get_owner, @function
rrinternal_get_owner:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	lea	rdx, .LC1[rip]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 96[rsp]
	mov	r15, QWORD PTR 112[rsp]
	mov	QWORD PTR [rsp], rcx
	mov	rcx, QWORD PTR 120[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	rsi, r15
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	sldns_bget_token@PLT
	cmp	eax, -1
	je	.L20
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	call	strcmp@PLT
	test	rax, rax
	jne	.L4
	test	r13, r13
	je	.L5
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rax], r12
.L6:
	cmp	QWORD PTR [rbx], r12
	jb	.L18
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, r14
	call	memmove@PLT
.L9:
	mov	eax, DWORD PTR LDNS_WIREPARSE_ERR_OK[rip]
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	BYTE PTR [r15], 0
	jne	.L10
	cmp	QWORD PTR 8[rsp], 0
	mov	rax, QWORD PTR [rsp]
	je	.L11
	mov	rcx, QWORD PTR 104[rsp]
	mov	QWORD PTR [rax], rcx
.L12:
	mov	rax, QWORD PTR 104[rsp]
	cmp	QWORD PTR [rbx], rax
	jb	.L18
	mov	rdx, QWORD PTR 104[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r14
	call	memmove@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	sldns_buffer_position@PLT
	mov	edi, DWORD PTR LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL[rip]
	mov	rsi, rax
	call	RET_ERR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	sldns_buffer_position@PLT
	mov	edi, DWORD PTR LDNS_WIREPARSE_ERR_SYNTAX[rip]
	mov	rsi, rax
	call	RET_ERR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	test	r13, r13
	je	.L13
	mov	QWORD PTR [rax], r12
	mov	QWORD PTR 104[rsp], r12
	mov	QWORD PTR 8[rsp], r13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [rbx]
	mov	r8, r12
	lea	rdx, 16[rsp]
	mov	rcx, r13
	mov	rsi, r14
	mov	rdi, r15
	mov	QWORD PTR 16[rsp], rax
	call	sldns_str2wire_dname_buf_origin@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR 16[rsp]
	mov	rbx, QWORD PTR [rsp]
	mov	QWORD PTR [rbx], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r13, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR [rsp]
	test	r13, r13
	je	.L7
	mov	rcx, QWORD PTR 104[rsp]
	mov	QWORD PTR [rax], rcx
	mov	r12, rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	QWORD PTR [rax], 1
	mov	r12d, 1
	lea	r13, .LC0[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	sldns_buffer_position@PLT
	mov	rdi, r15
	mov	rbx, rax
	call	strlen@PLT
	mov	edi, r12d
	sub	rbx, rax
	mov	rsi, rbx
	call	RET_ERR_SHIFT@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	QWORD PTR [rax], 1
	lea	rax, .LC0[rip]
	mov	QWORD PTR 104[rsp], 1
	mov	QWORD PTR 8[rsp], rax
	jmp	.L12
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rrinternal_get_owner, .-rrinternal_get_owner
	.comm	LDNS_WIREPARSE_ERR_SYNTAX,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_rrinternal_get_owner.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"\011\012 \000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rrinternal_get_owner, %function
rrinternal_get_owner:
	@ args = 24, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	ldr	r4, [sp, #72]
	ldr	ip, .L25
	mov	r7, r1
	mov	r5, r2
	mov	r6, r3
	mov	r1, r4
	ldr	r3, [sp, #76]
	ldr	r2, .L25+4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r8, r0
	ldr	r10, [sp, #56]
	ldr	r9, [sp, #60]
	ldr	fp, [sp, #64]
	bl	sldns_bget_token
	cmn	r0, #1
	ldreq	r3, .L25+8
	beq	.L19
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #64
	bne	.L5
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	cmp	r10, #0
	strne	r9, [r6]
	beq	.L22
.L7:
	ldr	r3, [r5]
	cmp	r3, r9
	bcc	.L20
	mov	r2, r9
	mov	r1, r10
	mov	r0, r7
	bl	memmove
.L10:
	ldr	r3, .L25+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	cmp	fp, #0
	beq	.L12
	ldr	r3, [sp, #68]
	str	r3, [r6]
.L13:
	ldr	r3, [r5]
	ldr	r2, [sp, #68]
	cmp	r3, r2
	bcc	.L20
	mov	r1, fp
	mov	r0, r7
	ldr	r2, [sp, #68]
	bl	memmove
	b	.L10
.L20:
	ldr	r3, .L25+16
.L19:
	mov	r0, r8
	ldr	r4, [r3]
	bl	sldns_buffer_position
	mov	r1, r0
	mov	r0, r4
	bl	RET_ERR
	b	.L1
.L11:
	ldr	ip, [r5]
	mov	r3, r10
	mov	r1, r7
	mov	r0, r4
	str	r9, [sp]
	add	r2, sp, #8
	str	ip, [sp, #8]
	bl	sldns_str2wire_dname_buf_origin
	subs	r5, r0, #0
	bne	.L24
	ldr	r3, [sp, #8]
	str	r3, [r6]
	b	.L10
.L22:
	cmp	fp, #0
	moveq	r3, #1
	ldrne	r3, [sp, #68]
	movne	r10, fp
	movne	r9, r3
	moveq	r9, r3
	ldreq	r10, .L25+20
	strne	r3, [r6]
	streq	r3, [r6]
	b	.L7
.L12:
	cmp	r10, #0
	moveq	r3, #1
	movne	fp, r10
	ldreq	fp, .L25+20
	strne	r9, [r6]
	strne	r9, [sp, #68]
	streq	r3, [sp, #68]
	streq	r3, [r6]
	b	.L13
.L24:
	mov	r0, r8
	bl	sldns_buffer_position
	mov	r1, r0
	mov	r0, r4
	mov	r4, r1
	bl	strlen
	mov	r1, r0
	mov	r0, r5
	sub	r1, r4, r1
	bl	RET_ERR_SHIFT
	b	.L1
.L23:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	.LC1
	.word	LDNS_WIREPARSE_ERR_SYNTAX
	.word	LDNS_WIREPARSE_ERR_OK
	.word	LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.word	.LANCHOR0
	.size	rrinternal_get_owner, .-rrinternal_get_owner
	.comm	LDNS_WIREPARSE_ERR_SYNTAX,4,4
	.comm	LDNS_WIREPARSE_ERR_OK,4,4
	.comm	LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.ascii	"\000\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
