	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_setup_wpa_psk          ## -- Begin function hostapd_setup_wpa_psk
	.p2align	4, 0x90
_hostapd_setup_wpa_psk:                 ## @hostapd_setup_wpa_psk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_5
## %bb.1:
	cmpq	$0, 8(%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_hostapd_derive_psk
	testq	%rax, %rax
	js	LBB0_6
LBB0_4:
	movq	8(%rbx), %rax
	movl	$1, (%rax)
LBB0_5:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hostapd_config_read_wpa_psk    ## TAILCALL
LBB0_6:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using pre-configured WPA PSK instead of passphrase"

L_.str.1:                               ## @.str.1
	.asciz	"Deriving WPA PSK based on passphrase"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_setup_wpa_psk          ; -- Begin function hostapd_setup_wpa_psk
	.p2align	2
_hostapd_setup_wpa_psk:                 ; @hostapd_setup_wpa_psk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_hostapd_derive_psk
	tbnz	x0, #63, LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	mov	w9, #1
	str	w9, [x8]
LBB0_5:
	ldr	w0, [x19]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hostapd_config_read_wpa_psk
LBB0_6:
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using pre-configured WPA PSK instead of passphrase"

l_.str.1:                               ; @.str.1
	.asciz	"Deriving WPA PSK based on passphrase"

.subsections_via_symbols
