	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxe_setup_udp_tunnel
_rxe_setup_udp_tunnel:                  ## @rxe_setup_udp_tunnel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$0, -32(%rbp)
	movq	$1, -40(%rbp)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, -32(%rbp)
	jmp	LBB0_3
LBB0_2:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movl	%eax, -24(%rbp)
	movl	%esi, -28(%rbp)
	leaq	-32(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_udp_sock_create
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_rxe_udp_encap_recv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_setup_udp_tunnel_sock
	movq	-48(%rbp), %rax
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	%ebx, %edi
	callq	_ERR_PTR
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_AF_INET,4,2                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create udp socket. err = %d\n"

	.comm	_rxe_udp_encap_recv,4,2         ## @rxe_udp_encap_recv
	.no_dead_strip	_rxe_setup_udp_tunnel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxe_setup_udp_tunnel
_rxe_setup_udp_tunnel:                  ; @rxe_setup_udp_tunnel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	str	wzr, [sp, #8]
	mov	w9, #1
	str	x9, [sp]
	cbz	w2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w9, [sp, #8]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_3:
	stp	w1, w8, [sp, #12]
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x19
	bl	_udp_sock_create
	tbnz	w0, #31, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _rxe_udp_encap_recv@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rxe_udp_encap_recv@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	ldr	x1, [sp, #24]
	mov	x2, sp
	mov	x0, x19
	bl	_setup_udp_tunnel_sock
	ldr	x0, [sp, #24]
	b	LBB0_6
LBB0_5:
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	mov	x0, x20
	bl	_ERR_PTR
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_AF_INET,4,2                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create udp socket. err = %d\n"

	.comm	_rxe_udp_encap_recv,4,2         ; @rxe_udp_encap_recv
	.no_dead_strip	_rxe_setup_udp_tunnel
.subsections_via_symbols
