	.file	"extr_sysfs.c_hfi1_create_port_files.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Skipping infiniband class with invalid port %u\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"sc2vl"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Skipping sc2vl sysfs info, (err %d) port %u\n"
	.section	.rodata.str1.1
.LC3:
	.string	"sl2sc"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Skipping sl2sc sysfs info, (err %d) port %u\n"
	.section	.rodata.str1.1
.LC5:
	.string	"vl2mtu"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Skipping vl2mtu sysfs info, (err %d) port %u\n"
	.section	.rodata.str1.1
.LC7:
	.string	"CCMgtA"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"Skipping Congestion Control sysfs info, (err %d) port %u\n"
	.align 8
.LC9:
	.string	"Skipping Congestion Control setting sysfs info, (err %d) port %u\n"
	.align 8
.LC10:
	.string	"Skipping Congestion Control table sysfs info, (err %d) port %u\n"
	.align 8
.LC11:
	.string	"Congestion Control Agent enabled for port %d\n"
	.text
	.p2align 4
	.globl	hfi1_create_port_files
	.type	hfi1_create_port_files, @function
hfi1_create_port_files:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	dd_from_ibdev@PLT
	mov	r15, rax
	test	ebx, ebx
	je	.L2
	cmp	DWORD PTR [rax], ebx
	jge	.L3
