	.file	"extr_aic7xxx.c_ahc_validate_width.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ahc_validate_width
	.type	ahc_validate_width, @function
ahc_validate_width:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, rsi
	mov	esi, DWORD PTR [rdx]
	mov	rbx, rdx
	cmp	esi, 128
	je	.L2
	mov	edx, DWORD PTR [rdi]
	mov	esi, 128
	test	DWORD PTR AHC_WIDE[rip], edx
	cmovne	esi, DWORD PTR MSG_EXT_WDTR_BUS_16_BIT[rip]
.L2:
	mov	DWORD PTR [rbx], esi
	test	rax, rax
	je	.L1
	cmp	QWORD PTR ROLE_TARGET[rip], rcx
	je	.L14
	mov	edi, DWORD PTR [rax]
	call	MIN@PLT
	mov	DWORD PTR [rbx], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rax]
	call	MIN@PLT
	mov	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ahc_validate_width, .-ahc_validate_width
	.comm	ROLE_TARGET,8,8
	.comm	MSG_EXT_WDTR_BUS_16_BIT,4,4
	.comm	AHC_WIDE,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_aic7xxx.c_ahc_validate_width.c"
	.text
	.align	2
	.global	ahc_validate_width
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahc_validate_width, %function
ahc_validate_width:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r2
	mov	r2, r1
	ldr	r1, [r4]
	cmp	r1, #128
	beq	.L2
	ldr	r1, .L14
	ldr	r0, [r0]
	ldr	r1, [r1]
	tst	r0, r1
	moveq	r1, #128
	ldrne	r1, .L14+4
	ldrne	r1, [r1]
.L2:
	cmp	r2, #0
	str	r1, [r4]
	popeq	{r4, pc}
	ldr	r0, .L14+8
	ldr	r0, [r0]
	cmp	r0, r3
	ldreq	r0, [r2, #4]
	ldrne	r0, [r2]
	bl	MIN
	str	r0, [r4]
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	AHC_WIDE
	.word	MSG_EXT_WDTR_BUS_16_BIT
	.word	ROLE_TARGET
	.size	ahc_validate_width, .-ahc_validate_width
	.comm	ROLE_TARGET,4,4
	.comm	MSG_EXT_WDTR_BUS_16_BIT,4,4
	.comm	AHC_WIDE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
