	.file	"extr_ar8216.c_ar8xxx_byte_to_str.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Byte"
.LC1:
	.string	"MiB"
.LC2:
	.string	"KiB"
.LC3:
	.string	"GiB"
.LC4:
	.string	"%lu.%lu %s"
.LC5:
	.string	"%lu %s"
	.text
	.p2align 4
	.type	ar8xxx_byte_to_str, @function
ar8xxx_byte_to_str:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	rbx, .LC3[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	edx, 1073741823
	jg	.L2
	cmp	edx, 1048575
	jle	.L3
	lea	r12d, [rdx+rdx*4]
	lea	rbx, .LC1[rip]
	add	r12d, r12d
	sar	r12d, 20
	movsx	r12, r12d
.L2:
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	call	strcmp@PLT
	test	rax, rax
	je	.L5
	mov	rax, r12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	r8, r12
	mov	r9, rbx
	movabs	rcx, -3689348814741910323
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	esi, r13d
	mov	rdi, rbp
	mul	rcx
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	mov	rcx, rdx
	lea	rdx, .LC4[rip]
	shr	rcx, 3
	lea	rax, [rcx+rcx*4]
	add	rax, rax
	sub	r8, rax
	xor	eax, eax
	jmp	snprintf@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	r8, rbx
	mov	rcx, r12
	mov	esi, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	rdi, rbp
	lea	rdx, .LC5[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	snprintf@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movsx	r12, edx
	lea	rbx, .LC0[rip]
	cmp	edx, 1023
	jle	.L2
	lea	r12d, [rdx+rdx*4]
	lea	rbx, .LC2[rip]
	add	r12d, r12d
	sar	r12d, 10
	movsx	r12, r12d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ar8xxx_byte_to_str, .-ar8xxx_byte_to_str
	.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_ar8216.c_ar8xxx_byte_to_str.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"KiB\000"
	.align	2
.LC1:
	.ascii	"MiB\000"
	.align	2
.LC2:
	.ascii	"GiB\000"
	.align	2
.LC3:
	.ascii	"%lu %s\000"
	.align	2
.LC4:
	.ascii	"Byte\000"
	.align	2
.LC5:
	.ascii	"%lu.%lu %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar8xxx_byte_to_str, %function
ar8xxx_byte_to_str:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	cmn	r2, #-1073741823
	mov	ip, r0
	mov	lr, r1
	sub	sp, sp, #12
	bgt	.L6
	cmp	r2, #1048576
	mov	r3, r2
	blt	.L3
	add	r2, r2, r2, lsl #2
	ldr	r3, .L9
	lsl	r2, r2, #1
	asr	r2, r2, #20
	umull	r1, r3, r2, r3
	lsr	r3, r3, #3
	add	r1, r3, r3, lsl #2
	sub	r2, r2, r1, lsl #1
	ldr	r1, .L9+4
	b	.L2
.L6:
	mov	r2, #1
	mov	r3, #0
	ldr	r1, .L9+8
.L2:
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, lr
	mov	r0, ip
	ldr	r2, .L9+12
	bl	snprintf
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L3:
	cmp	r2, #1024
	blt	.L4
	add	r2, r2, r2, lsl #2
	ldr	r3, .L9
	lsl	r2, r2, #1
	asr	r2, r2, #10
	umull	r1, r3, r2, r3
	lsr	r3, r3, #3
	add	r1, r3, r3, lsl #2
	sub	r2, r2, r1, lsl #1
	ldr	r1, .L9+16
	b	.L2
.L4:
	ldr	r2, .L9+20
	str	r2, [sp]
	ldr	r2, .L9+24
	bl	snprintf
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L10:
	.align	2
.L9:
	.word	-858993459
	.word	.LC1
	.word	.LC2
	.word	.LC5
	.word	.LC0
	.word	.LC4
	.word	.LC3
	.size	ar8xxx_byte_to_str, .-ar8xxx_byte_to_str
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
