	.file	"extr_scan.c_acpi_bus_trim.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_bus_trim
	.type	acpi_bus_trim, @function
acpi_bus_trim:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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	ebx, 1
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rsi, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 32[rsp]
	lea	r13, 12[rsp]
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 24[rsp], rsi
	mov	QWORD PTR 16[rsp], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, r13
	call	acpi_get_type@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L18
.L8:
	mov	rdx, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 24[rsp]
.L7:
	mov	edi, DWORD PTR ACPI_TYPE_ANY[rip]
	mov	rcx, r12
	call	acpi_get_next_object@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR 24[rsp]
	lea	rsi, 24[rsp]
	sub	rbx, 1
	mov	QWORD PTR 32[rsp], rdi
	call	acpi_get_parent@PLT
	mov	QWORD PTR 16[rsp], rbp
	test	rbx, rbx
	jne	.L3
	mov	esi, r14d
	mov	rdi, rbp
	call	acpi_bus_remove@PLT
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L19
	add	rsp, 56
	.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
.L18:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rsp]
	lea	rsi, 16[rsp]
	call	acpi_bus_get_device@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR 32[rsp]
	mov	rbp, QWORD PTR 16[rsp]
	add	rbx, 1
	mov	QWORD PTR 32[rsp], 0
	mov	edx, 1
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
.L5:
	test	rbp, rbp
	je	.L1
	test	dl, dl
	jne	.L8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	mov	esi, 1
	mov	r15, QWORD PTR 0[rbp]
	call	acpi_bus_remove@PLT
	test	eax, eax
	mov	rbp, r15
	sete	dl
	jmp	.L5
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	acpi_bus_trim, .-acpi_bus_trim
	.comm	ACPI_TYPE_ANY,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_scan.c_acpi_bus_trim.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	acpi_bus_trim
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_bus_trim, %function
acpi_bus_trim:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L17
	mov	r7, r1
	ldr	r1, [r0, #4]
	sub	sp, sp, #28
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	mov	r4, r0
	mov	r2, r3
	mov	r5, #1
	ldr	r6, .L17+4
	str	r1, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #4]
	b	.L7
.L2:
	add	r1, sp, #16
	ldr	r0, [sp, #12]
	bl	acpi_get_type
	bl	ACPI_FAILURE
	cmp	r0, #0
	beq	.L15
.L8:
	ldr	r1, [sp, #8]
	ldr	r2, [sp, #12]
.L7:
	add	r3, sp, #12
	ldr	r0, [r6]
	bl	acpi_get_next_object
	bl	ACPI_FAILURE
	cmp	r0, #0
	beq	.L2
	ldr	r0, [sp, #8]
	sub	r5, r5, #1
	add	r1, sp, #8
	str	r0, [sp, #12]
	bl	acpi_get_parent
	cmp	r5, #0
	str	r4, [sp, #4]
	bne	.L3
	mov	r1, r7
	mov	r0, r4
	bl	acpi_bus_remove
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	ldr	r0, [sp, #12]
	add	r1, sp, #4
	bl	acpi_bus_get_device
	cmp	r0, #0
	bne	.L8
	mov	r3, #1
	ldr	r2, [sp, #12]
	ldr	r4, [sp, #4]
	add	r5, r5, r3
	str	r2, [sp, #8]
	str	r0, [sp, #12]
.L5:
	cmp	r4, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L8
	b	.L1
.L3:
	mov	r0, r4
	mov	r1, #1
	ldr	r4, [r4]
	bl	acpi_bus_remove
	clz	r3, r0
	lsr	r3, r3, #5
	b	.L5
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	ACPI_TYPE_ANY
	.size	acpi_bus_trim, .-acpi_bus_trim
	.comm	ACPI_TYPE_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
