	.file	"extr_hdac_hdmi.c_hdac_hdmi_set_power_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hdac_hdmi_set_power_state, @function
hdac_hdmi_set_power_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	get_wcaps@PLT
	test	DWORD PTR AC_WCAP_POWER[rip], eax
	jne	.L13
.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
.L13:
	.cfi_restore_state
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, rbx
	call	snd_hdac_check_power_state@PLT
	test	eax, eax
	jne	.L1
	mov	r13d, 10
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR AC_VERB_SET_POWER_STATE[rip]
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, rbx
	mov	r8d, r12d
	call	snd_hdac_codec_read@PLT
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, rbx
	call	snd_hdac_sync_power_state@PLT
	test	DWORD PTR AC_PWRST_ERROR[rip], eax
	je	.L1
	sub	r13d, 1
	jne	.L3
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	hdac_hdmi_set_power_state, .-hdac_hdmi_set_power_state
	.comm	AC_WCAP_POWER,4,4
	.comm	AC_VERB_SET_POWER_STATE,4,4
	.comm	AC_PWRST_ERROR,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_hdac_hdmi.c_hdac_hdmi_set_power_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hdac_hdmi_set_power_state, %function
hdac_hdmi_set_power_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r6, r2
	mov	r4, r0
	mov	r5, r1
	bl	get_wcaps
	ldr	r3, .L14
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L13
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	snd_hdac_check_power_state
	cmp	r0, #0
	bne	.L1
	mov	r7, #10
	ldr	r9, .L14+4
	ldr	r8, .L14+8
.L3:
	ldr	r3, [r9]
	mov	r2, #0
	mov	r1, r5
	mov	r0, r4
	str	r6, [sp]
	bl	snd_hdac_codec_read
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	snd_hdac_sync_power_state
	ldr	r3, [r8]
	tst	r0, r3
	beq	.L1
	subs	r7, r7, #1
	bne	.L3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	.align	2
.L14:
	.word	AC_WCAP_POWER
	.word	AC_VERB_SET_POWER_STATE
	.word	AC_PWRST_ERROR
	.size	hdac_hdmi_set_power_state, .-hdac_hdmi_set_power_state
	.comm	AC_WCAP_POWER,4,4
	.comm	AC_VERB_SET_POWER_STATE,4,4
	.comm	AC_PWRST_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
