	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxe_match_dgid
_rxe_match_dgid:                        ## @rxe_match_dgid
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rbx, %rdi
	cmpq	%rax, %r15
	jne	LBB0_2
## %bb.1:
	callq	_ip_hdr
	movl	(%rax), %edi
	leaq	-32(%rbp), %r15
	movq	%r15, %rsi
	callq	_ipv6_addr_set_v4mapped
	jmp	LBB0_3
LBB0_2:
	callq	_ipv6_hdr
	movq	%rax, %r15
LBB0_3:
	movq	_IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rbx), %r8d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_rdma_find_gid_by_port
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	callq	_PTR_ERR
	jmp	LBB0_6
LBB0_5:
	callq	_rdma_put_gid_attr
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IB_GID_TYPE_ROCE_UDP_ENCAP,4,2 ## @IB_GID_TYPE_ROCE_UDP_ENCAP
	.no_dead_strip	_rxe_match_dgid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxe_match_dgid
_rxe_match_dgid:                        ; @rxe_match_dgid
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ip_hdr
	ldr	w0, [x0]
	add	x21, sp, #8
	add	x1, sp, #8
	bl	_ipv6_addr_set_v4mapped
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_ipv6_hdr
	mov	x21, x0
LBB0_3:
Lloh3:
	adrp	x8, _IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w4, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_rdma_find_gid_by_port
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_PTR_ERR
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_rdma_put_gid_attr
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IB_GID_TYPE_ROCE_UDP_ENCAP,4,2 ; @IB_GID_TYPE_ROCE_UDP_ENCAP
	.no_dead_strip	_rxe_match_dgid
.subsections_via_symbols
