	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_resolve_eth_dmac            ## -- Begin function ib_resolve_eth_dmac
	.p2align	4, 0x90
_ib_resolve_eth_dmac:                   ## @ib_resolve_eth_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rsi), %rbx
	callq	_rdma_start_port
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.1:
	movq	(%r14), %rbx
	movq	%r13, %rdi
	callq	_rdma_end_port
	cmpq	%rax, %rbx
	jle	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_rdma_cap_eth_ah
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	leaq	16(%r14), %r12
	movq	16(%r14), %rdi
	callq	_rdma_is_multicast_addr
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	(%r12), %rdi
	callq	_ipv6_addr_v4mapped
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	$0, -48(%rbp)
	movq	16(%r14), %rsi
	addq	$12, %rsi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-48(%rbp), %edi
	movq	32(%r14), %rsi
	callq	_ip_eth_mc_map
	jmp	LBB0_13
LBB0_9:
	movq	(%r14), %rsi
	movl	24(%r14), %edx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	callq	_ib_query_gid
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movl	-48(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.12:
	movq	32(%r14), %rdx
	leaq	-56(%rbp), %rdi
	leaq	-60(%rbp), %r8
	movq	%r12, %rsi
	callq	_rdma_addr_find_l2_eth_by_grh
	movl	%eax, %r15d
	movl	-48(%rbp), %edi
	callq	_dev_put
	movl	-60(%rbp), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_13
LBB0_8:
	movq	16(%r14), %rdi
	movq	32(%r14), %rsi
	callq	_ipv6_eth_mc_map
	jmp	LBB0_13
LBB0_11:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_resolve_eth_dmac            ; -- Begin function ib_resolve_eth_dmac
	.p2align	2
_ib_resolve_eth_dmac:                   ; @ib_resolve_eth_dmac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1]
	bl	_rdma_start_port
	cmp	x21, x0
	b.lt	LBB0_2
; %bb.1:
	ldr	x21, [x19]
	mov	x0, x20
	bl	_rdma_end_port
	cmp	x21, x0
	b.le	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_rdma_cap_eth_ah
	cbz	w0, LBB0_9
; %bb.6:
	mov	x21, x19
	ldr	x0, [x21, #16]!
	bl	_rdma_is_multicast_addr
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x0, [x21]
	bl	_ipv6_addr_v4mapped
	cbz	x0, LBB0_13
; %bb.8:
	str	wzr, [sp, #24]
	ldr	x8, [x19, #16]
	add	x1, x8, #12
	add	x0, sp, #24
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #24]
	ldr	x1, [x19, #32]
	bl	_ip_eth_mc_map
LBB0_9:
	mov	w20, #0
	b	LBB0_4
LBB0_10:
	ldr	x1, [x19]
	ldr	w2, [x19, #24]
	add	x3, sp, #16
	add	x4, sp, #24
	mov	x0, x20
	bl	_ib_query_gid
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.11:
	ldr	w3, [sp, #24]
	cbz	w3, LBB0_14
; %bb.12:
	ldr	x2, [x19, #32]
	add	x0, sp, #16
	add	x4, sp, #12
	mov	x1, x21
	bl	_rdma_addr_find_l2_eth_by_grh
	mov	x20, x0
	ldr	w0, [sp, #24]
	bl	_dev_put
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	b	LBB0_4
LBB0_13:
	ldr	x0, [x19, #16]
	ldr	x1, [x19, #32]
	bl	_ipv6_eth_mc_map
	mov	w20, #0
	b	LBB0_4
LBB0_14:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
