	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_config_read_blob
_wpa_config_read_blob:                  ## @wpa_config_read_blob
	.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
	subq	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-304(%rbp), %rdi
	leaq	-312(%rbp), %r8
	movl	$256, %esi                      ## imm = 0x100
	movq	%r12, -336(%rbp)                ## 8-byte Spill
	movq	%r12, %rdx
	movq	%r14, -320(%rbp)                ## 8-byte Spill
	movq	%r14, %rcx
	callq	_wpa_config_get_line
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%r15, -328(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-312(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-312(%rbp), %rdi
	callq	_os_strlen
	movq	%rax, %r12
	leaq	(%rax,%r14), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_os_realloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	addq	%rax, %r14
	movq	-312(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_os_memcpy
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	-336(%rbp), %rdx                ## 8-byte Reload
	movq	-320(%rbp), %rcx                ## 8-byte Reload
	leaq	-312(%rbp), %r8
	callq	_wpa_config_get_line
	movq	%r15, %r14
	movq	%rbx, %r13
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_12
LBB0_5:
	testq	%r13, %r13
	je	LBB0_11
## %bb.6:
	movl	$24, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %r15
	movq	-328(%rbp), %rdi                ## 8-byte Reload
	callq	_os_strdup
	movq	%rax, 8(%r15)
	movq	%r15, %rdx
	addq	$16, %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_base64_decode
	movq	%rax, (%r15)
	movq	%r13, %rdi
	callq	_os_free
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.8:
	cmpq	$0, (%r15)
	jne	LBB0_14
LBB0_9:
	movq	%r15, %rdi
	callq	_wpa_config_free_blob
	jmp	LBB0_17
LBB0_10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-320(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r13, %rdi
	jmp	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-320(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
LBB0_13:
	callq	_os_free
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.15:
	movq	%r15, %rax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r13, %rdi
	callq	_os_free
LBB0_17:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Line: %d - start of a new named blob '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"}"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Line %d: not enough memory for blob"

L_.str.3:                               ## @.str.3
	.asciz	"Line %d: blob was not terminated properly"

	.no_dead_strip	_wpa_config_read_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_config_read_blob
_wpa_config_read_blob:                  ; @wpa_config_read_blob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x1]
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	x0, sp, #24
	add	x4, sp, #16
	mov	w1, #256
	mov	x2, x21
	mov	x3, x19
	bl	_wpa_config_get_line
	cbz	x0, LBB0_10
; %bb.1:
	mov	x23, #0
	mov	x22, #0
Lloh8:
	adrp	x24, l_.str.1@PAGE
Lloh9:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x24
	bl	_os_strcmp
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #16]
	bl	_os_strlen
	mov	x27, x0
	add	x26, x0, x23
	mov	x0, x22
	mov	x1, x26
	bl	_os_realloc
	cbz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	add	x0, x0, x23
	ldr	x1, [sp, #16]
	mov	x2, x27
	bl	_os_memcpy
	add	x0, sp, #24
	add	x4, sp, #16
	mov	w1, #256
	mov	x2, x21
	mov	x3, x19
	bl	_wpa_config_get_line
	mov	x23, x26
	mov	x22, x25
	cbnz	x0, LBB0_2
	b	LBB0_11
LBB0_5:
	cbz	x22, LBB0_10
; %bb.6:
	mov	w0, #24
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_17
; %bb.7:
	mov	x0, x20
	bl	_os_strdup
	str	x0, [x19, #8]
	add	x2, x19, #16
	mov	x0, x22
	mov	x1, x23
	bl	_base64_decode
	str	x0, [x19]
	mov	x0, x22
	bl	_os_free
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19]
	cbnz	x8, LBB0_15
LBB0_9:
	mov	x0, x19
	bl	_wpa_config_free_blob
	b	LBB0_14
LBB0_10:
	mov	x25, #0
LBB0_11:
Lloh10:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	x0, x25
	b	LBB0_13
LBB0_12:
Lloh15:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x22
LBB0_13:
	bl	_os_free
LBB0_14:
	mov	x19, #0
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x19
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_17:
	mov	x0, x22
	bl	_os_free
	b	LBB0_15
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Line: %d - start of a new named blob '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"}"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Line %d: not enough memory for blob"

l_.str.3:                               ; @.str.3
	.asciz	"Line %d: blob was not terminated properly"

	.no_dead_strip	_wpa_config_read_blob
.subsections_via_symbols
