	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_init_alias_guid_service ## -- Begin function mlx4_ib_init_alias_guid_service
	.p2align	4, 0x90
_mlx4_ib_init_alias_guid_service:       ## @mlx4_ib_init_alias_guid_service
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	32(%rdi), %edi
	callq	_mlx4_is_master
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_27
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	callq	_ib_sa_register_client
	leaq	24(%r13), %rdi
	callq	_spin_lock_init
	cmpl	$0, (%r13)
	jle	LBB0_27
## %bb.4:
	leaq	8(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	40(%r13), %r14
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	*(%r14)
	testq	%rax, %rax
	jne	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	jl	LBB0_5
## %bb.7:
	testl	%eax, %eax
	jle	LBB0_26
## %bb.8:
	movl	$1, %ecx
	movq	$-48, %rdx
	xorl	%ebx, %ebx
	movq	_NUM_ALIAS_GUID_REC_IN_PORT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	imulq	$56, %rbx, %r14
	movq	16(%r13), %rdi
	addq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_GUID_STATE_NEED_PORT_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%r13), %rax
	orl	%ecx, 48(%rax,%r14)
	cmpl	$0, (%r12)
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%rax,%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	$255, %esi
	movl	$8, %edx
	callq	_memset
	incq	%rbx
	movslq	(%r12), %rcx
	movq	16(%r13), %rax
	cmpq	%rcx, %rbx
	jl	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rax,%r14), %rdi
	addq	$32, %rdi
	callq	_INIT_LIST_HEAD
	movq	_mlx4_ib_sm_guid_assign@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_NUM_ALIAS_GUID_PER_PORT@GOTPCREL(%rip), %r12
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$2, (%r12)
	jl	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %ebx
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	32(%r13), %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_mlx4_set_admin_guid
	incl	%r15d
	cmpl	(%r12), %r15d
	jl	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_NUM_ALIAS_GUID_REC_IN_PORT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_invalidate_guid_record
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r13), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 24(%rax,%r14)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, (%rax,%r14)
	leaq	-63(%rbp), %r15
	movq	%r15, %rdi
	movl	$15, %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_alloc_ordered_workqueue
	movq	16(%r13), %rcx
	movq	%rax, 8(%rcx,%r14)
	testq	%rax, %rax
	je	LBB0_20
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rcx,%r14), %rdi
	addq	$16, %rdi
	movq	_alias_guid_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	incq	%rbx
	movslq	(%r13), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	addq	$56, %rdx
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_26:
	xorl	%r15d, %r15d
	jmp	LBB0_27
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_27
LBB0_23:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_24:
	negl	%r15d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_ib_sa_unregister_client
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_err
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.21:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx), %rdi
	callq	_destroy_workqueue
	movq	16(%r13), %rcx
	movq	$0, (%rcx,%rbx)
	decq	%r14
	addq	$-56, %rbx
	cmpq	$1, %r14
	jg	LBB0_22
	jmp	LBB0_24
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_GUID_STATE_NEED_PORT_INIT,4,2  ## @GUID_STATE_NEED_PORT_INIT
	.comm	_NUM_ALIAS_GUID_REC_IN_PORT,4,2 ## @NUM_ALIAS_GUID_REC_IN_PORT
	.comm	_mlx4_ib_sm_guid_assign,8,3     ## @mlx4_ib_sm_guid_assign
	.comm	_NUM_ALIAS_GUID_PER_PORT,4,2    ## @NUM_ALIAS_GUID_PER_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alias_guid%d"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
	.comm	_alias_guid_work,4,2            ## @alias_guid_work
L_.str.1:                               ## @.str.1
	.asciz	"init_alias_guid_service: Failed. (ret:%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_init_alias_guid_service ; -- Begin function mlx4_ib_init_alias_guid_service
	.p2align	2
