	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_roce_addr
_set_roce_addr:                         ## @set_roce_addr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$65535, -72(%rbp)               ## imm = 0xFFFF
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %r14d
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_rdma_read_gid_l2_fields
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	cmpl	$128, %r14d
	je	LBB0_5
## %bb.3:
	cmpl	$129, %r14d
	jne	LBB0_10
LBB0_4:
	movq	_MLX5_ROCE_VERSION_1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%ecx, %ecx
LBB0_8:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movl	(%rbx), %edi
	movl	(%r15), %r8d
	movq	-72(%rbp), %rax
	movq	_VLAN_CFI_MASK@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	cmpq	(%rdx), %rax
	setl	%bl
	subq	$8, %rsp
	movl	%r14d, %edx
	movq	%r13, %r9
	pushq	%r12
	pushq	%rax
	pushq	%rbx
	callq	_mlx5_core_roce_gid_set
	addq	$32, %rsp
LBB0_12:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MLX5_ROCE_VERSION_2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_ipv6_addr_v4mapped
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	_MLX5_ROCE_L3_TYPE_IPV4@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_mlx5_ib_warn
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_9:
	movq	_MLX5_ROCE_L3_TYPE_IPV6@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ecx
	jmp	LBB0_8
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MLX5_ROCE_VERSION_1,4,2        ## @MLX5_ROCE_VERSION_1
	.comm	_MLX5_ROCE_VERSION_2,4,2        ## @MLX5_ROCE_VERSION_2
	.comm	_MLX5_ROCE_L3_TYPE_IPV4,4,2     ## @MLX5_ROCE_L3_TYPE_IPV4
	.comm	_MLX5_ROCE_L3_TYPE_IPV6,4,2     ## @MLX5_ROCE_L3_TYPE_IPV6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected GID type %u\n"

	.comm	_VLAN_CFI_MASK,8,3              ## @VLAN_CFI_MASK
	.no_dead_strip	_set_roce_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_roce_addr
_set_roce_addr:                         ; @set_roce_addr
	.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
	sub	sp, sp, #16
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	w8, #65535
	stur	x8, [x29, #-80]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	cbz	x3, LBB0_4
; %bb.1:
	ldr	w24, [x4]
	sub	x1, x29, #80
	mov	x0, x4
	mov	x2, x23
	bl	_rdma_read_gid_l2_fields
	cbnz	w0, LBB0_6
; %bb.2:
	cmp	w24, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w24, #129
	b.ne	LBB0_10
LBB0_4:
	mov	w3, #0
Lloh8:
	adrp	x8, _MLX5_ROCE_VERSION_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_ROCE_VERSION_1@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
LBB0_5:
	ldr	w0, [x22]
	ldr	w4, [x21]
	ldur	x7, [x29, #-80]
Lloh11:
	adrp	x8, _VLAN_CFI_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VLAN_CFI_MASK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x7, x8
	cset	w6, lt
	str	w20, [sp, #-16]!
	mov	x1, x19
	mov	x2, x24
	mov	x5, x23
	bl	_mlx5_core_roce_gid_set
	add	sp, sp, #16
LBB0_6:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.7:
	sub	sp, x29, #64
	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
	ret
LBB0_8:
Lloh17:
	adrp	x8, _MLX5_ROCE_VERSION_2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MLX5_ROCE_VERSION_2@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
	mov	x0, x21
	bl	_ipv6_addr_v4mapped
	cbz	w0, LBB0_11
; %bb.9:
Lloh20:
	adrp	x8, _MLX5_ROCE_L3_TYPE_IPV4@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX5_ROCE_L3_TYPE_IPV4@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	b	LBB0_5
LBB0_10:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x24
	bl	_mlx5_ib_warn
	mov	w3, #0
	mov	w24, #0
	b	LBB0_5
LBB0_11:
Lloh25:
	adrp	x8, _MLX5_ROCE_L3_TYPE_IPV6@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MLX5_ROCE_L3_TYPE_IPV6@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	b	LBB0_5
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MLX5_ROCE_VERSION_1,4,2        ; @MLX5_ROCE_VERSION_1
	.comm	_MLX5_ROCE_VERSION_2,4,2        ; @MLX5_ROCE_VERSION_2
	.comm	_MLX5_ROCE_L3_TYPE_IPV4,4,2     ; @MLX5_ROCE_L3_TYPE_IPV4
	.comm	_MLX5_ROCE_L3_TYPE_IPV6,4,2     ; @MLX5_ROCE_L3_TYPE_IPV6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected GID type %u\n"

	.comm	_VLAN_CFI_MASK,8,3              ; @VLAN_CFI_MASK
	.no_dead_strip	_set_roce_addr
.subsections_via_symbols
