	.file	"extr_if_ath.c_ath_parent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ath_parent, @function
ath_parent:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR 8[rdi]
	mov	ebx, DWORD PTR EDOOFUS[rip]
	mov	rdi, rbp
	call	ATH_LOCK@PLT
	cmp	QWORD PTR [r12], 0
	jle	.L2
	cmp	QWORD PTR 16[rbp], 0
	jne	.L8
	mov	edx, DWORD PTR 8[rbp]
	test	edx, edx
	je	.L9
.L4:
	mov	rdi, rbp
	call	ATH_UNLOCK@PLT
	test	ebx, ebx
	je	.L10
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR HAL_PM_AWAKE[rip]
	mov	rdi, rbp
	call	ath_power_set_power_state@PLT
	mov	rdi, rbp
	call	ath_mode_init@PLT
	mov	rdi, rbp
	call	ath_power_restore_power_state@PLT
	mov	rdi, rbp
	call	ATH_UNLOCK@PLT
	test	ebx, ebx
	jne	.L1
.L10:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ieee80211_start_all@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	ath_stop@PLT
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	jne	.L4
	mov	esi, DWORD PTR HAL_PM_FULL_SLEEP[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	ath_power_setpower@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	ath_init@PLT
	mov	ebx, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ath_parent, .-ath_parent
	.comm	HAL_PM_FULL_SLEEP,4,4
	.comm	HAL_PM_AWAKE,4,4
	.comm	EDOOFUS,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_if_ath.c_ath_parent.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath_parent, %function
ath_parent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r4, [r0, #4]
	ldr	r3, .L10
	mov	r0, r4
	ldr	r6, [r3]
	bl	ATH_LOCK
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L9
.L4:
	mov	r0, r4
	bl	ATH_UNLOCK
	cmp	r6, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	ieee80211_start_all
.L8:
	ldr	r3, .L10+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	ath_power_set_power_state
	mov	r0, r4
	bl	ath_mode_init
	mov	r0, r4
	bl	ath_power_restore_power_state
	b	.L4
.L2:
	mov	r0, r4
	bl	ath_stop
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L10+8
	mov	r2, #1
	mov	r0, r4
	ldr	r1, [r3]
	bl	ath_power_setpower
	b	.L4
.L9:
	mov	r0, r4
	bl	ath_init
	mov	r6, r0
	b	.L4
.L11:
	.align	2
.L10:
	.word	EDOOFUS
	.word	HAL_PM_AWAKE
	.word	HAL_PM_FULL_SLEEP
	.size	ath_parent, .-ath_parent
	.comm	HAL_PM_FULL_SLEEP,4,4
	.comm	HAL_PM_AWAKE,4,4
	.comm	EDOOFUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
