	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gtp_encap_enable
_gtp_encap_enable:                      ## @gtp_encap_enable
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	_GTP_ROLE_GGSN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IFLA_GTP_FD0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.11:
	callq	_nla_get_u32
	movq	_UDP_ENCAP_GTP0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_gtp_encap_enable_socket
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.12:
	movq	%r12, %rdi
	jmp	LBB0_13
LBB0_1:
	xorl	%r12d, %r12d
LBB0_2:
	movq	_IFLA_GTP_FD1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.14:
	callq	_nla_get_u32
	movq	_UDP_ENCAP_GTP1U@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_gtp_encap_enable_socket
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.15:
	testq	%r12, %r12
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	callq	_gtp_encap_disable_sock
LBB0_17:
	movq	%r13, %rdi
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	xorl	%r13d, %r13d
LBB0_4:
	movq	_IFLA_GTP_ROLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.5:
	callq	_nla_get_u32
	movq	%rax, %r14
	movq	_GTP_ROLE_SGSN@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jae	LBB0_18
## %bb.6:
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_gtp_encap_disable_sock
LBB0_8:
	testq	%r13, %r13
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_gtp_encap_disable_sock
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_18:
	movq	%r12, 16(%r15)
	movq	%r13, 8(%r15)
	movl	%r14d, (%r15)
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GTP_ROLE_GGSN,4,2              ## @GTP_ROLE_GGSN
	.comm	_IFLA_GTP_FD0,8,3               ## @IFLA_GTP_FD0
	.comm	_UDP_ENCAP_GTP0,4,2             ## @UDP_ENCAP_GTP0
	.comm	_IFLA_GTP_FD1,8,3               ## @IFLA_GTP_FD1
	.comm	_UDP_ENCAP_GTP1U,4,2            ## @UDP_ENCAP_GTP1U
	.comm	_IFLA_GTP_ROLE,8,3              ## @IFLA_GTP_ROLE
	.comm	_GTP_ROLE_SGSN,4,2              ## @GTP_ROLE_SGSN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gtp_encap_enable
.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
_gtp_encap_enable:                      ; @gtp_encap_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GTP_ROLE_GGSN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GTP_ROLE_GGSN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _IFLA_GTP_FD0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFLA_GTP_FD0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x0, [x1, x8, lsl #3]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_nla_get_u32
Lloh6:
	adrp	x8, _UDP_ENCAP_GTP0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UDP_ENCAP_GTP0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_gtp_encap_enable_socket
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	b	LBB0_9
LBB0_3:
	mov	x21, #0
LBB0_4:
Lloh9:
	adrp	x8, _IFLA_GTP_FD1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFLA_GTP_FD1@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x0, [x22, x8, lsl #3]
	cbz	x0, LBB0_10
; %bb.5:
	bl	_nla_get_u32
Lloh12:
	adrp	x8, _UDP_ENCAP_GTP1U@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UDP_ENCAP_GTP1U@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_gtp_encap_enable_socket
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.6:
	cbz	x21, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_gtp_encap_disable_sock
LBB0_8:
	mov	x0, x23
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_10:
	mov	x23, #0
LBB0_11:
Lloh15:
	adrp	x8, _IFLA_GTP_ROLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IFLA_GTP_ROLE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x0, [x22, x8, lsl #3]
	cbz	x0, LBB0_18
; %bb.12:
	bl	_nla_get_u32
	mov	x20, x0
Lloh18:
	adrp	x8, _GTP_ROLE_SGSN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GTP_ROLE_SGSN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w20
	b.hs	LBB0_18
; %bb.13:
	cbz	x21, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_gtp_encap_disable_sock
LBB0_15:
	cbz	x23, LBB0_17
; %bb.16:
	mov	x0, x23
	bl	_gtp_encap_disable_sock
LBB0_17:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_18:
	mov	w0, #0
	stp	x23, x21, [x19, #8]
	str	w20, [x19]
LBB0_19:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GTP_ROLE_GGSN,4,2              ; @GTP_ROLE_GGSN
	.comm	_IFLA_GTP_FD0,8,3               ; @IFLA_GTP_FD0
	.comm	_UDP_ENCAP_GTP0,4,2             ; @UDP_ENCAP_GTP0
	.comm	_IFLA_GTP_FD1,8,3               ; @IFLA_GTP_FD1
	.comm	_UDP_ENCAP_GTP1U,4,2            ; @UDP_ENCAP_GTP1U
	.comm	_IFLA_GTP_ROLE,8,3              ; @IFLA_GTP_ROLE
	.comm	_GTP_ROLE_SGSN,4,2              ; @GTP_ROLE_SGSN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gtp_encap_enable
.subsections_via_symbols
