	.file	"extr_machinectl.c_parse_machine_uid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	".host"
	.text
	.p2align 4
	.type	parse_machine_uid, @function
parse_machine_uid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L2
	mov	esi, 64
	call	strchr@PLT
	test	rax, rax
	je	.L3
	cmp	rbp, rax
	je	.L16
	lea	rbx, 1[rax]
	sub	rax, rbp
	mov	rdi, rbp
	mov	esi, eax
	call	strndup@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L14
.L6:
	mov	QWORD PTR 0[r13], rbp
	mov	rdi, rbx
	call	isempty@PLT
	test	rax, rax
	lea	rax, .LC0[rip]
	cmovne	rbx, rax
	xor	eax, eax
	mov	QWORD PTR [r12], rbx
.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
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR arg_uid[rip]
	xor	ebx, ebx
	test	rdi, rdi
	je	.L6
.L7:
	call	strdup@PLT
	mov	rbx, rbp
	mov	rbp, rax
	test	rax, rax
	jne	.L6
.L14:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR arg_uid[rip]
	test	rdi, rdi
	jne	.L7
	mov	rbx, rbp
	xor	ebp, ebp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	parse_machine_uid, .-parse_machine_uid
	.comm	arg_uid,8,8
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_machinectl.c_parse_machine_uid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".host\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_machine_uid, %function
parse_machine_uid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	mov	r7, r1
	mov	r6, r2
	beq	.L2
	mov	r1, #64
	bl	strchr
	subs	r5, r0, #0
	beq	.L3
	cmp	r4, r5
	beq	.L16
	sub	r1, r5, r4
	mov	r0, r4
	bl	strndup
	subs	r4, r0, #0
	add	r5, r5, #1
	beq	.L14
.L6:
	mov	r0, r5
	str	r4, [r6]
	bl	isempty
	mov	r2, r0
	mov	r0, #0
	ldr	r3, .L17
	cmp	r2, r0
	movne	r5, r3
	str	r5, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	cmp	r0, #0
	moveq	r5, r4
	beq	.L6
.L7:
	bl	strdup
	cmp	r0, #0
	bne	.L10
.L14:
	ldr	r3, .L17+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	cmp	r0, #0
	bne	.L7
.L10:
	mov	r5, r4
	mov	r4, r0
	b	.L6
.L16:
	ldr	r3, .L17+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	arg_uid
	.word	ENOMEM
	.word	EINVAL
	.size	parse_machine_uid, .-parse_machine_uid
	.comm	arg_uid,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
