	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_config_add_prio_network    ## -- Begin function wpa_config_add_prio_network
	.p2align	4, 0x90
_wpa_config_add_prio_network:           ## @wpa_config_add_prio_network
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rdi), %esi
	movq	8(%rdi), %rdi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.1:
	movq	(%r14), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx,8), %rdx
	cmpq	%rax, (%rdx)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_3
LBB0_6:
	incl	%esi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$8, %edx
	callq	_os_realloc_array
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.10:
	movq	(%r14), %rdi
	leal	-1(%rax), %r8d
	incq	%r8
	leal	(,%rax,8), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rcx
	cmpq	%rdi, (%rcx)
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	addq	$8, %rsi
	addl	$-8, %edx
	cmpq	%rbx, %rax
	jne	LBB0_11
## %bb.14:
	movq	%r8, %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	movq	8(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_4
## %bb.5:
	movq	%r14, 8(%rax)
	jmp	LBB0_16
LBB0_7:
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	leaq	8(%rsi), %rdi
	callq	_os_memmove
	movl	(%r12), %eax
LBB0_15:
	movl	%ebx, %ecx
	movq	%r14, (%r15,%rcx,8)
	incl	%eax
	movl	%eax, (%r12)
	movq	%r15, 8(%r12)
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_config_add_prio_network    ; -- Begin function wpa_config_add_prio_network
	.p2align	2
_wpa_config_add_prio_network:           ; @wpa_config_add_prio_network
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	x0, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x19]
	mov	x10, x8
	mov	x11, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	ldr	x13, [x12]
	cmp	x13, x9
	b.eq	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_2
LBB0_4:
	add	w1, w8, #1
	mov	w2, #8
	bl	_os_realloc_array
	cbz	x0, LBB0_12
; %bb.5:
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_13
; %bb.6:
	mov	x22, #0
	ldr	x10, [x19]
	sub	w9, w8, #1
	add	x9, x9, #1
	lsl	w2, w8, #3
	mov	x1, x21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x1]
	ldr	x11, [x11]
	cmp	x11, x10
	b.lt	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	add	x1, x1, #8
	sub	w2, w2, #8
	cmp	x8, x22
	b.ne	LBB0_7
; %bb.9:
	mov	x22, x9
	b	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x8, x12
	ldr	x12, [x12, #8]
	cbnz	x12, LBB0_10
; %bb.11:
	mov	w0, #0
	str	x19, [x8, #8]
	b	LBB0_16
LBB0_12:
	mov	w0, #-1
	b	LBB0_16
LBB0_13:
	mov	x22, #0
	b	LBB0_15
LBB0_14:
	add	x0, x1, #8
	bl	_os_memmove
	ldr	w8, [x20]
LBB0_15:
	mov	w0, #0
	str	x19, [x21, w22, uxtw #3]
	add	w8, w8, #1
	str	w8, [x20]
	str	x21, [x20, #8]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
