	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dummynet_modevent
_dummynet_modevent:                     ## @dummynet_modevent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MOD_LOAD@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_ip_dn_io_ptr@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_MOD_UNLOAD@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	$1, %edi
	callq	_ip_dn_destroy
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ip_dn_init
	movq	_ip_dn_ctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ip_dn_ctl_ptr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_dummynet_io@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOD_LOAD,4,2                   ## @MOD_LOAD
	.comm	_ip_dn_io_ptr,8,3               ## @ip_dn_io_ptr
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_ip_dn_ctl,4,2                  ## @ip_dn_ctl
	.comm	_ip_dn_ctl_ptr,4,2              ## @ip_dn_ctl_ptr
	.comm	_dummynet_io,8,3                ## @dummynet_io
	.comm	_MOD_UNLOAD,4,2                 ## @MOD_UNLOAD
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"DUMMYNET already loaded"

	.no_dead_strip	_dummynet_modevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dummynet_modevent
_dummynet_modevent:                     ; @dummynet_modevent
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MOD_LOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MOD_LOAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x19, _ip_dn_io_ptr@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ip_dn_io_ptr@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.2:
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh7:
	adrp	x8, _EEXIST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _MOD_UNLOAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MOD_UNLOAD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #1
	bl	_ip_dn_destroy
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	bl	_ip_dn_init
	mov	w0, #0
Lloh14:
	adrp	x8, _ip_dn_ctl@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ip_dn_ctl@GOTPAGEOFF]
Lloh16:
	adrp	x9, _ip_dn_ctl_ptr@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ip_dn_ctl_ptr@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	str	w8, [x9]
Lloh20:
	adrp	x8, _dummynet_io@GOTPAGE
Lloh21:
	ldr	x8, [x8, _dummynet_io@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MOD_LOAD,4,2                   ; @MOD_LOAD
	.comm	_ip_dn_io_ptr,8,3               ; @ip_dn_io_ptr
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_ip_dn_ctl,4,2                  ; @ip_dn_ctl
	.comm	_ip_dn_ctl_ptr,4,2              ; @ip_dn_ctl_ptr
	.comm	_dummynet_io,8,3                ; @dummynet_io
	.comm	_MOD_UNLOAD,4,2                 ; @MOD_UNLOAD
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"DUMMYNET already loaded"

	.no_dead_strip	_dummynet_modevent
.subsections_via_symbols
