	.file	"extr_bhnd_subr.c_bhnd_set_default_bus_desc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unknown Type"
.LC1:
	.string	"BCMA bus"
.LC2:
	.string	"SIBA bus"
.LC3:
	.string	"UBUS bus"
.LC4:
	.string	"%s %s"
	.text
	.p2align 4
	.globl	bhnd_set_default_bus_desc
	.type	bhnd_set_default_bus_desc, @function
bhnd_set_default_bus_desc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	sub	rsp, 24
	.cfi_offset 12, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR BHND_CHIPID_MAX_NAMELEN[rip]
	mov	rcx, rsp
	mov	r9, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
.L4:
	mov	eax, DWORD PTR [rsi]
	mov	r14, rsp
	lea	r12, .LC2[rip]
	cmp	eax, 129
	je	.L5
	jg	.L6
	cmp	eax, 128
	lea	r12, .LC0[rip]
	lea	r8, .LC3[rip]
	cmove	r12, r8
.L5:
	mov	edx, DWORD PTR 4[rsi]
	mov	rdi, r14
	mov	esi, r9d
	call	bhnd_format_chip_id@PLT
	lea	rdi, -48[rbp]
	mov	r8, r12
	mov	rcx, r14
	mov	esi, DWORD PTR M_BHND[rip]
	lea	rdx, .LC4[rip]
	call	asprintf@PLT
	mov	rsi, QWORD PTR -48[rbp]
	test	rsi, rsi
	je	.L7
	mov	edi, r13d
	call	device_set_desc_copy@PLT
	mov	esi, DWORD PTR M_BHND[rip]
	mov	rdi, QWORD PTR -48[rbp]
	call	free@PLT
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	lea	rsp, -24[rbp]
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	sub	eax, 130
	lea	r12, .LC1[rip]
	lea	r8, .LC0[rip]
	cmp	eax, 2
	cmovnb	r12, r8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r12
	mov	edi, r13d
	call	device_set_desc@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bhnd_set_default_bus_desc, .-bhnd_set_default_bus_desc
	.comm	M_BHND,4,4
	.comm	BHND_CHIPID_MAX_NAMELEN,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_bhnd_subr.c_bhnd_set_default_bus_desc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown Type\000"
	.align	2
.LC1:
	.ascii	"%s %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bhnd_set_default_bus_desc
	.syntax unified
	.arm
	.fpu softvfp
	.type	bhnd_set_default_bus_desc, %function
bhnd_set_default_bus_desc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	ldr	r3, .L10
	ldr	ip, [r1]
	mov	r2, r1
	ldr	r1, [r3]
	sub	ip, ip, #128
	add	r3, r1, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L10+4
	cmp	ip, #3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldrls	r3, .L10+8
	ldrhi	r7, .L10+12
	ldrls	r7, [r3, ip, lsl #2]
	add	r5, sp, #8
	ldr	r6, .L10+16
	ldr	r2, [r2, #4]
	mov	r4, r0
	mov	r0, r5
	bl	bhnd_format_chip_id
	ldr	r1, [r6]
	mov	r3, r5
	ldr	r2, .L10+20
	str	r7, [sp]
	sub	r0, fp, #28
	bl	asprintf
	ldr	r1, [fp, #-28]
	cmp	r1, #0
	beq	.L3
	mov	r0, r4
	bl	device_set_desc_copy
	ldr	r1, [r6]
	ldr	r0, [fp, #-28]
	bl	free
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L3:
	mov	r1, r7
	mov	r0, r4
	bl	device_set_desc
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	BHND_CHIPID_MAX_NAMELEN
	.word	.LC2
	.word	.LANCHOR0
	.word	.LC0
	.word	M_BHND
	.word	.LC1
	.size	bhnd_set_default_bus_desc, .-bhnd_set_default_bus_desc
	.section	.rodata.str1.4
	.align	2
.LC3:
	.ascii	"UBUS bus\000"
	.align	2
.LC4:
	.ascii	"SIBA bus\000"
	.align	2
.LC5:
	.ascii	"BCMA bus\000"
	.comm	M_BHND,4,4
	.comm	BHND_CHIPID_MAX_NAMELEN,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.13, %object
	.size	CSWTCH.13, 16
CSWTCH.13:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC5
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
