	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_profile
_config_profile:                        ## @config_profile
	.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
	movl	16(%rdi), %esi
	cmpl	$23, %esi
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_D
	jmp	LBB0_4
LBB0_2:
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.3:
	movq	_DN_MAX_ID@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r15d
	jge	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DN_BH_WLOCK
	movl	(%r12), %eax
	addl	%eax, %eax
	cmpl	%eax, %r15d
	jl	LBB0_6
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rdi), %r13d
	movl	16(%r14), %edx
	cmpl	%edx, %r13d
	cmovlel	%edx, %r13d
	movq	%r14, %rsi
	callq	_memcpy
	movq	(%rbx), %rax
	movl	%r13d, (%rax)
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %eax
	addl	%eax, %r15d
	addl	%eax, %eax
	cmpl	%eax, %r15d
	jge	LBB0_19
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_locate_scheduler
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movq	_dn_cfg@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rdi), %eax
	cmpl	16(%r14), %eax
	jge	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_M_DUMMYNET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	$0, (%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 8(%r14)
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%rdi, %rdi
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r14), %edi
	movq	_M_DUMMYNET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_malloc
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_D
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	xorl	%eax, %eax
	callq	_DN_BH_WUNLOCK
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"short profile len %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DN_MAX_ID,4,2                  ## @DN_MAX_ID
	.comm	_dn_cfg,4,2                     ## @dn_cfg
	.comm	_M_DUMMYNET,4,2                 ## @M_DUMMYNET
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
L_.str.1:                               ## @.str.1
	.asciz	"no memory for profile %d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_config_profile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_profile
_config_profile:                        ; @config_profile
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w1, [x0, #16]
	cmp	w1, #23
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	ldr	w20, [x0]
Lloh2:
	adrp	x22, _DN_MAX_ID@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DN_MAX_ID@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w20, #1
	ccmp	w20, w8, #0, ge
	b.lt	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	b	LBB0_21
LBB0_4:
	bl	_DN_BH_WLOCK
	ldr	w8, [x22]
	cmp	w20, w8, lsl #1
	b.ge	LBB0_17
; %bb.5:
Lloh7:
	adrp	x23, _dn_cfg@GOTPAGE
Lloh8:
	ldr	x23, [x23, _dn_cfg@GOTPAGEOFF]
Lloh9:
	adrp	x24, _M_DUMMYNET@GOTPAGE
Lloh10:
	ldr	x24, [x24, _M_DUMMYNET@GOTPAGEOFF]
Lloh11:
	adrp	x25, _M_NOWAIT@GOTPAGE
Lloh12:
	ldr	x25, [x25, _M_NOWAIT@GOTPAGEOFF]
Lloh13:
	adrp	x26, _M_ZERO@GOTPAGE
Lloh14:
	ldr	x26, [x26, _M_ZERO@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x0]
	ldr	w2, [x19, #16]
	cmp	w8, w2
	csel	w27, w8, w2, gt
	mov	x1, x19
	bl	_memcpy
	ldr	x8, [x21]
	str	w27, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	add	w20, w8, w20
	cmp	w20, w8, lsl #1
	b.ge	LBB0_17
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_locate_scheduler
	cbz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x0
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	ldr	x0, [x0]
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x0]
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.ge	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x24]
	bl	_free
	mov	x0, #0
	str	xzr, [x21]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	cbnz	x0, LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #16]
	ldr	w1, [x24]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x21]
	cbnz	x0, LBB0_6
; %bb.16:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_D
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	mov	w19, #0
	b	LBB0_20
LBB0_18:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w19, [x8]
LBB0_20:
	bl	_DN_BH_WUNLOCK
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"short profile len %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DN_MAX_ID,4,2                  ; @DN_MAX_ID
	.comm	_dn_cfg,4,2                     ; @dn_cfg
	.comm	_M_DUMMYNET,4,2                 ; @M_DUMMYNET
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
l_.str.1:                               ; @.str.1
	.asciz	"no memory for profile %d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_config_profile
.subsections_via_symbols
