	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_addr_find_l2_eth_by_grh   ## -- Begin function rdma_addr_find_l2_eth_by_grh
	.p2align	4, 0x90
_rdma_addr_find_l2_eth_by_grh:          ## @rdma_addr_find_l2_eth_by_grh
	.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	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rsi
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	callq	_rdma_gid2ip
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_rdma_gid2ip
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	%rbx, %rdi
	callq	_dev_net
	movl	%eax, -48(%rbp)
	movq	%r15, -96(%rbp)
	leaq	-100(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_completion
	movq	_resolve_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-104(%rbp), %rax
	movq	%rax, (%rsp)
	movq	_self@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_rdma_resolve_ip
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_wait_for_completion
	movl	-104(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-52(%rbp), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	xorl	%eax, %eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	-56(%rbp), %ecx
	movl	%ecx, (%rdx)
LBB0_4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_self,4,2                       ## @self
	.comm	_resolve_cb,4,2                 ## @resolve_cb
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_addr_find_l2_eth_by_grh   ; -- Begin function rdma_addr_find_l2_eth_by_grh
	.p2align	2
_rdma_addr_find_l2_eth_by_grh:          ; @rdma_addr_find_l2_eth_by_grh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x1, x0
	add	x0, sp, #8
	bl	_rdma_gid2ip
	mov	x0, sp
	mov	x1, x22
	bl	_rdma_gid2ip
	add	x22, sp, #32
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w8, [x21]
	str	w8, [sp, #44]
	mov	x0, x21
	bl	_dev_net
	str	w0, [sp, #40]
	str	x22, [sp, #24]
	add	x8, sp, #16
	orr	x21, x8, #0x4
	mov	x0, x21
	bl	_init_completion
Lloh0:
	adrp	x8, _resolve_cb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _resolve_cb@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x0, _self@GOTPAGE
Lloh4:
	ldr	x0, [x0, _self@GOTPAGEOFF]
	add	x1, sp, #8
	mov	x2, sp
	add	x3, sp, #32
	add	x6, sp, #16
	mov	w4, #1000
	bl	_rdma_resolve_ip
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_wait_for_completion
	ldr	w0, [sp, #16]
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w1, [sp, #36]
Lloh5:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_memcpy
	mov	w0, #0
	cbz	x19, LBB0_4
; %bb.3:
	ldr	w8, [sp, #32]
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_self,4,2                       ; @self
	.comm	_resolve_cb,4,2                 ; @resolve_cb
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
