	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_prepare                    ## -- Begin function rxe_prepare
	.p2align	4, 0x90
_rxe_prepare:                           ## @rxe_prepare
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %r12
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r12
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_prepare4
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %r13
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	xorl	%r12d, %r12d
	cmpq	%rax, %r13
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_prepare6
LBB0_4:
	movl	%eax, %r12d
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rxe_icrc_hdr
	movl	%eax, (%r15)
	movq	8(%rbx), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_rxe_get_av
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_RXE_LOOPBACK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_RXE_LOOPBACK_MASK,4,2          ## @RXE_LOOPBACK_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_prepare                    ; -- Begin function rxe_prepare
	.p2align	2
_rxe_prepare:                           ; @rxe_prepare
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x1]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_prepare4
	b	LBB0_4
LBB0_2:
	ldr	x22, [x20]
Lloh3:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_prepare6
LBB0_4:
	mov	x22, x0
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_rxe_icrc_hdr
	str	w0, [x21]
	ldr	x8, [x20, #8]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_rxe_get_av
	ldr	w1, [x0]
	mov	x0, x20
	bl	_ether_addr_equal
	cbz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _RXE_LOOPBACK_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXE_LOOPBACK_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_RXE_LOOPBACK_MASK,4,2          ; @RXE_LOOPBACK_MASK
.subsections_via_symbols
