	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_config_add_network         ## -- Begin function wpa_config_add_network
	.p2align	4, 0x90
_wpa_config_add_network:                ## @wpa_config_add_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	%rdi, %r14
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	cmovgl	%eax, %ebx
	movq	8(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	incl	%ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
LBB0_5:
	movl	$24, %edi
	callq	_os_zalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%ebx, (%r15)
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_dl_list_init
	leaq	8(%r12), %rax
	testq	%r12, %r12
	cmoveq	%r14, %rax
	movq	%r15, (%rax)
	movq	%r14, %rdi
	callq	_wpa_config_update_prio_list
LBB0_7:
	movq	%r15, %rax
	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_network         ; -- Begin function wpa_config_add_network
	.p2align	2
_wpa_config_add_network:                ; @wpa_config_add_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, x0
	ldr	x9, [x0]
	cbz	x9, LBB0_4
; %bb.1:
	mov	w8, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x9
	ldr	w9, [x9]
	cmp	w9, w8
	csel	w8, w9, w8, gt
	ldr	x9, [x21, #8]
	cbnz	x9, LBB0_2
; %bb.3:
	add	w22, w8, #1
	b	LBB0_5
LBB0_4:
	mov	w22, #0
	mov	x21, #0
LBB0_5:
	mov	w0, #24
	bl	_os_zalloc
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.6:
	str	w22, [x20]
	add	x0, x20, #16
	bl	_dl_list_init
	add	x8, x21, #8
	cmp	x21, #0
	csel	x8, x19, x8, eq
	str	x20, [x8]
	mov	x0, x19
	bl	_wpa_config_update_prio_list
LBB0_7:
	mov	x0, x20
	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
