	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_pmk
_wlc_pmk:                               ## @wlc_pmk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PARAM_MODE@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	_SET@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	(%rcx), %edi
	jne	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	movq	_WSEC_MAX_PSK_LEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	%rbx, %rsi
	callq	_strncpy
	movq	%rbx, %rdi
	callq	_strlen
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, -32(%rbp)
	movq	_WSEC_PASSPHRASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_interface@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WLC_SET_WSEC_PMK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	$16, %ecx
	callq	_wl_ioctl
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARAM_MODE,4,2                 ## @PARAM_MODE
	.comm	_SET,4,2                        ## @SET
	.comm	_WSEC_MAX_PSK_LEN,8,3           ## @WSEC_MAX_PSK_LEN
	.comm	_WSEC_PASSPHRASE,4,2            ## @WSEC_PASSPHRASE
	.comm	_interface,4,2                  ## @interface
	.comm	_WLC_SET_WSEC_PMK,4,2           ## @WLC_SET_WSEC_PMK
	.no_dead_strip	_wlc_pmk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_pmk
_wlc_pmk:                               ; @wlc_pmk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _PARAM_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARAM_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x2
Lloh6:
	adrp	x20, _WSEC_MAX_PSK_LEN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _WSEC_MAX_PSK_LEN@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	x1, x19
	bl	_strncpy
	mov	x0, x19
	bl	_strlen
	ldr	x8, [x20]
	cmp	x0, x8
	csel	x8, x0, x8, lt
	str	x8, [sp]
Lloh8:
	adrp	x8, _WSEC_PASSPHRASE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WSEC_PASSPHRASE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh11:
	adrp	x8, _interface@GOTPAGE
Lloh12:
	ldr	x8, [x8, _interface@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _WLC_SET_WSEC_PMK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WLC_SET_WSEC_PMK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #16
	bl	_wl_ioctl
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PARAM_MODE,4,2                 ; @PARAM_MODE
	.comm	_SET,4,2                        ; @SET
	.comm	_WSEC_MAX_PSK_LEN,8,3           ; @WSEC_MAX_PSK_LEN
	.comm	_WSEC_PASSPHRASE,4,2            ; @WSEC_PASSPHRASE
	.comm	_interface,4,2                  ; @interface
	.comm	_WLC_SET_WSEC_PMK,4,2           ; @WLC_SET_WSEC_PMK
	.no_dead_strip	_wlc_pmk
.subsections_via_symbols
