	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_init_ext_pw               ## -- Begin function wpas_init_ext_pw
	.p2align	4, 0x90
_wpas_init_ext_pw:                      ## @wpas_init_ext_pw
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_ext_password_deinit
	movq	$0, (%rbx)
	movl	8(%rbx), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_eapol_sm_set_ext_pw_ctx
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.1:
	callq	_os_strdup
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	jmp	LBB0_5
LBB0_3:
	xorl	%r12d, %r12d
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ext_password_init
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_os_free
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movl	8(%rbx), %edi
	callq	_eapol_sm_set_ext_pw_ctx
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EXT PW: Initialize backend '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"EXT PW: Failed to initialize backend"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_init_ext_pw               ; -- Begin function wpas_init_ext_pw
	.p2align	2
_wpas_init_ext_pw:                      ; @wpas_init_ext_pw
	.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, x0
	ldr	x0, [x0]
	bl	_ext_password_deinit
	str	xzr, [x19]
	ldr	w0, [x19, #8]
	mov	x1, #0
	bl	_eapol_sm_set_ext_pw_ctx
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	cbz	w0, LBB0_8
; %bb.1:
	bl	_os_strdup
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	mov	w1, #58
	bl	_os_strchr
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.3:
	strb	wzr, [x21], #1
LBB0_4:
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x20
	mov	x1, x21
	bl	_ext_password_init
	str	x0, [x19]
	mov	x0, x20
	bl	_os_free
	ldr	x1, [x19]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_eapol_sm_set_ext_pw_ctx
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EXT PW: Initialize backend '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"EXT PW: Failed to initialize backend"

.subsections_via_symbols
