	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_config_add_cred            ## -- Begin function wpa_config_add_cred
	.p2align	4, 0x90
_wpa_config_add_cred:                   ## @wpa_config_add_cred
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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, %r15
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	cmovgl	%eax, %ebx
	movq	8(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	incl	%ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
LBB0_5:
	movl	$24, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%ebx, (%rax)
	movq	_DEFAULT_USER_SELECTED_SIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	leaq	8(%r15), %rcx
	testq	%r15, %r15
	cmoveq	%r14, %rcx
	movq	%rax, (%rcx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_USER_SELECTED_SIM,4,2  ## @DEFAULT_USER_SELECTED_SIM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_config_add_cred            ; -- Begin function wpa_config_add_cred
	.p2align	2
_wpa_config_add_cred:                   ; @wpa_config_add_cred
	.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	x20, x9
	ldr	w9, [x9]
	cmp	w9, w8
	csel	w8, w9, w8, gt
	ldr	x9, [x20, #8]
	cbnz	x9, LBB0_2
; %bb.3:
	add	w21, w8, #1
	b	LBB0_5
LBB0_4:
	mov	w21, #0
	mov	x20, #0
LBB0_5:
	mov	w0, #24
	bl	_os_zalloc
	cbz	x0, LBB0_7
; %bb.6:
	str	w21, [x0]
Lloh0:
	adrp	x8, _DEFAULT_USER_SELECTED_SIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_USER_SELECTED_SIM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	add	x8, x20, #8
	cmp	x20, #0
	csel	x8, x19, x8, eq
	str	x0, [x8]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_USER_SELECTED_SIM,4,2  ; @DEFAULT_USER_SELECTED_SIM
.subsections_via_symbols
