	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_slave_alias_guid_event ## -- Begin function mlx4_ib_slave_alias_guid_event
	.p2align	4, 0x90
_mlx4_ib_slave_alias_guid_event:        ## @mlx4_ib_slave_alias_guid_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r14
	leal	7(%r12), %r15d
	testl	%esi, %esi
	cmovnsl	%esi, %r15d
	movslq	%edx, %rbx
	decq	%rbx
	callq	_spin_lock_irqsave
	movq	%rbx, %rdx
	movq	%r14, %rbx
	movq	8(%r14), %rax
	movq	%rdx, %r14
	shlq	$4, %r14
	movq	_GUID_STATE_NEED_PORT_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%r14)
	je	LBB0_1
LBB0_8:
	movq	%rbx, %rdi
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_1:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %ecx
	sarl	$3, %ecx
	andl	$-8, %r15d
	movl	%r12d, %edx
	subl	%r15d, %edx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.5:
	movl	%ecx, %r15d
	movl	16(%rbx), %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_mlx4_get_admin_guid
	movq	%rax, %r13
	movq	_MLX4_GUID_FOR_DELETE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be64
	cmpq	%rax, %r13
	je	LBB0_8
## %bb.6:
	movq	%rbx, %r12
	movslq	%r15d, %rbx
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %r12
	movq	8(%rax,%r14), %rax
	movslq	%ecx, %rbx
	movq	%rbx, %rcx
	shlq	$5, %rcx
	movq	24(%rax,%rcx), %rax
	movq	_GUID_REC_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movq	(%rax,%rdx,4), %r13
	movq	_MLX4_GUID_FOR_DELETE_VAL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_cpu_to_be64
	testq	%r13, %r13
	je	LBB0_10
## %bb.3:
	cmpq	%rax, %r13
	je	LBB0_10
## %bb.4:
	movl	(%r15), %edi
	callq	_cpu_to_be64
	movq	%rax, %r13
LBB0_7:
	movq	8(%r12), %rax
	movq	8(%rax,%r14), %rax
	shlq	$5, %rbx
	movq	24(%rax,%rbx), %rax
	movq	_GUID_REC_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movslq	%edi, %r15
	imulq	%r15, %rcx
	movq	%r13, (%rax,%rcx,4)
	callq	_mlx4_ib_get_aguid_comp_mask_from_ix
	movq	8(%r12), %rcx
	movq	8(%rcx,%r14), %rcx
	orl	%eax, 20(%rcx,%rbx)
	movq	_MLX4_GUID_INFO_STATUS_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx,%rbx)
	movq	$0, 8(%rcx,%rbx)
	movq	(%rcx,%rbx), %rax
	movq	$0, (%rax,%r15,8)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_ib_init_alias_guid_work   ## TAILCALL
LBB0_10:
	movq	%r12, %rdi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GUID_STATE_NEED_PORT_INIT,4,2  ## @GUID_STATE_NEED_PORT_INIT
	.comm	_GUID_REC_SIZE,4,2              ## @GUID_REC_SIZE
	.comm	_MLX4_GUID_FOR_DELETE_VAL,4,2   ## @MLX4_GUID_FOR_DELETE_VAL
	.comm	_MLX4_GUID_INFO_STATUS_IDLE,4,2 ## @MLX4_GUID_INFO_STATUS_IDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_slave_alias_guid_event ; -- Begin function mlx4_ib_slave_alias_guid_event
	.p2align	2
_mlx4_ib_slave_alias_guid_event:        ; @mlx4_ib_slave_alias_guid_event
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	add	w8, w1, #7
	cmp	w1, #0
	csel	w21, w8, w1, lt
	sxtw	x8, w22
	sub	x20, x8, #1
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	lsl	x25, x20, #4
	ldr	w9, [x8, x25]
Lloh0:
	adrp	x10, _GUID_STATE_NEED_PORT_INIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GUID_STATE_NEED_PORT_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
LBB0_1:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_2:
	asr	w26, w21, #3
	and	w9, w21, #0xfffffff8
	sub	w21, w23, w9
	cbz	w24, LBB0_5
; %bb.3:
	ldr	w0, [x19, #16]
	mov	x1, x23
	mov	x2, x22
	bl	_mlx4_get_admin_guid
	mov	x22, x0
Lloh3:
	adrp	x8, _MLX4_GUID_FOR_DELETE_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_GUID_FOR_DELETE_VAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_be64
	cmp	x22, x0
	b.eq	LBB0_1
; %bb.4:
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	sxtw	x23, w26
	b	LBB0_7
LBB0_5:
	add	x8, x8, x20, lsl #4
	ldr	x8, [x8, #8]
	sxtw	x23, w26
	add	x8, x8, x23, lsl #5
	ldr	x8, [x8, #24]
Lloh6:
	adrp	x9, _GUID_REC_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GUID_REC_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w9, w9, w21
	sbfiz	x9, x9, #2, #32
	ldr	x24, [x8, x9]
Lloh9:
	adrp	x22, _MLX4_GUID_FOR_DELETE_VAL@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MLX4_GUID_FOR_DELETE_VAL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_cpu_to_be64
	cmp	x24, #0
	ccmp	x24, x0, #4, ne
	b.eq	LBB0_1
; %bb.6:
	ldr	w0, [x22]
	bl	_cpu_to_be64
	mov	x22, x0
LBB0_7:
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	lsl	x23, x23, #5
	add	x8, x8, x23
Lloh11:
	adrp	x9, _GUID_REC_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GUID_REC_SIZE@GOTPAGEOFF]
	ldr	x8, [x8, #24]
Lloh13:
	ldr	w9, [x9]
	mul	w9, w9, w21
	sbfiz	x9, x9, #2, #32
	str	x22, [x8, x9]
	mov	x0, x21
	bl	_mlx4_ib_get_aguid_comp_mask_from_ix
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	add	x8, x8, x23
	ldr	w9, [x8, #20]
	orr	w9, w9, w0
	str	w9, [x8, #20]
Lloh14:
	adrp	x9, _MLX4_GUID_INFO_STATUS_IDLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MLX4_GUID_INFO_STATUS_IDLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	str	xzr, [x8, #8]
	ldr	x8, [x8]
	str	xzr, [x8, w21, sxtw #3]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mlx4_ib_init_alias_guid_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GUID_STATE_NEED_PORT_INIT,4,2  ; @GUID_STATE_NEED_PORT_INIT
	.comm	_GUID_REC_SIZE,4,2              ; @GUID_REC_SIZE
	.comm	_MLX4_GUID_FOR_DELETE_VAL,4,2   ; @MLX4_GUID_FOR_DELETE_VAL
	.comm	_MLX4_GUID_INFO_STATUS_IDLE,4,2 ; @MLX4_GUID_INFO_STATUS_IDLE
.subsections_via_symbols
