	.file	"extr_bhnd_nvram_value_subr.c_bhnd_nvram_value_check_aligned.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid zero alignment"
	.text
	.p2align 4
	.globl	bhnd_nvram_value_check_aligned
	.type	bhnd_nvram_value_check_aligned, @function
bhnd_nvram_value_check_aligned:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR BHND_NVRAM_TYPE_NULL[rip], rdx
	jne	.L2
	mov	eax, DWORD PTR EFAULT[rip]
	test	rsi, rsi
	je	.L6
.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
.L2:
	.cfi_restore_state
	mov	rbx, rdi
	mov	rdi, rdx
	mov	rbp, rdx
	call	bhnd_nvram_type_host_align@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	rax, rax
	mov	r12, rax
	setne	dil
	call	BHND_NV_ASSERT@PLT
	mov	rax, rbx
	xor	edx, edx
	div	r12
	test	rdx, rdx
	jne	.L18
	mov	rdi, rbp
	call	bhnd_nvram_type_width@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L6
	mov	rax, r13
	xor	edx, edx
	div	rbx
	test	rdx, rdx
	jne	.L18
	mov	rdi, rbp
	call	bhnd_nvram_is_array_type@PLT
	test	eax, eax
	je	.L20
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR EFAULT[rip]
	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
.L20:
	.cfi_restore_state
	cmp	rbx, r13
	je	.L6
	mov	eax, DWORD PTR EFTYPE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bhnd_nvram_value_check_aligned, .-bhnd_nvram_value_check_aligned
	.comm	EFTYPE,4,4
	.comm	EFAULT,4,4
	.comm	BHND_NVRAM_TYPE_NULL,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_bhnd_nvram_value_subr.c_bhnd_nvram_value_check_aligned.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid zero alignment\000"
	.global	__aeabi_uidivmod
	.text
	.align	2
	.global	bhnd_nvram_value_check_aligned
	.syntax unified
	.arm
	.fpu softvfp
	.type	bhnd_nvram_value_check_aligned, %function
bhnd_nvram_value_check_aligned:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L19
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	mov	r7, r1
	cmp	r3, r2
	bne	.L2
	cmp	r1, #0
	beq	.L6
.L16:
	ldr	r3, .L19+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, r0
	mov	r0, r2
	mov	r4, r2
	bl	bhnd_nvram_type_host_align
	mov	r6, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L19+8
	bl	BHND_NV_ASSERT
	mov	r1, r6
	mov	r0, r5
	bl	__aeabi_uidivmod
	cmp	r1, #0
	bne	.L16
	mov	r0, r4
	bl	bhnd_nvram_type_width
	subs	r5, r0, #0
	beq	.L6
	mov	r1, r5
	mov	r0, r7
	bl	__aeabi_uidivmod
	cmp	r1, #0
	bne	.L16
	mov	r0, r4
	bl	bhnd_nvram_is_array_type
	subs	r1, r5, r7
	movne	r1, #1
	cmp	r0, #0
	movne	r1, #0
	cmp	r1, #0
	bne	.L18
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, .L19+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	BHND_NVRAM_TYPE_NULL
	.word	EFAULT
	.word	.LC0
	.word	EFTYPE
	.size	bhnd_nvram_value_check_aligned, .-bhnd_nvram_value_check_aligned
	.comm	EFTYPE,4,4
	.comm	EFAULT,4,4
	.comm	BHND_NVRAM_TYPE_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
