	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_dn_ctl
_ip_dn_ctl:                             ## @ip_dn_ctl
	.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
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	movq	_PRIV_NETINET_DUMMYNET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r14), %rax
	movq	_SOPT_SET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_securelevel_ge
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
LBB0_3:
	movl	8(%r14), %esi
	leal	-128(%rsi), %eax
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_D
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ip_dummynet_compat             ## TAILCALL
LBB0_4:
	cmpl	$132, %esi
	jne	LBB0_5
## %bb.7:
	movq	(%r14), %rax
	movq	_SOPT_GET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.16:
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dummynet_get                   ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_D
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_8:
	movl	12(%r14), %r15d
	cmpl	$4, %r15d
	jb	LBB0_10
## %bb.9:
	cmpl	$12001, %r15d                   ## imm = 0x2EE1
	jge	LBB0_10
## %bb.11:
	movq	_M_TEMP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	movl	%r15d, %ecx
	callq	_sooptcopyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_do_config
	movl	%eax, %ebx
LBB0_13:
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	callq	_D
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PRIV_NETINET_DUMMYNET,4,2      ## @PRIV_NETINET_DUMMYNET
	.comm	_SOPT_SET,8,3                   ## @SOPT_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dummynet: unknown option %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"dummynet: compat option %d"

	.comm	_SOPT_GET,8,3                   ## @SOPT_GET
L_.str.2:                               ## @.str.2
	.asciz	"argument len %d invalid"

	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.no_dead_strip	_ip_dn_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_dn_ctl
_ip_dn_ctl:                             ; @ip_dn_ctl
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _PRIV_NETINET_DUMMYNET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRIV_NETINET_DUMMYNET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_priv_check
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _SOPT_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOPT_SET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	w1, #3
	bl	_securelevel_ge
	mov	x21, x0
	cbnz	w0, LBB0_1
LBB0_4:
	ldr	w1, [x19, #8]
	sub	w8, w1, #128
	cmp	w8, #4
	b.hs	LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D
	mov	x0, x19
	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
	b	_ip_dummynet_compat
LBB0_6:
	cmp	w1, #132
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _SOPT_GET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SOPT_GET@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, #0
	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
	b	_dummynet_get
LBB0_9:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	b	LBB0_1
LBB0_10:
	ldr	w20, [x19, #12]
	cmp	w20, #4
	b.lo	LBB0_16
; %bb.11:
	mov	w8, #12001
	cmp	w20, w8
	b.ge	LBB0_16
; %bb.12:
Lloh16:
	adrp	x23, _M_TEMP@GOTPAGE
Lloh17:
	ldr	x23, [x23, _M_TEMP@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh18:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_malloc
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x20
	bl	_sooptcopyin
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.13:
	mov	x0, x22
	mov	x1, x20
	bl	_do_config
	mov	x21, x0
LBB0_14:
	cbz	x22, LBB0_1
; %bb.15:
	ldr	w1, [x23]
	mov	x0, x22
	bl	_free
	b	LBB0_1
LBB0_16:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_D
	mov	w21, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PRIV_NETINET_DUMMYNET,4,2      ; @PRIV_NETINET_DUMMYNET
	.comm	_SOPT_SET,8,3                   ; @SOPT_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dummynet: unknown option %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"dummynet: compat option %d"

	.comm	_SOPT_GET,8,3                   ; @SOPT_GET
l_.str.2:                               ; @.str.2
	.asciz	"argument len %d invalid"

	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.no_dead_strip	_ip_dn_ctl
.subsections_via_symbols
