	.file	"extr_sysfs.c_mlx4_ib_device_register_sysfs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"iov"
.LC1:
	.string	"ports"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"mlx4_ib_device_register_sysfs error (%d)\n"
	.text
	.p2align 4
	.globl	mlx4_ib_device_register_sysfs
	.type	mlx4_ib_device_register_sysfs, @function
mlx4_ib_device_register_sysfs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR 32[rdi]
	call	mlx4_is_master@PLT
	test	eax, eax
	jne	.L2
.L11:
	xor	r12d, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rax]
	call	kobject_get@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	kobject_create_and_add@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	neg	r12d
	test	rax, rax
	je	.L5
	call	kobject_get@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	kobject_create_and_add@PLT
	mov	QWORD PTR 24[rbx], rax
	test	rax, rax
	je	.L6
	mov	eax, DWORD PTR [rbx]
	mov	ebp, 1
	test	eax, eax
	jg	.L7
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	add	ebp, 1
	cmp	DWORD PTR [rbx], ebp
	jl	.L8
.L7:
	mov	esi, ebp
	mov	rdi, rbx
	call	add_port_entries@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L20
.L10:
	mov	rdi, QWORD PTR 24[rbx]
	call	kobject_put@PLT
.L9:
	mov	rdi, QWORD PTR 16[rbx]
	call	kobject_put@PLT
.L5:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rax]
	call	kobject_put@PLT
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	call	pr_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbx
	call	register_pkey_tree@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	mlx4_ib_device_register_sysfs, .-mlx4_ib_device_register_sysfs
	.comm	ENOMEM,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_sysfs.c_mlx4_ib_device_register_sysfs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"iov\000"
	.align	2
.LC1:
	.ascii	"ports\000"
	.align	2
.LC2:
	.ascii	"mlx4_ib_device_register_sysfs error (%d)\012\000"
	.text
	.align	2
	.global	mlx4_ib_device_register_sysfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_ib_device_register_sysfs, %function
mlx4_ib_device_register_sysfs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0, #16]
	bl	mlx4_is_master
	cmp	r0, #0
	bne	.L2
.L11:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, [r5, #4]
	ldr	r0, [r3]
	bl	kobject_get
	mov	r1, r0
	ldr	r0, .L21
	bl	kobject_create_and_add
	cmp	r0, #0
	str	r0, [r5, #8]
	beq	.L19
	bl	kobject_get
	mov	r1, r0
	ldr	r0, .L21+4
	bl	kobject_create_and_add
	cmp	r0, #0
	str	r0, [r5, #12]
	beq	.L6
	ldr	r3, [r5]
	cmp	r3, #0
	movgt	r6, #1
	bgt	.L7
	b	.L8
.L20:
	ldr	r3, [r5]
	cmp	r3, r6
	blt	.L8
.L7:
	mov	r1, r6
	mov	r0, r5
	bl	add_port_entries
	subs	r4, r0, #0
	add	r6, r6, #1
	beq	.L20
.L10:
	ldr	r0, [r5, #12]
	bl	kobject_put
.L9:
	ldr	r0, [r5, #8]
	bl	kobject_put
.L5:
	ldr	r3, [r5, #4]
	ldr	r0, [r3]
	bl	kobject_put
	mov	r1, r4
	ldr	r0, .L21+8
	bl	pr_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L19:
	ldr	r3, .L21+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L5
.L8:
	mov	r0, r5
	bl	register_pkey_tree
	subs	r4, r0, #0
	beq	.L11
	b	.L10
.L6:
	ldr	r3, .L21+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L9
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	ENOMEM
	.size	mlx4_ib_device_register_sysfs, .-mlx4_ib_device_register_sysfs
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
