	.file	"extr_rdma-ndd.c_set_rdma_node_desc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s/%s"
.LC1:
	.string	"Failed to open %s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"retrying set Node Description on %s\n"
	.text
	.p2align 4
	.type	set_rdma_node_desc, @function
set_rdma_node_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	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, esi
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movsx	rbx, DWORD PTR PATH_MAX[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rcx, rsp
	lea	rax, 15[rbx]
	mov	rsi, rbx
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L23:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L23
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L24
.L4:
	mov	r8, QWORD PTR SYS_INFINIBAND[rip]
	mov	rcx, QWORD PTR sys_dir[rip]
	mov	rdi, rsp
	lea	rdx, .LC0[rip]
	lea	r15, .LC2[rip]
	call	snprintf@PLT
	mov	rdi, rsp
	mov	BYTE PTR -1[rsp+rbx], 0
	call	opendir@PLT
	mov	QWORD PTR -72[rbp], rax
	test	rax, rax
	je	.L25
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR -72[rbp]
	call	readdir@PLT
	mov	r12, rax
	test	rax, rax
	je	.L26
	mov	rdi, QWORD PTR [r12]
	mov	ebx, DWORD PTR set_retry_cnt[rip]
	cmp	BYTE PTR [rdi], 46
	je	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, r14d
	mov	rsi, r13
	call	update_node_desc@PLT
	test	ebx, ebx
	jle	.L7
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR LOG_ERR[rip]
	mov	rdx, QWORD PTR [r12]
	mov	rsi, r15
	sub	ebx, 1
	call	syslog@PLT
	mov	rdi, QWORD PTR [r12]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, QWORD PTR -72[rbp]
	call	closedir@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L25:
	mov	edi, DWORD PTR LOG_INFO[rip]
	mov	rdx, rsp
	lea	rsi, .LC1[rip]
	call	syslog@PLT
	mov	eax, DWORD PTR ENOSYS[rip]
	neg	eax
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_rdma_node_desc, .-set_rdma_node_desc
	.comm	sys_dir,8,8
	.comm	set_retry_cnt,4,4
	.comm	SYS_INFINIBAND,8,8
	.comm	PATH_MAX,4,4
	.comm	LOG_INFO,4,4
	.comm	LOG_ERR,4,4
	.comm	ENOSYS,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_rdma-ndd.c_set_rdma_node_desc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s/%s\000"
	.align	2
.LC1:
	.ascii	"Failed to open %s\000"
	.align	2
.LC2:
	.ascii	"retrying set Node Description on %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_rdma_node_desc, %function
set_rdma_node_desc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L17
	ldr	r2, .L17+4
	ldr	r5, [r3]
	ldr	r2, [r2]
	add	r3, r5, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r4, sp
	ldr	r3, .L17+8
	str	r2, [r4], #8
	ldr	ip, .L17+12
	ldr	r3, [r3]
	ldr	r2, .L17+16
	mov	r6, r0
	mov	r7, r1
	mov	r0, r4
	mov	r1, r5
	ldr	ip, [ip]
	str	ip, [fp, #-40]
	mov	ip,#0
	bl	snprintf
	mov	r3, #0
	add	r5, r4, r5
	mov	r0, r4
	strb	r3, [r5, #-1]
	bl	opendir
	subs	r10, r0, #0
	beq	.L12
	ldr	r9, .L17+20
	ldr	r8, .L17+24
.L4:
	mov	r0, r10
	bl	readdir
	subs	r5, r0, #0
	beq	.L15
	ldr	r0, [r5]
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L4
	ldr	r3, .L17+28
	ldr	r4, [r3]
.L5:
	mov	r2, r7
	mov	r1, r6
	bl	update_node_desc
	cmp	r0, #0
	cmpne	r4, #0
	ble	.L4
	mov	r1, r8
	ldr	r2, [r5]
	ldr	r0, [r9]
	bl	syslog
	sub	r4, r4, #1
	ldr	r0, [r5]
	b	.L5
.L15:
	mov	r0, r10
	bl	closedir
	mov	r0, r5
.L1:
	ldr	r3, .L17+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, .L17+32
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L17+36
	bl	syslog
	ldr	r3, .L17+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	PATH_MAX
	.word	SYS_INFINIBAND
	.word	sys_dir
	.word	.LC3
	.word	.LC0
	.word	LOG_ERR
	.word	.LC2
	.word	set_retry_cnt
	.word	LOG_INFO
	.word	.LC1
	.word	ENOSYS
	.size	set_rdma_node_desc, .-set_rdma_node_desc
	.comm	sys_dir,4,4
	.comm	set_retry_cnt,4,4
	.comm	SYS_INFINIBAND,4,4
	.comm	PATH_MAX,4,4
	.comm	LOG_INFO,4,4
	.comm	LOG_ERR,4,4
	.comm	ENOSYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
