	.file	"extr_aic79xx_core.c_ahd_set_modes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ahd_set_modes
	.type	ahd_set_modes, @function
ahd_set_modes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	cmp	QWORD PTR [rdi], rsi
	jne	.L2
	cmp	QWORD PTR 8[rdi], rdx
	je	.L1
.L2:
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, rbx
	call	ahd_build_mode_state@PLT
	mov	esi, DWORD PTR MODE_PTR[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	ahd_outb@PLT
	mov	QWORD PTR [rbx], rbp
	mov	QWORD PTR 8[rbx], r12
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ahd_set_modes, .-ahd_set_modes
	.comm	ahd_debug,4,4
	.comm	MODE_PTR,4,4
	.comm	AHD_SHOW_MODEPTR,4,4
	.comm	AHD_MODE_UNKNOWN,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_aic79xx_core.c_ahd_set_modes.c"
	.text
	.align	2
	.global	ahd_set_modes
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahd_set_modes, %function
ahd_set_modes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, r1
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	bne	.L2
	ldr	r3, [r0, #4]
	cmp	r3, r2
	popeq	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L6
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	ldr	r7, [r3]
	bl	ahd_build_mode_state
	mov	r1, r7
	mov	r2, r0
	mov	r0, r4
	bl	ahd_outb
	stm	r4, {r5, r6}
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	MODE_PTR
	.size	ahd_set_modes, .-ahd_set_modes
	.comm	ahd_debug,4,4
	.comm	MODE_PTR,4,4
	.comm	AHD_SHOW_MODEPTR,4,4
	.comm	AHD_MODE_UNKNOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
