	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_resolve_dmac
_ocrdma_resolve_dmac:                   ## @ocrdma_resolve_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rsi, %rdi
	callq	_rdma_ah_read_grh
	movl	(%rax), %esi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_rdma_is_multicast_addr
	leaq	-32(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rsi
	callq	_rdma_get_mcast_mac
	jmp	LBB0_5
LBB0_2:
	callq	_rdma_link_local_addr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	callq	_rdma_get_ll_mac
	jmp	LBB0_5
LBB0_4:
	movl	(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_memcpy
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_ocrdma_resolve_dmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_resolve_dmac
_ocrdma_resolve_dmac:                   ; @ocrdma_resolve_dmac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	mov	x0, x1
	bl	_rdma_ah_read_grh
	ldr	w1, [x0]
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	add	x0, sp, #8
	bl	_rdma_is_multicast_addr
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	x1, x19
	bl	_rdma_get_mcast_mac
	b	LBB0_5
LBB0_2:
	add	x0, sp, #8
	bl	_rdma_link_local_addr
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	x1, x19
	bl	_rdma_get_ll_mac
	b	LBB0_5
LBB0_4:
	ldr	w1, [x20]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_memcpy
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_ocrdma_resolve_dmac
.subsections_via_symbols
