	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_chr_open
_tun_chr_open:                          ## @tun_chr_open
	.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	%rsi, %r14
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DBG1
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_tun_proto@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_sk_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	64(%rax), %rdi
	movl	(%r12), %edx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_ptr_ring_init
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_sk_free
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	leaq	60(%rbx), %rdi
	callq	_mutex_init
	movl	56(%rbx), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	leaq	16(%rbx), %r12
	leaq	32(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	callq	_init_waitqueue_head
	movq	%r14, 24(%rbx)
	movq	_tun_socket_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_sock_init_data
	movq	_tun_sock_write_space@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, (%r14)
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movq	_SOCK_ZEROCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_set_flag
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tunX: tun_chr_open\n"

	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_tun_proto,4,2                  ## @tun_proto
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tun_socket_ops,4,2             ## @tun_socket_ops
	.comm	_tun_sock_write_space,4,2       ## @tun_sock_write_space
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_SOCK_ZEROCOPY,4,2              ## @SOCK_ZEROCOPY
	.no_dead_strip	_tun_chr_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_chr_open
_tun_chr_open:                          ; @tun_chr_open
	.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	x19, x1
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DBG1
Lloh8:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh13:
	adrp	x3, _tun_proto@GOTPAGE
Lloh14:
	ldr	x3, [x3, _tun_proto@GOTPAGEOFF]
	mov	x0, x20
	mov	w4, #0
	bl	_sk_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, x0, #64
	ldr	w2, [x21]
	mov	w1, #0
	bl	_ptr_ring_init
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_sk_free
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	add	x0, x20, #60
	bl	_mutex_init
	ldr	w0, [x20, #56]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	add	x0, x20, #32
	stp	xzr, xzr, [x20, #40]
	bl	_init_waitqueue_head
	str	x19, [x20, #24]
Lloh18:
	adrp	x8, _tun_socket_ops@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tun_socket_ops@GOTPAGEOFF]
	mov	x0, x20
	str	x8, [x0, #16]!
	mov	x1, x20
	bl	_sock_init_data
Lloh20:
	adrp	x8, _tun_sock_write_space@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tun_sock_write_space@GOTPAGEOFF]
Lloh22:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh23:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	str	x20, [x19]
	add	x0, x20, #8
	bl	_INIT_LIST_HEAD
Lloh26:
	adrp	x8, _SOCK_ZEROCOPY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SOCK_ZEROCOPY@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sock_set_flag
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tunX: tun_chr_open\n"

	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_tun_proto,4,2                  ; @tun_proto
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tun_socket_ops,4,2             ; @tun_socket_ops
	.comm	_tun_sock_write_space,4,2       ; @tun_sock_write_space
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_SOCK_ZEROCOPY,4,2              ; @SOCK_ZEROCOPY
	.no_dead_strip	_tun_chr_open
.subsections_via_symbols
