	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_resolve_unicast_gid_dmac
_ib_resolve_unicast_gid_dmac:           ## @ib_resolve_unicast_gid_dmac
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_rdma_ah_retrieve_grh
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movl	$255, -36(%rbp)
	leaq	8(%rax), %r12
	movq	8(%rax), %rdi
	callq	_rdma_link_local_addr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	_IB_GID_TYPE_ROCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	(%r12), %rdi
	movl	(%r14), %esi
	callq	_rdma_get_ll_mac
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	leaq	8(%r15), %rdi
	movl	(%r14), %edx
	leaq	-36(%rbp), %r8
	movq	%r12, %rsi
	movq	%r15, %rcx
	callq	_rdma_addr_find_l2_eth_by_grh
	movl	-36(%rbp), %ecx
	movl	%ecx, (%rbx)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_GID_TYPE_ROCE,8,3           ## @IB_GID_TYPE_ROCE
	.no_dead_strip	_ib_resolve_unicast_gid_dmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_resolve_unicast_gid_dmac
_ib_resolve_unicast_gid_dmac:           ; @ib_resolve_unicast_gid_dmac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x0, x1
	bl	_rdma_ah_retrieve_grh
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	w8, #255
	str	w8, [sp, #12]
	mov	x22, x0
	ldr	x0, [x22, #8]!
	bl	_rdma_link_local_addr
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _IB_GID_TYPE_ROCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_GID_TYPE_ROCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x22]
	ldr	w1, [x21]
	bl	_rdma_get_ll_mac
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	add	x0, x20, #8
	ldr	w2, [x21]
	add	x4, sp, #12
	mov	x1, x22
	mov	x3, x20
	bl	_rdma_addr_find_l2_eth_by_grh
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_GID_TYPE_ROCE,8,3           ; @IB_GID_TYPE_ROCE
	.no_dead_strip	_ib_resolve_unicast_gid_dmac
.subsections_via_symbols
