	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gtp_newlink
_gtp_newlink:                           ## @gtp_newlink
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	_IFLA_GTP_FD0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rcx,%rax,8)
	jne	LBB0_3
## %bb.1:
	movq	_IFLA_GTP_FD1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_gtp_encap_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_IFLA_GTP_PDP_HASHSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	callq	_nla_get_u32
	movl	%eax, %esi
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_6:
	movl	$1024, %esi                     ## imm = 0x400
LBB0_8:
	movq	%r15, %rdi
	callq	_gtp_hashtable_new
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	js	LBB0_11
## %bb.14:
	movq	%r14, %rdi
	callq	_dev_net
	movq	_gtp_net_id@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_net_generic
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_list_add_rcu
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	jmp	LBB0_13
LBB0_9:
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	%r15, %rdi
	callq	_gtp_hashtable_free
LBB0_12:
	movq	%r15, %rdi
	callq	_gtp_encap_disable
LBB0_13:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_GTP_FD0,8,3               ## @IFLA_GTP_FD0
	.comm	_IFLA_GTP_FD1,8,3               ## @IFLA_GTP_FD1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFLA_GTP_PDP_HASHSIZE,8,3      ## @IFLA_GTP_PDP_HASHSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register new netdev %d\n"

	.comm	_gtp_net_id,4,2                 ## @gtp_net_id
L_.str.1:                               ## @.str.1
	.asciz	"registered new GTP interface\n"

	.no_dead_strip	_gtp_newlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gtp_newlink
_gtp_newlink:                           ; @gtp_newlink
	.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	x22, x3
	mov	x19, x1
Lloh0:
	adrp	x8, _IFLA_GTP_FD0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_GTP_FD0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x3, x8, lsl #3]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IFLA_GTP_FD1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFLA_GTP_FD1@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x22, x8, lsl #3]
	cbz	x8, LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	mov	x1, x22
	bl	_gtp_encap_enable
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _IFLA_GTP_PDP_HASHSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFLA_GTP_PDP_HASHSIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x0, [x22, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_nla_get_u32
	mov	x1, x0
	b	LBB0_7
LBB0_5:
	mov	x21, x0
	b	LBB0_14
LBB0_6:
	mov	w1, #1024
LBB0_7:
	mov	x0, x20
	bl	_gtp_hashtable_new
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_register_netdevice
	tbnz	w0, #31, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_dev_net
Lloh9:
	adrp	x8, _gtp_net_id@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gtp_net_id@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_net_generic
	mov	x1, x0
	mov	x0, x20
	bl	_list_add_rcu
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	mov	w21, #0
	b	LBB0_14
LBB0_10:
	mov	x21, x0
	b	LBB0_13
LBB0_11:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_12:
	mov	x21, x0
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	mov	x0, x20
	bl	_gtp_hashtable_free
LBB0_13:
	mov	x0, x20
	bl	_gtp_encap_disable
LBB0_14:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_GTP_FD0,8,3               ; @IFLA_GTP_FD0
	.comm	_IFLA_GTP_FD1,8,3               ; @IFLA_GTP_FD1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFLA_GTP_PDP_HASHSIZE,8,3      ; @IFLA_GTP_PDP_HASHSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register new netdev %d\n"

	.comm	_gtp_net_id,4,2                 ; @gtp_net_id
l_.str.1:                               ; @.str.1
	.asciz	"registered new GTP interface\n"

	.no_dead_strip	_gtp_newlink
.subsections_via_symbols
