	.file	"extr_geom_getxml.c_geom_getxml.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"kern.geom.confxml"
	.text
	.p2align 4
	.globl	geom_getxml
	.type	geom_getxml, @function
geom_getxml:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 28[rsp]
	lea	rdx, 16[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 3
	mov	rsi, r12
	call	sysctlnametomib@PLT
	test	rax, rax
	jne	.L4
	lea	r13, 8[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	edx, edx
	mov	rcx, r13
	mov	rdi, r12
	call	sysctl@PLT
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR GEOM_GETXML_RETRIES[rip]
	mov	rdi, QWORD PTR GEOM_GETXML_SLACK[rip]
	add	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rsp], rdi
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	free@PLT
	mov	rax, QWORD PTR ENOMEM[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L4
	mov	rax, QWORD PTR 8[rsp]
	add	ebx, 1
	cmp	DWORD PTR GEOM_GETXML_RETRIES[rip], ebx
	lea	rdi, [rax+rax]
	mov	QWORD PTR 8[rsp], rdi
	jle	.L4
.L8:
	call	malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L4
	mov	rsi, QWORD PTR 16[rsp]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rcx, r13
	mov	rdx, rax
	mov	rdi, r12
	call	sysctl@PLT
	test	rax, rax
	jne	.L5
	mov	rsi, rbp
.L6:
	mov	edx, DWORD PTR [rsi]
	add	rsi, 4
	lea	eax, -16843009[rdx]
	not	edx
	and	eax, edx
	and	eax, -2139062144
	je	.L6
	mov	edx, eax
	mov	rdi, rbp
	shr	edx, 16
	test	eax, 32896
	cmove	eax, edx
	lea	rdx, 2[rsi]
	cmove	rsi, rdx
	mov	ecx, eax
	add	cl, al
	sbb	rsi, 3
	sub	rsi, rbp
	add	rsi, 1
	call	reallocf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 56
	.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
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	geom_getxml, .-geom_getxml
	.comm	errno,8,8
	.comm	GEOM_GETXML_SLACK,8,8
	.comm	GEOM_GETXML_RETRIES,4,4
	.comm	ENOMEM,8,8
	.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_geom_getxml.c_geom_getxml.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"kern.geom.confxml\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	geom_getxml
	.syntax unified
	.arm
	.fpu softvfp
	.type	geom_getxml, %function
geom_getxml:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	mov	r3, #3
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	lr, .L15
	sub	sp, sp, #36
	add	r2, sp, #12
	ldr	r0, .L15+4
	add	r1, sp, #16
	ldr	lr, [lr]
	str	lr, [sp, #28]
	mov	lr,#0
	str	ip, [sp, #8]
	str	r3, [sp, #12]
	bl	sysctlnametomib
	subs	r2, r0, #0
	bne	.L4
	ldr	r1, [sp, #12]
	str	r2, [sp, #4]
	str	r2, [sp]
	add	r3, sp, #8
	add	r0, sp, #16
	bl	sysctl
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, .L15+8
	ldr	r7, .L15+12
	ldr	r2, [r3]
	ldr	r0, [sp, #8]
	ldr	r3, [r7]
	add	r0, r0, r2
	cmp	r3, #0
	str	r0, [sp, #8]
	ble	.L4
	mov	r6, r5
	ldr	r9, .L15+16
	ldr	r8, .L15+20
	b	.L6
.L5:
	bl	free
	ldr	r2, [r9]
	ldr	r3, [r8]
	cmp	r2, r3
	bne	.L4
	ldr	r0, [sp, #8]
	ldr	r3, [r7]
	add	r5, r5, #1
	lsl	r0, r0, #1
	cmp	r3, r5
	str	r0, [sp, #8]
	ble	.L4
.L6:
	bl	malloc
	subs	r4, r0, #0
	beq	.L4
	mov	r2, r4
	ldr	r1, [sp, #12]
	str	r6, [sp, #4]
	str	r6, [sp]
	add	r3, sp, #8
	add	r0, sp, #16
	bl	sysctl
	cmp	r0, #0
	mov	r0, r4
	bne	.L5
	bl	strlen
	mov	r1, r0
	mov	r0, r4
	add	r1, r1, #1
	bl	reallocf
	b	.L1
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC0
	.word	GEOM_GETXML_SLACK
	.word	GEOM_GETXML_RETRIES
	.word	errno
	.word	ENOMEM
	.size	geom_getxml, .-geom_getxml
	.comm	errno,4,4
	.comm	GEOM_GETXML_SLACK,4,4
	.comm	GEOM_GETXML_RETRIES,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
