	.file	"extr_ipmi_msghandler.c_ipmi_validate_addr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ipmi_validate_addr
	.type	ipmi_validate_addr, @function
ipmi_validate_addr:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 3
	jbe	.L12
	mov	rdx, QWORD PTR IPMI_BMC_CHANNEL[rip]
	mov	rcx, QWORD PTR IPMI_SYSTEM_INTERFACE_ADDR_TYPE[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	rax, QWORD PTR 8[rdi]
	cmp	QWORD PTR [rdi], rcx
	je	.L13
	cmp	rax, rdx
	je	.L10
	cmp	QWORD PTR IPMI_MAX_CHANNELS[rip], rax
	jle	.L10
	test	rax, rax
	js	.L10
	call	is_ipmb_addr@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, rbp
	call	is_ipmb_bcast_addr@PLT
	test	rax, rax
	je	.L14
.L6:
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	cmp	rax, rdx
	je	.L6
.L10:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore 6
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdi, rbp
	call	is_lan_addr@PLT
	test	rax, rax
	je	.L10
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ipmi_validate_addr, .-ipmi_validate_addr
	.comm	IPMI_SYSTEM_INTERFACE_ADDR_TYPE,8,8
	.comm	IPMI_MAX_CHANNELS,8,8
	.comm	IPMI_BMC_CHANNEL,8,8
	.comm	EINVAL,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_ipmi_msghandler.c_ipmi_validate_addr.c"
	.text
	.align	2
	.global	ipmi_validate_addr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipmi_validate_addr, %function
ipmi_validate_addr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #3
	bls	.L12
	ldr	r3, .L15
	ldr	r1, [r0]
	ldr	r2, [r3]
	ldr	r3, .L15+4
	cmp	r1, r2
	push	{r4, lr}
	ldr	r2, [r3]
	mov	r4, r0
	ldr	r3, [r0, #4]
	beq	.L13
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L15+8
	ldr	r2, [r2]
	cmp	r2, r3
	movgt	r2, #0
	movle	r2, #1
	orrs	r3, r2, r3, lsr #31
	beq	.L14
.L10:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L13:
	cmp	r3, r2
	bne	.L10
.L6:
	mov	r0, #0
	pop	{r4, pc}
.L12:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L14:
	bl	is_ipmb_addr
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	bl	is_ipmb_bcast_addr
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	bl	is_lan_addr
	cmp	r0, #0
	beq	.L10
	b	.L6
.L16:
	.align	2
.L15:
	.word	IPMI_SYSTEM_INTERFACE_ADDR_TYPE
	.word	IPMI_BMC_CHANNEL
	.word	IPMI_MAX_CHANNELS
	.word	EINVAL
	.size	ipmi_validate_addr, .-ipmi_validate_addr
	.comm	IPMI_SYSTEM_INTERFACE_ADDR_TYPE,4,4
	.comm	IPMI_MAX_CHANNELS,4,4
	.comm	IPMI_BMC_CHANNEL,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
