	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_slaves_guid_change
_handle_slaves_guid_change:             ## @handle_slaves_guid_change
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edi
	callq	_mlx4_is_mfunc
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_mlx4_is_master
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$28, %edi
	callq	_kmalloc
	movq	%rax, %rbx
	movl	(%r14), %esi
	movl	$28, %edi
	callq	_kmalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_11
## %bb.3:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.4:
	shll	$2, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	$8, %r14d
	incl	%r15d
	cmpl	$32, %r14d
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %eax
	movl	%r14d, %ecx
	sarl	%cl, %eax
	testb	%al, %al
	je	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movl	$1, (%rbx)
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$1, 4(%rbx)
	movq	_IB_MGMT_METHOD_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_IB_SMP_ATTR_GUID_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movl	%eax, 12(%rbx)
	movq	_MLX4_MAD_IFC_NET_VIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MLX4_MAD_IFC_IGNORE_KEYS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, (%rsp)
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_mlx4_MAD_IFC
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r15d, %ebx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_mlx4_ib_update_cache_on_guid_change
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%ebx, %r15d
	movq	%r12, %rcx
	callq	_mlx4_ib_notify_slaves_on_guid_change
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_ib_warn
LBB0_11:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,4,2 ## @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_METHOD_GET,4,2         ## @IB_MGMT_METHOD_GET
	.comm	_IB_SMP_ATTR_GUID_INFO,4,2      ## @IB_SMP_ATTR_GUID_INFO
	.comm	_MLX4_MAD_IFC_IGNORE_KEYS,4,2   ## @MLX4_MAD_IFC_IGNORE_KEYS
	.comm	_MLX4_MAD_IFC_NET_VIEW,4,2      ## @MLX4_MAD_IFC_NET_VIEW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed in get GUID INFO MAD_IFC\n"

	.no_dead_strip	_handle_slaves_guid_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_slaves_guid_change
_handle_slaves_guid_change:             ; @handle_slaves_guid_change
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_mlx4_is_mfunc
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_mlx4_is_master
	cbz	w0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #28
	bl	_kmalloc
	mov	x22, x0
	ldr	w1, [x23]
	mov	w0, #28
	bl	_kmalloc
	mov	x23, x0
	cmp	x22, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_11
; %bb.3:
	mov	w26, #0
	lsl	w24, w24, #2
	add	x25, x23, #8
	movi.2s	v8, #1
Lloh2:
	adrp	x28, _MLX4_MAD_IFC_IGNORE_KEYS@GOTPAGE
Lloh3:
	ldr	x28, [x28, _MLX4_MAD_IFC_IGNORE_KEYS@GOTPAGEOFF]
Lloh4:
	adrp	x27, _MLX4_MAD_IFC_NET_VIEW@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MLX4_MAD_IFC_NET_VIEW@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, #8
	add	w24, w24, #1
	cmp	w26, #32
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w20, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	asr	w8, w20, w26
	tst	w8, #0xff
	b.eq	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	mov	x0, x23
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	str	d8, [x22]
Lloh6:
	adrp	x8, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x22, #24]
Lloh9:
	adrp	x8, _IB_MGMT_METHOD_GET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_MGMT_METHOD_GET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IB_SMP_ATTR_GUID_INFO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_SMP_ATTR_GUID_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #16]
	mov	x0, x24
	bl	_cpu_to_be32
	str	w0, [x22, #12]
	ldr	w8, [x28]
	ldr	w9, [x27]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, x21
	mov	x3, #0
	mov	x4, #0
	mov	x5, x22
	mov	x6, x23
	bl	_mlx4_MAD_IFC
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x25
	bl	_mlx4_ib_update_cache_on_guid_change
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x25
	bl	_mlx4_ib_notify_slaves_on_guid_change
	b	LBB0_4
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_ib_warn
LBB0_11:
	mov	x0, x22
	bl	_kfree
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,4,2 ; @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_METHOD_GET,4,2         ; @IB_MGMT_METHOD_GET
	.comm	_IB_SMP_ATTR_GUID_INFO,4,2      ; @IB_SMP_ATTR_GUID_INFO
	.comm	_MLX4_MAD_IFC_IGNORE_KEYS,4,2   ; @MLX4_MAD_IFC_IGNORE_KEYS
	.comm	_MLX4_MAD_IFC_NET_VIEW,4,2      ; @MLX4_MAD_IFC_NET_VIEW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed in get GUID INFO MAD_IFC\n"

	.no_dead_strip	_handle_slaves_guid_change
.subsections_via_symbols