_mlx4_ib_init_alias_guid_service:       ; @mlx4_ib_init_alias_guid_service
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x0, #32]
	bl	_mlx4_is_master
	cbz	w0, LBB0_19
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x24, x19
	str	x0, [x24, #8]!
	cbz	x0, LBB0_20
; %bb.2:
	bl	_ib_sa_register_client
	add	x0, x19, #24
	bl	_spin_lock_init
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.3:
	mov	w20, #0
	add	x21, x19, #40
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	ldr	x8, [x21]
	mov	x3, sp
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	blr	x8
	cbnz	x0, LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_4
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.7:
	mov	x20, #0
	mov	x25, #-48
	mov	w26, #1
	mov	w27, #56
Lloh6:
	adrp	x28, _NUM_ALIAS_GUID_REC_IN_PORT@GOTPAGE
Lloh7:
	ldr	x28, [x28, _NUM_ALIAS_GUID_REC_IN_PORT@GOTPAGEOFF]
Lloh8:
	adrp	x21, _NUM_ALIAS_GUID_PER_PORT@GOTPAGE
Lloh9:
	ldr	x21, [x21, _NUM_ALIAS_GUID_PER_PORT@GOTPAGEOFF]
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x8, [x19, #16]
	mul	x22, x20, x27
	add	x0, x8, x22
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh10:
	adrp	x8, _GUID_STATE_NEED_PORT_INIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GUID_STATE_NEED_PORT_INIT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x8]
	ldr	x8, [x19, #16]
	add	x10, x8, x22
	ldr	w11, [x10, #48]
	orr	w9, w11, w9
	str	w9, [x10, #48]
	ldr	w9, [x28]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x8, x20, x27, x8
	ldr	x8, [x8, #40]
	ldr	x0, [x8, x22, lsl #3]
	mov	w1, #255
	mov	w2, #8
	bl	_memset
	add	x22, x22, #1
	ldrsw	x9, [x28]
	ldr	x8, [x19, #16]
	cmp	x22, x9
	b.lt	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	madd	x8, x20, x27, x8
	add	x0, x8, #32
	bl	_INIT_LIST_HEAD
Lloh13:
	adrp	x8, _mlx4_ib_sm_guid_assign@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mlx4_ib_sm_guid_assign@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	w9, [x21]
	cmp	x8, #0
	ccmp	w9, #1, #4, ne
	b.le	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w22, w20, #1
	mov	w23, #1
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #32]
	mov	w1, #0
	mov	x2, x23
	mov	x3, x22
	bl	_mlx4_set_admin_guid
	add	w23, w23, #1
	ldr	w8, [x21]
	cmp	w23, w8
	b.lt	LBB0_13
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w22, #0
	add	w23, w20, #1
LBB0_16:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_invalidate_guid_record
	add	w22, w22, #1
	ldr	w8, [x28]
	cmp	w22, w8
	b.lt	LBB0_16
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #16]
	mul	x22, x20, x27
	add	x8, x8, x22
	str	x24, [x8, #24]
	str	w20, [x8]
	add	x0, sp, #9
	mov	w1, #15
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_snprintf
Lloh18:
	adrp	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x0, sp, #9
	bl	_alloc_ordered_workqueue
	ldr	x8, [x19, #16]
	add	x9, x8, x22
	str	x0, [x9, #8]
	cbz	x0, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	madd	x8, x20, x27, x8
	add	x0, x8, #16
Lloh21:
	adrp	x8, _alias_guid_work@GOTPAGE
Lloh22:
	ldr	x8, [x8, _alias_guid_work@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x26, x26, #1
	add	x25, x25, #56
	cmp	x20, x8
	b.lt	LBB0_8
LBB0_19:
	mov	w19, #0
	b	LBB0_23
LBB0_20:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_23
LBB0_21:
Lloh27:
	adrp	x8, _EFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
LBB0_22:
	neg	w19, w21
	ldr	x0, [x24]
	bl	_ib_sa_unregister_client
	ldr	x0, [x24]
	bl	_kfree
	str	xzr, [x24]
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_err
LBB0_23:
	ldr	x8, [sp, #24]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.24:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_25:
Lloh35:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x9]
	cbz	w20, LBB0_22
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, x25]
	bl	_destroy_workqueue
	ldr	x8, [x19, #16]
	str	xzr, [x8, x25]
	sub	x26, x26, #1
	sub	x25, x25, #56
	cmp	x26, #1
	b.gt	LBB0_26
	b	LBB0_22
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_GUID_STATE_NEED_PORT_INIT,4,2  ; @GUID_STATE_NEED_PORT_INIT
	.comm	_NUM_ALIAS_GUID_REC_IN_PORT,4,2 ; @NUM_ALIAS_GUID_REC_IN_PORT
	.comm	_mlx4_ib_sm_guid_assign,8,3     ; @mlx4_ib_sm_guid_assign
	.comm	_NUM_ALIAS_GUID_PER_PORT,4,2    ; @NUM_ALIAS_GUID_PER_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alias_guid%d"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
	.comm	_alias_guid_work,4,2            ; @alias_guid_work
l_.str.1:                               ; @.str.1
	.asciz	"init_alias_guid_service: Failed. (ret:%d)\n"

.subsections_via_symbols
