	.file	"extr_g_part_ebr.c_ebr_set_chs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ebr_set_chs, @function
ebr_set_chs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, esi
	mov	r9, rdx
	cdq
	idiv	DWORD PTR [rdi]
	mov	esi, edx
	cdq
	idiv	DWORD PTR 4[rdi]
	cmp	eax, 1023
	jg	.L3
	movzx	edi, al
	add	esi, 1
	sar	eax, 2
	movzx	edx, dl
	and	esi, 63
	and	eax, 192
	mov	DWORD PTR [r9], edi
	or	eax, esi
	mov	DWORD PTR [rcx], edx
	mov	DWORD PTR [r8], eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, 255
	mov	edx, 255
	mov	edi, 255
	mov	DWORD PTR [r9], edi
	mov	DWORD PTR [rcx], edx
	mov	DWORD PTR [r8], eax
	ret
	.cfi_endproc
.LFE0:
	.size	ebr_set_chs, .-ebr_set_chs
	.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_g_part_ebr.c_ebr_set_chs.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ebr_set_chs, %function
ebr_set_chs:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, r1
	ldr	r1, [r4]
	mov	r6, r2
	mov	r5, r3
	bl	__aeabi_idivmod
	mov	ip, r1
	ldr	r1, [r4, #4]
	mov	r4, ip
	bl	__aeabi_idivmod
	cmp	r0, #1024
	movge	ip, #255
	movge	r1, ip
	movge	r0, ip
	addlt	ip, r4, #1
	asrlt	r2, r0, #2
	andlt	ip, ip, #63
	ldr	r3, [sp, #16]
	andlt	r2, r2, #192
	andlt	r1, r1, #255
	orrlt	ip, ip, r2
	andlt	r0, r0, #255
	str	r0, [r6]
	str	r1, [r5]
	str	ip, [r3]
	pop	{r4, r5, r6, pc}
	.size	ebr_set_chs, .-ebr_set_chs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
