	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gtp_encap_enable_socket
_gtp_encap_enable_socket:               ## @gtp_encap_enable_socket
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	-44(%rbp), %rsi
	movl	%ebx, %edi
	callq	_sockfd_lookup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	callq	_lock_sock
	movq	(%r13), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %edi
LBB0_6:
	callq	_ERR_PTR
	movq	%rax, %r14
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_sock_hold
	movq	%r12, -64(%rbp)
	movl	%r15d, -80(%rbp)
	movq	_gtp_encap_recv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_gtp_encap_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	(%r13), %rdi
	callq	_sock_net
	leaq	-80(%rbp), %rdx
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_setup_udp_tunnel_sock
LBB0_8:
	movq	(%r13), %rdi
	callq	_release_sock
	movq	%r13, %rdi
	callq	_sockfd_put
LBB0_9:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable gtp on %d, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"gtp socket fd=%d not found\n"

	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
L_.str.2:                               ## @.str.2
	.asciz	"socket fd=%d not UDP\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_gtp_encap_recv,4,2             ## @gtp_encap_recv
	.comm	_gtp_encap_destroy,4,2          ## @gtp_encap_destroy
	.no_dead_strip	_gtp_encap_enable_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gtp_encap_enable_socket
_gtp_encap_enable_socket:               ; @gtp_encap_enable_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	add	x1, sp, #12
	mov	x0, x20
	bl	_sockfd_lookup
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0]
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	bl	_lock_sock
	ldr	x20, [x19]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	mov	x20, #0
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x20, x0
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_sock_hold
	str	x22, [sp, #32]
Lloh13:
	adrp	x8, _gtp_encap_recv@GOTPAGE
Lloh14:
	ldr	x8, [x8, _gtp_encap_recv@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh16:
	adrp	x8, _gtp_encap_destroy@GOTPAGE
Lloh17:
	ldr	x8, [x8, _gtp_encap_destroy@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	w21, w8, [sp, #16]
	ldr	x0, [x19]
	bl	_sock_net
	add	x2, sp, #16
	mov	x1, x19
	bl	_setup_udp_tunnel_sock
LBB0_8:
	ldr	x0, [x19]
	bl	_release_sock
	mov	x0, x19
	bl	_sockfd_put
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable gtp on %d, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"gtp socket fd=%d not found\n"

	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
l_.str.2:                               ; @.str.2
	.asciz	"socket fd=%d not UDP\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_gtp_encap_recv,4,2             ; @gtp_encap_recv
	.comm	_gtp_encap_destroy,4,2          ; @gtp_encap_destroy
	.no_dead_strip	_gtp_encap_enable_socket
.subsections_via_symbols
