	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_guid_rec
_set_guid_rec:                          ## @set_guid_rec
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_to_mdev
	movq	%rax, %r14
	movslq	(%r13), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leal	1(%rcx), %r15d
	movl	4(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-152(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	___mlx4_ib_query_port
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_12
LBB0_2:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %r13
	addq	$8, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rbx
	movq	-152(%rbp), %rax
	movq	_IB_PORT_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rbx,4), %rcx
	addq	$8, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, (%rax)
	movq	%r13, 40(%rax)
	movq	%rax, %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, 4(%rax)
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movl	12(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 36(%rbx)
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-136(%rbp), %edi
	callq	_ib_lid_be16
	movl	%eax, -112(%rbp)
	movl	%r12d, -120(%rbp)
	movl	-116(%rbp), %edi
	movl	16(%r14), %esi
	movq	_GUID_REC_SIZE@GOTPCREL(%rip), %rax
	movq	_NUM_ALIAS_GUID_IN_REC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	(%rax), %edx
	callq	_memcpy
	movq	_IB_SA_GUIDINFO_REC_LID@GOTPCREL(%rip), %rax
	movq	_IB_SA_GUIDINFO_REC_BLOCK_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	12(%r14), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	leaq	32(%rbx), %rdi
	callq	_init_completion
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	24(%rbx), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	24(%r13), %edi
	movl	8(%r14), %r9d
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_aliasguid_query_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	%r14, %rax
	addq	$28, %rax
	subq	$8, %rsp
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	%r15d, %edx
	leaq	-128(%rbp), %rcx
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	$1000                           ## imm = 0x3E8
	callq	_ib_sa_guid_info_rec_query
	addq	$48, %rsp
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	jns	LBB0_12
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_del
	movq	%r14, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %r14d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %r14d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_invalidate_guid_record
	cmpl	$0, 32(%r13)
	jne	LBB0_11
## %bb.10:
	movslq	%r14d, %rdx
	movq	16(%r13), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rsi
	movl	4(%rax,%rcx,4), %edi
	callq	_queue_delayed_work
LBB0_11:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_12:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mlx4_ib_query_port failed (err: %d), port: %d\n"

	.comm	_IB_PORT_ACTIVE,8,3             ## @IB_PORT_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"port %d not active...rescheduling\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GUID_REC_SIZE,4,2              ## @GUID_REC_SIZE
	.comm	_NUM_ALIAS_GUID_IN_REC,4,2      ## @NUM_ALIAS_GUID_IN_REC
	.comm	_IB_SA_GUIDINFO_REC_LID,4,2     ## @IB_SA_GUIDINFO_REC_LID
	.comm	_IB_SA_GUIDINFO_REC_BLOCK_NUM,4,2 ## @IB_SA_GUIDINFO_REC_BLOCK_NUM
	.comm	_aliasguid_query_handler,4,2    ## @aliasguid_query_handler
L_.str.2:                               ## @.str.2
	.asciz	"ib_sa_guid_info_rec_query failed, query_id: %d. will reschedule to the next 1 sec.\n"

	.no_dead_strip	_set_guid_rec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_guid_rec
_set_guid_rec:                          ; @set_guid_rec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x24, x1
	mov	x23, x0
	bl	_to_mdev
	mov	x19, x0
	ldp	w27, w21, [x24]
                                        ; kill: def $w27 killed $w27 def $x27
	sxtw	x27, w27
	add	w20, w27, #1
	ldr	x28, [x0, #16]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x2, sp, #32
	mov	x0, x23
	mov	x1, x20
	mov	w3, #1
	bl	___mlx4_ib_query_port
	cbz	w0, LBB0_2
; %bb.1:
	mov	x26, x0
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x26
	bl	_pr_debug
	b	LBB0_12
LBB0_2:
	add	x22, x19, #8
	ldr	x8, [sp, #32]
Lloh2:
	adrp	x9, _IB_PORT_ACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_PORT_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x25, x0
	mov	w8, #12
	madd	x8, x27, x8, x28
	add	x26, x8, #8
	str	x19, [x0, #40]
	stp	w20, w21, [x0]
	ldr	w8, [x24, #12]
	str	w8, [x0, #8]
	ldr	w8, [x24, #8]
	str	w8, [x0, #36]
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #48]
	bl	_ib_lid_be16
	str	w0, [sp, #72]
	str	w21, [sp, #64]
	ldr	w0, [sp, #68]
Lloh8:
	adrp	x8, _GUID_REC_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GUID_REC_SIZE@GOTPAGEOFF]
	ldr	w1, [x24, #16]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _NUM_ALIAS_GUID_IN_REC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NUM_ALIAS_GUID_IN_REC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mul	w2, w9, w8
	bl	_memcpy
Lloh14:
	adrp	x8, _IB_SA_GUIDINFO_REC_LID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_SA_GUIDINFO_REC_LID@GOTPAGEOFF]
Lloh16:
	adrp	x9, _IB_SA_GUIDINFO_REC_BLOCK_NUM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IB_SA_GUIDINFO_REC_BLOCK_NUM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x24, #12]
	orr	w28, w8, w9
	add	x0, x25, #32
	bl	_init_completion
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x0, x25, #24
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x1, x26
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #24]
	ldr	w5, [x24, #8]
Lloh20:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh22:
	ldr	w7, [x8]
Lloh23:
	adrp	x8, _aliasguid_query_handler@GOTPAGE
Lloh24:
	ldr	x8, [x8, _aliasguid_query_handler@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	add	x9, x25, #28
	stp	x25, x9, [sp, #8]
	add	x3, sp, #56
	str	w8, [sp]
	mov	x1, x23
	mov	x2, x20
	mov	x4, x28
	mov	w6, #1000
	bl	_ib_sa_guid_info_rec_query
	mov	x1, x0
	mov	w26, #0
	str	x1, [x25, #16]
	tbz	x1, #63, LBB0_12
; %bb.5:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_pr_debug
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_list_del
	mov	x0, x25
	bl	_kfree
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh28:
	adrp	x8, _HZ@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh30:
	ldr	w23, [x8]
	b	LBB0_7
LBB0_6:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
Lloh33:
	adrp	x8, _HZ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	add	w23, w8, w8, lsl #2
LBB0_7:
Lloh36:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh38:
	adrp	x8, _HZ@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	add	w23, w8, w8, lsl #2
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w26, w8
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_invalidate_guid_record
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_11
; %bb.10:
	sxtw	x2, w23
	ldr	x8, [x19, #16]
	mov	w9, #12
	madd	x1, x27, x9, x8
	ldr	w0, [x1, #4]
	bl	_queue_delayed_work
LBB0_11:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_12:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mlx4_ib_query_port failed (err: %d), port: %d\n"

	.comm	_IB_PORT_ACTIVE,8,3             ; @IB_PORT_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"port %d not active...rescheduling\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GUID_REC_SIZE,4,2              ; @GUID_REC_SIZE
	.comm	_NUM_ALIAS_GUID_IN_REC,4,2      ; @NUM_ALIAS_GUID_IN_REC
	.comm	_IB_SA_GUIDINFO_REC_LID,4,2     ; @IB_SA_GUIDINFO_REC_LID
	.comm	_IB_SA_GUIDINFO_REC_BLOCK_NUM,4,2 ; @IB_SA_GUIDINFO_REC_BLOCK_NUM
	.comm	_aliasguid_query_handler,4,2    ; @aliasguid_query_handler
l_.str.2:                               ; @.str.2
	.asciz	"ib_sa_guid_info_rec_query failed, query_id: %d. will reschedule to the next 1 sec.\n"

	.no_dead_strip	_set_guid_rec
.subsections_via_symbols
