	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tuntapmodevent
_tuntapmodevent:                        ## @tuntapmodevent
	.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
	cmpl	$128, %esi
	je	LBB0_8
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_9
## %bb.2:
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_tunmtx@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	_tuntap_drivers@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_nitems
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movl	$4, %ebx
	xorl	%r12d, %r12d
	movq	_tunmtx@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r13
	leaq	(%rbx,%r13), %rdi
	callq	_clone_setup
	movq	_IF_MAXUNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movq	%r14, %rdx
	callq	_new_unrhdr
	movl	%eax, -4(%r13,%rbx)
	incq	%r12
	movq	(%r15), %rdi
	callq	_nitems
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_5:
	movq	_ifnet_arrival_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tunrename@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_EVENTHANDLER_REGISTER
	movq	_arrival_tag@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_dev_clone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tunclone@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_EVENTHANDLER_REGISTER
	movq	_clone_tag@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_12
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tunmtx,4,2                     ## @tunmtx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tunmtx"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_tuntap_drivers,8,3             ## @tuntap_drivers
	.comm	_IF_MAXUNIT,4,2                 ## @IF_MAXUNIT
	.comm	_ifnet_arrival_event,4,2        ## @ifnet_arrival_event
	.comm	_tunrename,4,2                  ## @tunrename
	.comm	_arrival_tag,8,3                ## @arrival_tag
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dev_clone,4,2                  ## @dev_clone
	.comm	_tunclone,4,2                   ## @tunclone
	.comm	_clone_tag,8,3                  ## @clone_tag
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_tuntapmodevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tuntapmodevent
_tuntapmodevent:                        ; @tuntapmodevent
	.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
	cmp	w1, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x0, _tunmtx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _tunmtx@GOTPAGEOFF]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
Lloh7:
	adrp	x20, _tuntap_drivers@GOTPAGE
Lloh8:
	ldr	x20, [x20, _tuntap_drivers@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	x22, #0
Lloh9:
	adrp	x23, _IF_MAXUNIT@GOTPAGE
Lloh10:
	ldr	x23, [x23, _IF_MAXUNIT@GOTPAGEOFF]
Lloh11:
	adrp	x19, _tunmtx@GOTPAGE
Lloh12:
	ldr	x19, [x19, _tunmtx@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x24, x8, x21
	add	x0, x24, #4
	bl	_clone_setup
	ldr	w1, [x23]
	mov	w0, #0
	mov	x2, x19
	bl	_new_unrhdr
	str	w0, [x24]
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_nitems
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
Lloh13:
	adrp	x8, _ifnet_arrival_event@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ifnet_arrival_event@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _tunrename@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tunrename@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #1000
	bl	_EVENTHANDLER_REGISTER
Lloh19:
	adrp	x8, _arrival_tag@GOTPAGE
Lloh20:
	ldr	x8, [x8, _arrival_tag@GOTPAGEOFF]
Lloh21:
	str	x0, [x8]
	cbz	x0, LBB0_9
; %bb.6:
Lloh22:
	adrp	x8, _dev_clone@GOTPAGE
Lloh23:
	ldr	x8, [x8, _dev_clone@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _tunclone@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tunclone@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #1000
	bl	_EVENTHANDLER_REGISTER
Lloh28:
	adrp	x8, _clone_tag@GOTPAGE
Lloh29:
	ldr	x8, [x8, _clone_tag@GOTPAGEOFF]
Lloh30:
	str	x0, [x8]
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_11
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh34:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_tunmtx,4,2                     ; @tunmtx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tunmtx"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_tuntap_drivers,8,3             ; @tuntap_drivers
	.comm	_IF_MAXUNIT,4,2                 ; @IF_MAXUNIT
	.comm	_ifnet_arrival_event,4,2        ; @ifnet_arrival_event
	.comm	_tunrename,4,2                  ; @tunrename
	.comm	_arrival_tag,8,3                ; @arrival_tag
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dev_clone,4,2                  ; @dev_clone
	.comm	_tunclone,4,2                   ; @tunclone
	.comm	_clone_tag,8,3                  ; @clone_tag
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_tuntapmodevent
.subsections_via_symbols
