	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssid_parse                     ## -- Begin function ssid_parse
	.p2align	4, 0x90
_ssid_parse:                            ## @ssid_parse
	.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	%rsi, %r14
	movq	$0, (%rsi)
	callq	_os_strdup
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	cmpb	$34, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	incq	%rdi
	movl	$34, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	incq	%rax
	jmp	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movb	$0, (%rax)
LBB0_7:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wpa_config_parse_string
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	-32(%rbp), %rdx
	movq	_SSID_MAX_LEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	ja	LBB0_10
## %bb.9:
	movq	%rdx, (%r14)
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_os_memcpy
LBB0_10:
	movq	%r15, %rdi
	callq	_os_free
	movq	%rbx, %rdi
	callq	_os_free
	xorl	%ebx, %ebx
	cmpq	$1, (%r14)
	sbbl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	movq	%r15, %rdi
	callq	_os_free
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSID_MAX_LEN,8,3               ## @SSID_MAX_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssid_parse                     ; -- Begin function ssid_parse
	.p2align	2
_ssid_parse:                            ; @ssid_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	str	xzr, [x1]
	bl	_os_strdup
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0]
	cmp	w8, #34
	b.ne	LBB0_4
; %bb.2:
	add	x0, x20, #1
	mov	w1, #34
	bl	_os_strchr
	cbz	x0, LBB0_10
; %bb.3:
	add	x0, x0, #1
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_6
LBB0_5:
	strb	wzr, [x0]
LBB0_6:
	add	x1, sp, #8
	mov	x0, x20
	bl	_wpa_config_parse_string
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x2, [sp, #8]
Lloh0:
	adrp	x8, _SSID_MAX_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSID_MAX_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.hi	LBB0_9
; %bb.8:
	str	x2, [x19]
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_os_memcpy
LBB0_9:
	mov	x0, x20
	bl	_os_free
	mov	x0, x21
	bl	_os_free
	ldr	x8, [x19]
	cmp	x8, #0
	csetm	w0, eq
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	bl	_os_free
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SSID_MAX_LEN,8,3               ; @SSID_MAX_LEN
.subsections_via_symbols