.L2:
	mov	edx, ebx
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dd_dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[r15]
	movsx	rax, ebx
	lea	rcx, .LC1[rip]
	lea	rsi, hfi1_sc2vl_ktype[rip]
	sal	rax, 4
	lea	rbp, -16[rdx+rax]
	mov	rdx, r13
	mov	rdi, rbp
	call	kobject_init_and_add@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L20
	mov	esi, DWORD PTR KOBJ_ADD[rip]
	mov	rdi, rbp
	lea	r14, 4[rbp]
	call	kobject_uevent@PLT
	lea	rcx, .LC3[rip]
	mov	rdx, r13
	mov	rdi, r14
	lea	rsi, hfi1_sl2sc_ktype[rip]
	call	kobject_init_and_add@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L21
	mov	esi, DWORD PTR KOBJ_ADD[rip]
	mov	rdi, r14
	call	kobject_uevent@PLT
	lea	rax, 8[rbp]
	mov	rdx, r13
	lea	rcx, .LC5[rip]
	lea	rsi, hfi1_vl2mtu_ktype[rip]
	mov	rdi, rax
	mov	QWORD PTR [rsp], rax
	call	kobject_init_and_add@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
	mov	esi, DWORD PTR KOBJ_ADD[rip]
	mov	rdi, QWORD PTR [rsp]
	call	kobject_uevent@PLT
	lea	rax, 12[rbp]
	mov	rdx, r13
	lea	rcx, .LC7[rip]
	lea	rsi, port_cc_ktype[rip]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	kobject_init_and_add@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L23
	mov	r13, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR KOBJ_ADD[rip]
	mov	rdi, r13
	call	kobject_uevent@PLT
	lea	rsi, cc_setting_bin_attr[rip]
	mov	rdi, r13
	call	sysfs_create_bin_file@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L24
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, cc_table_bin_attr[rip]
	call	sysfs_create_bin_file@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L25
	mov	edx, ebx
	lea	rsi, .LC11[rip]
	mov	rdi, r15
	call	dd_dev_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, eax
	mov	ecx, ebx
	lea	rsi, .LC4[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dd_dev_err@PLT
.L7:
	mov	rdi, rbp
	call	kobject_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, eax
	mov	ecx, ebx
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dd_dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, eax
	mov	ecx, ebx
	lea	rsi, .LC6[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dd_dev_err@PLT
.L9:
	mov	rdi, r14
	call	kobject_put@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, eax
	mov	ecx, ebx
	lea	rsi, .LC9[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dd_dev_err@PLT
.L13:
	mov	rdi, QWORD PTR 8[rsp]
	call	kobject_put@PLT
.L11:
	mov	rdi, QWORD PTR [rsp]
	call	kobject_put@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, eax
	mov	ecx, ebx
	lea	rsi, .LC8[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dd_dev_err@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, eax
	mov	rdi, r15
	mov	ecx, ebx
	xor	eax, eax
	lea	rsi, .LC10[rip]
	call	dd_dev_err@PLT
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, cc_setting_bin_attr[rip]
	call	sysfs_remove_bin_file@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	hfi1_create_port_files, .-hfi1_create_port_files
	.comm	port_cc_ktype,4,4
	.comm	hfi1_vl2mtu_ktype,4,4
	.comm	hfi1_sl2sc_ktype,4,4
	.comm	hfi1_sc2vl_ktype,4,4
	.comm	cc_table_bin_attr,4,4
	.comm	cc_setting_bin_attr,4,4
	.comm	KOBJ_ADD,4,4
	.comm	ENODEV,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_hfi1_create_port_files.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Skipping infiniband class with invalid port %u\012\000"
	.align	2
.LC1:
	.ascii	"sc2vl\000"
	.align	2
.LC2:
	.ascii	"Skipping sc2vl sysfs info, (err %d) port %u\012\000"
	.align	2
.LC3:
	.ascii	"sl2sc\000"
	.align	2
.LC4:
	.ascii	"Skipping sl2sc sysfs info, (err %d) port %u\012\000"
	.align	2
.LC5:
	.ascii	"vl2mtu\000"
	.align	2
.LC6:
	.ascii	"Skipping vl2mtu sysfs info, (err %d) port %u\012\000"
	.align	2
.LC7:
	.ascii	"CCMgtA\000"
	.align	2
.LC8:
	.ascii	"Skipping Congestion Control sysfs info, (err %d) po"
	.ascii	"rt %u\012\000"
	.align	2
.LC9:
	.ascii	"Skipping Congestion Control setting sysfs info, (er"
	.ascii	"r %d) port %u\012\000"
	.align	2
.LC10:
	.ascii	"Skipping Congestion Control table sysfs info, (err "
	.ascii	"%d) port %u\012\000"
	.align	2
.LC11:
	.ascii	"Congestion Control Agent enabled for port %d\012\000"
	.text
	.align	2
	.global	hfi1_create_port_files
	.syntax unified
	.arm
	.fpu softvfp
	.type	hfi1_create_port_files, %function
hfi1_create_port_files:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	sub	sp, sp, #12
	mov	r7, r2
	bl	dd_from_ibdev
	cmp	r5, #0
	mov	r6, r0
	beq	.L2
	ldr	r3, [r0]
	cmp	r3, r5
	bge	.L3
.L2:
	mov	r2, r5
	mov	r0, r6
	ldr	r1, .L26
	bl	dd_dev_err
	ldr	r3, .L26+4
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r8, [r0, #4]
	sub	r3, r5, #-268435455
	add	r8, r8, r3, lsl #4
	mov	r0, r8
	mov	r2, r7
	ldr	r3, .L26+8
	ldr	r1, .L26+12
	bl	kobject_init_and_add
	subs	r4, r0, #0
	bne	.L20
	ldr	r9, .L26+16
	mov	r0, r8
	ldr	r1, [r9]
	add	r10, r8, #4
	bl	kobject_uevent
	mov	r0, r10
	mov	r2, r7
	ldr	r3, .L26+20
	ldr	r1, .L26+24
	bl	kobject_init_and_add
	subs	r4, r0, #0
	bne	.L21
	ldr	r1, [r9]
	mov	r0, r10
	add	fp, r8, #8
	bl	kobject_uevent
	mov	r0, fp
	mov	r2, r7
	ldr	r3, .L26+28
	ldr	r1, .L26+32
	bl	kobject_init_and_add
	subs	r4, r0, #0
	bne	.L22
	add	r3, r8, #12
	mov	r4, r3
	ldr	r1, [r9]
	mov	r0, fp
	str	r3, [sp, #4]
	bl	kobject_uevent
	mov	r0, r4
	mov	r2, r7
	ldr	r3, .L26+36
	ldr	r1, .L26+40
	bl	kobject_init_and_add
	subs	r4, r0, #0
	bne	.L23
	ldr	r4, [sp, #4]
	ldr	r1, [r9]
	mov	r0, r4
	bl	kobject_uevent
	mov	r0, r4
	ldr	r1, .L26+44
	bl	sysfs_create_bin_file
	subs	r4, r0, #0
	bne	.L24
	ldr	r1, .L26+48
	ldr	r0, [sp, #4]
	bl	sysfs_create_bin_file
	subs	r4, r0, #0
	bne	.L25
	mov	r2, r5
	mov	r0, r6
	ldr	r1, .L26+52
	bl	dd_dev_info
	b	.L1
.L21:
	mov	r3, r5
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L26+56
	bl	dd_dev_err
.L7:
	mov	r0, r8
	bl	kobject_put
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	mov	r3, r5
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L26+60
	bl	dd_dev_err
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r3, r5
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L26+64
	bl	dd_dev_err
.L9:
	mov	r0, r10
	bl	kobject_put
	b	.L7
.L24:
	mov	r3, r5
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L26+68
	bl	dd_dev_err
.L13:
	ldr	r0, [sp, #4]
	bl	kobject_put
.L11:
	mov	r0, fp
	bl	kobject_put
	b	.L9
.L23:
	mov	r3, r5
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L26+72
	bl	dd_dev_err
	b	.L11
.L25:
	mov	r3, r5
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L26+76
	bl	dd_dev_err
	ldr	r1, .L26+44
	ldr	r0, [sp, #4]
	bl	sysfs_remove_bin_file
	b	.L13
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	ENODEV
	.word	.LC1
	.word	hfi1_sc2vl_ktype
	.word	KOBJ_ADD
	.word	.LC3
	.word	hfi1_sl2sc_ktype
	.word	.LC5
	.word	hfi1_vl2mtu_ktype
	.word	.LC7
	.word	port_cc_ktype
	.word	cc_setting_bin_attr
	.word	cc_table_bin_attr
	.word	.LC11
	.word	.LC4
	.word	.LC2
	.word	.LC6
	.word	.LC9
	.word	.LC8
	.word	.LC10
	.size	hfi1_create_port_files, .-hfi1_create_port_files
	.comm	port_cc_ktype,4,4
	.comm	hfi1_vl2mtu_ktype,4,4
	.comm	hfi1_sl2sc_ktype,4,4
	.comm	hfi1_sc2vl_ktype,4,4
	.comm	cc_table_bin_attr,4,4
	.comm	cc_setting_bin_attr,4,4
	.comm	KOBJ_ADD,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
