	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_set_wpa_none_key ## -- Begin function wpa_supplicant_set_wpa_none_key
	.p2align	4, 0x90
_wpa_supplicant_set_wpa_none_key:       ## @wpa_supplicant_set_wpa_none_key
	.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
	subq	$168, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -192(%rbp)
	movq	$0, -176(%rbp)
	movq	(%rsi), %rcx
	movq	_WPAS_MODE_IBSS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 12(%rsi)
	je	LBB0_7
## %bb.2:
	movl	(%r14), %ecx
	cmpl	$128, %ecx
	je	LBB0_8
## %bb.3:
	cmpl	$129, %ecx
	je	LBB0_9
## %bb.4:
	cmpl	$130, %ecx
	jne	LBB0_12
## %bb.5:
	movl	8(%rbx), %esi
	leaq	-160(%rbp), %rdi
	movl	$16, %edx
	callq	_os_memcpy
	movq	_WPA_ALG_CCMP@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_13
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_13
LBB0_8:
	movl	8(%rbx), %esi
	leaq	-160(%rbp), %rdi
	movl	$24, %edx
	callq	_os_memcpy
	leaq	-64(%rbp), %rdi
	movl	8(%rbx), %esi
	addl	$16, %esi
	movl	$8, %edx
	callq	_os_memcpy
	movq	_WPA_ALG_TKIP@GOTPCREL(%rip), %rcx
	movl	$32, %eax
	jmp	LBB0_11
LBB0_9:
	movl	8(%rbx), %esi
	leaq	-160(%rbp), %rdi
	movl	$16, %edx
	callq	_os_memcpy
	movq	_WPA_ALG_GCMP@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	$16, %eax
LBB0_11:
	movl	(%rcx), %esi
	subq	$8, %rsp
	leaq	-160(%rbp), %r15
	leaq	-192(%rbp), %r9
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	pushq	%rax
	pushq	%r15
	pushq	$6
	callq	_wpa_drv_set_key
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_os_memset
	jmp	LBB0_14
LBB0_12:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
LBB0_13:
	movl	$-1, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WPAS_MODE_IBSS,8,3             ## @WPAS_MODE_IBSS
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA: Invalid mode %d (not IBSS/ad-hoc) for WPA-None"

L_.str.1:                               ## @.str.1
	.asciz	"WPA: No PSK configured for WPA-None"

	.comm	_WPA_ALG_CCMP,4,2               ## @WPA_ALG_CCMP
	.comm	_WPA_ALG_GCMP,4,2               ## @WPA_ALG_GCMP
	.comm	_WPA_ALG_TKIP,4,2               ## @WPA_ALG_TKIP
L_.str.2:                               ## @.str.2
	.asciz	"WPA: Invalid group cipher %d for WPA-None"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_set_wpa_none_key ; -- Begin function wpa_supplicant_set_wpa_none_key
	.p2align	2
_wpa_supplicant_set_wpa_none_key:       ; @wpa_supplicant_set_wpa_none_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _WPAS_MODE_IBSS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPAS_MODE_IBSS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #12]
	cbz	w8, LBB0_7
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.4:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.5:
	ldr	w1, [x20, #8]
	mov	w20, #16
	add	x0, sp, #40
	mov	w2, #16
	bl	_os_memcpy
Lloh6:
	adrp	x8, _WPA_ALG_CCMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WPA_ALG_CCMP@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_12
LBB0_7:
Lloh13:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_8:
	ldr	w1, [x20, #8]
	add	x21, sp, #40
	add	x0, sp, #40
	mov	w2, #24
	bl	_os_memcpy
	add	x0, x21, #96
	ldr	w8, [x20, #8]
	add	w1, w8, #16
	mov	w2, #8
	bl	_os_memcpy
Lloh18:
	adrp	x8, _WPA_ALG_TKIP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WPA_ALG_TKIP@GOTPAGEOFF]
	mov	w20, #32
	b	LBB0_10
LBB0_9:
	ldr	w1, [x20, #8]
	mov	w20, #16
	add	x0, sp, #40
	mov	w2, #16
	bl	_os_memcpy
Lloh20:
	adrp	x8, _WPA_ALG_GCMP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WPA_ALG_GCMP@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	str	x20, [sp]
	add	x5, sp, #16
	add	x7, sp, #40
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	w4, #1
	mov	w6, #6
	bl	_wpa_drv_set_key
	mov	x19, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #128
	bl	_os_memset
	b	LBB0_13
LBB0_11:
Lloh22:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_wpa_msg
	mov	w19, #-1
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_WPAS_MODE_IBSS,8,3             ; @WPAS_MODE_IBSS
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: Invalid mode %d (not IBSS/ad-hoc) for WPA-None"

l_.str.1:                               ; @.str.1
	.asciz	"WPA: No PSK configured for WPA-None"

	.comm	_WPA_ALG_CCMP,4,2               ; @WPA_ALG_CCMP
	.comm	_WPA_ALG_GCMP,4,2               ; @WPA_ALG_GCMP
	.comm	_WPA_ALG_TKIP,4,2               ; @WPA_ALG_TKIP
l_.str.2:                               ; @.str.2
	.asciz	"WPA: Invalid group cipher %d for WPA-None"

.subsections_via_symbols
