	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function div_modevent
_div_modevent:                          ## @div_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$128, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$130, %esi
	jne	LBB0_9
## %bb.3:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_div_protosw@GOTPCREL(%rip), %rsi
	callq	_pf_proto_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	_divert_packet@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ip_divert_ptr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_maxsockets_change@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_div_zone_change@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EVENTHANDLER_PRI_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_EVENTHANDLER_REGISTER
	movq	_ip_divert_event_tag@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_11
LBB0_6:
	movq	_V_divcbinfo@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_INP_INFO_WLOCK
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_V_divcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_WUNLOCK
	jmp	LBB0_11
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	_ip_divert_ptr@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IPPROTO_DIVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pf_proto_unregister
	movl	%eax, %ebx
	movq	_V_divcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_WUNLOCK
	xorl	%edi, %edi
	callq	_div_destroy
	movq	_maxsockets_change@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ip_divert_event_tag@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVENTHANDLER_DEREGISTER
	movl	%ebx, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_div_protosw,4,2                ## @div_protosw
	.comm	_divert_packet,8,3              ## @divert_packet
	.comm	_ip_divert_ptr,8,3              ## @ip_divert_ptr
	.comm	_maxsockets_change,4,2          ## @maxsockets_change
	.comm	_div_zone_change,4,2            ## @div_zone_change
	.comm	_EVENTHANDLER_PRI_ANY,4,2       ## @EVENTHANDLER_PRI_ANY
	.comm	_ip_divert_event_tag,4,2        ## @ip_divert_event_tag
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_V_divcbinfo,4,2                ## @V_divcbinfo
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IPPROTO_DIVERT,4,2             ## @IPPROTO_DIVERT
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_div_modevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function div_modevent
_div_modevent:                          ; @div_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
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w1, #130
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, _div_protosw@GOTPAGE
Lloh4:
	ldr	x1, [x1, _div_protosw@GOTPAGEOFF]
	bl	_pf_proto_register
	mov	x19, x0
	cbnz	w0, LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _divert_packet@GOTPAGE
Lloh6:
	ldr	x8, [x8, _divert_packet@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ip_divert_ptr@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ip_divert_ptr@GOTPAGEOFF]
Lloh10:
	str	x8, [x9]
Lloh11:
	adrp	x8, _maxsockets_change@GOTPAGE
Lloh12:
	ldr	x8, [x8, _maxsockets_change@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _div_zone_change@GOTPAGE
Lloh15:
	ldr	x8, [x8, _div_zone_change@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _EVENTHANDLER_PRI_ANY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EVENTHANDLER_PRI_ANY@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x2, #0
	bl	_EVENTHANDLER_REGISTER
Lloh20:
	adrp	x8, _ip_divert_event_tag@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ip_divert_event_tag@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
	b	LBB0_10
LBB0_5:
Lloh23:
	adrp	x19, _V_divcbinfo@GOTPAGE
Lloh24:
	ldr	x19, [x19, _V_divcbinfo@GOTPAGEOFF]
	mov	x0, x19
	bl	_INP_INFO_WLOCK
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.6:
Lloh25:
	adrp	x8, _EBUSY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
Lloh28:
	adrp	x0, _V_divcbinfo@GOTPAGE
Lloh29:
	ldr	x0, [x0, _V_divcbinfo@GOTPAGEOFF]
	bl	_INP_INFO_WUNLOCK
	b	LBB0_10
LBB0_7:
Lloh30:
	adrp	x8, _EPERM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh32:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w19, [x8]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh34:
	adrp	x8, _ip_divert_ptr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ip_divert_ptr@GOTPAGEOFF]
Lloh36:
	str	xzr, [x8]
Lloh37:
	adrp	x8, _PF_INET@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _IPPROTO_DIVERT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IPPROTO_DIVERT@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	bl	_pf_proto_unregister
	mov	x19, x0
Lloh46:
	adrp	x0, _V_divcbinfo@GOTPAGE
Lloh47:
	ldr	x0, [x0, _V_divcbinfo@GOTPAGEOFF]
	bl	_INP_INFO_WUNLOCK
	mov	x0, #0
	bl	_div_destroy
Lloh48:
	adrp	x8, _maxsockets_change@GOTPAGE
Lloh49:
	ldr	x8, [x8, _maxsockets_change@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x8, _ip_divert_event_tag@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ip_divert_event_tag@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	bl	_EVENTHANDLER_DEREGISTER
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_div_protosw,4,2                ; @div_protosw
	.comm	_divert_packet,8,3              ; @divert_packet
	.comm	_ip_divert_ptr,8,3              ; @ip_divert_ptr
	.comm	_maxsockets_change,4,2          ; @maxsockets_change
	.comm	_div_zone_change,4,2            ; @div_zone_change
	.comm	_EVENTHANDLER_PRI_ANY,4,2       ; @EVENTHANDLER_PRI_ANY
	.comm	_ip_divert_event_tag,4,2        ; @ip_divert_event_tag
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_V_divcbinfo,4,2                ; @V_divcbinfo
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IPPROTO_DIVERT,4,2             ; @IPPROTO_DIVERT
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_div_modevent
.subsections_via_symbols
