	.file	"extr_commsup.c_aac_update_safw_host_devices.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aac_update_safw_host_devices, @function
aac_update_safw_host_devices:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	aac_setup_safw_adapter@PLT
	mov	edi, eax
	mov	r14d, eax
	shr	edi, 31
	call	unlikely@PLT
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR AAC_BUS_TARGET_LOOP[rip]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	test	r15d, r15d
	je	.L19
	call	aac_is_safw_target_valid@PLT
	test	rax, rax
	je	.L6
.L5:
	add	ebx, 1
	cmp	DWORD PTR AAC_BUS_TARGET_LOOP[rip], ebx
	jle	.L1
.L8:
	mov	edi, ebx
	call	get_bus_number@PLT
	mov	edi, ebx
	mov	ebp, eax
	call	get_target_number@PLT
	mov	esi, ebp
	mov	rdi, r13
	mov	r12d, eax
	mov	edx, eax
	call	aac_is_safw_device_exposed@PLT
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, r13
	mov	r15d, eax
	call	aac_is_safw_target_valid@PLT
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, r13
	test	rax, rax
	jne	.L20
	call	aac_is_safw_target_valid@PLT
	test	rax, rax
	jne	.L5
	test	r15d, r15d
	je	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, r13
	add	ebx, 1
	call	aac_remove_safw_device@PLT
	cmp	DWORD PTR AAC_BUS_TARGET_LOOP[rip], ebx
	jg	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L19:
	.cfi_restore_state
	call	aac_add_safw_device@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	aac_update_safw_host_devices, .-aac_update_safw_host_devices
	.comm	AAC_BUS_TARGET_LOOP,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_commsup.c_aac_update_safw_host_devices.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aac_update_safw_host_devices, %function
aac_update_safw_host_devices:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	bl	aac_setup_safw_adapter
	mov	r9, r0
	lsr	r0, r0, #31
	bl	unlikely
	subs	r6, r0, #0
	bne	.L1
	ldr	r8, .L17
	ldr	r3, [r8]
	cmp	r3, #0
	bgt	.L7
	b	.L1
.L16:
	cmp	r10, #0
	beq	.L15
	bl	aac_is_safw_target_valid
	cmp	r0, #0
	beq	.L6
.L5:
	ldr	r3, [r8]
	add	r6, r6, #1
	cmp	r3, r6
	ble	.L1
.L7:
	mov	r0, r6
	bl	get_bus_number
	mov	r4, r0
	mov	r0, r6
	bl	get_target_number
	mov	r1, r4
	mov	r5, r0
	mov	r2, r0
	mov	r0, r7
	bl	aac_is_safw_device_exposed
	mov	r2, r5
	mov	r1, r4
	mov	r10, r0
	mov	r0, r7
	bl	aac_is_safw_target_valid
	cmp	r0, #0
	mov	r2, r5
	mov	r1, r4
	mov	r0, r7
	bne	.L16
	bl	aac_is_safw_target_valid
	subs	r3, r10, #0
	movne	r3, #1
	cmp	r0, #0
	movne	r3, #0
	cmp	r3, #0
	beq	.L5
.L6:
	mov	r2, r5
	mov	r1, r4
	mov	r0, r7
	bl	aac_remove_safw_device
	ldr	r3, [r8]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L7
.L1:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	bl	aac_add_safw_device
	b	.L5
.L18:
	.align	2
.L17:
	.word	AAC_BUS_TARGET_LOOP
	.size	aac_update_safw_host_devices, .-aac_update_safw_host_devices
	.comm	AAC_BUS_TARGET_LOOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
