	.file	"extr_mad.c_handle_client_rereg_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	handle_client_rereg_event, @function
handle_client_rereg_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	call	mlx4_is_master@PLT
	test	rax, rax
	jne	.L12
.L3:
	mov	rdi, QWORD PTR 0[rbp]
	call	mlx4_is_slave@PLT
	test	eax, eax
	jne	.L5
	mov	rdi, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR MLX4_FLAG_SECURE_HOST[rip], eax
	je	.L5
	mov	eax, DWORD PTR 4[rdi]
	test	DWORD PTR MLX4_DEV_CAP_FLAG2_SL_TO_VL_CHANGE_EVENT[rip], eax
	je	.L13
.L5:
	mov	edx, DWORD PTR IB_EVENT_CLIENT_REREGISTER[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, r12d
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mlx4_ib_dispatch_event@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	mlx4_ib_invalidate_all_guid_record@PLT
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	jne	.L3
	mov	rdx, QWORD PTR 8[rbp]
	movsx	rax, r12d
	xor	esi, esi
	lea	rdi, -4[rdx+rax*4]
	call	mlx4_ib_mcg_port_cleanup@PLT
	mov	edx, DWORD PTR MLX4_EQ_PORT_INFO_CLIENT_REREG_MASK[rip]
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, r12d
	call	mlx4_gen_slaves_port_mgt_ev@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	call	mlx4_is_master@PLT
	mov	esi, r12d
	mov	rdi, rbp
	test	rax, rax
	je	.L6
	call	mlx4_ib_sl2vl_update@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	call	mlx4_sched_ib_sl2vl_update_work@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	handle_client_rereg_event, .-handle_client_rereg_event
	.comm	MLX4_FLAG_SECURE_HOST,4,4
	.comm	MLX4_EQ_PORT_INFO_CLIENT_REREG_MASK,4,4
	.comm	MLX4_DEV_CAP_FLAG2_SL_TO_VL_CHANGE_EVENT,4,4
	.comm	IB_EVENT_CLIENT_REREGISTER,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_mad.c_handle_client_rereg_event.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_client_rereg_event, %function
handle_client_rereg_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r5, r1
	bl	mlx4_is_master
	cmp	r0, #0
	bne	.L12
.L3:
	ldr	r0, [r4]
	bl	mlx4_is_slave
	cmp	r0, #0
	bne	.L5
	ldr	r0, [r4]
	ldr	r3, .L14
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L5
	ldr	r3, .L14+4
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L13
.L5:
	ldr	r3, .L14+8
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r2, [r3]
	b	mlx4_ib_dispatch_event
.L12:
	mov	r1, r5
	mov	r0, r4
	bl	mlx4_ib_invalidate_all_guid_record
	ldr	r1, [r4, #8]
	cmp	r1, #0
	bne	.L3
	ldr	r3, [r4, #4]
	sub	r0, r5, #-1073741823
	add	r0, r3, r0, lsl #2
	bl	mlx4_ib_mcg_port_cleanup
	ldr	r3, .L14+12
	mov	r1, r5
	ldr	r2, [r3]
	ldr	r0, [r4]
	bl	mlx4_gen_slaves_port_mgt_ev
	b	.L3
.L13:
	bl	mlx4_is_master
	cmp	r0, #0
	mov	r1, r5
	mov	r0, r4
	beq	.L6
	bl	mlx4_ib_sl2vl_update
	b	.L5
.L6:
	bl	mlx4_sched_ib_sl2vl_update_work
	b	.L5
.L15:
	.align	2
.L14:
	.word	MLX4_FLAG_SECURE_HOST
	.word	MLX4_DEV_CAP_FLAG2_SL_TO_VL_CHANGE_EVENT
	.word	IB_EVENT_CLIENT_REREGISTER
	.word	MLX4_EQ_PORT_INFO_CLIENT_REREG_MASK
	.size	handle_client_rereg_event, .-handle_client_rereg_event
	.comm	MLX4_FLAG_SECURE_HOST,4,4
	.comm	MLX4_EQ_PORT_INFO_CLIENT_REREG_MASK,4,4
	.comm	MLX4_DEV_CAP_FLAG2_SL_TO_VL_CHANGE_EVENT,4,4
	.comm	IB_EVENT_CLIENT_REREGISTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
