	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auth_shared_key
_auth_shared_key:                       ## @auth_shared_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %r14
	movl	16(%rsi), %esi
	movq	_HOSTAPD_MODULE_IEEE80211@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_hostapd_logger
	cmpl	$3, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$1, %ebx
	jne	LBB0_13
## %bb.2:
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	jne	LBB0_15
## %bb.3:
	movq	_WLAN_AUTH_CHALLENGE_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_os_zalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	callq	_os_get_random
	movq	(%r14), %rcx
	testq	%rax, %rax
	js	LBB0_12
## %bb.5:
	movl	(%rbx), %r8d
	leaq	-80(%rbp), %rdi
	xorl	%ebx, %ebx
	movl	$32, %esi
	xorl	%edx, %edx
	callq	_rc4_skip
	jmp	LBB0_15
LBB0_6:
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.7:
	testq	%r13, %r13
	je	LBB0_10
## %bb.8:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	_WLAN_AUTH_CHALLENGE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movl	16(%r14), %esi
	movl	(%r12), %edx
	movq	_HOSTAPD_LEVEL_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_hostapd_logger
	movq	_WLAN_STATUS_CHALLENGE_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movl	16(%r14), %esi
	movl	(%r12), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_hostapd_logger
	movq	_WLAN_STA_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
	movl	8(%r14), %edi
	movq	_WPA_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpa_auth_sm_event
	movq	(%r14), %rdi
	callq	_os_free
	movq	$0, (%r14)
	jmp	LBB0_15
LBB0_12:
	movq	%rcx, %rdi
	callq	_os_free
	movq	$0, (%r14)
LBB0_13:
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_MODULE_IEEE80211,4,2   ## @HOSTAPD_MODULE_IEEE80211
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ## @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"authentication (shared key, transaction %d)"

	.comm	_WLAN_AUTH_CHALLENGE_LEN,4,2    ## @WLAN_AUTH_CHALLENGE_LEN
	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
	.comm	_HOSTAPD_LEVEL_INFO,4,2         ## @HOSTAPD_LEVEL_INFO
L_.str.1:                               ## @.str.1
	.asciz	"shared key authentication - invalid challenge-response"

	.comm	_WLAN_STATUS_CHALLENGE_FAIL,4,2 ## @WLAN_STATUS_CHALLENGE_FAIL
L_.str.2:                               ## @.str.2
	.asciz	"authentication OK (shared key)"

	.comm	_WLAN_STA_AUTH,4,2              ## @WLAN_STA_AUTH
	.comm	_WPA_AUTH,4,2                   ## @WPA_AUTH
	.no_dead_strip	_auth_shared_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auth_shared_key
_auth_shared_key:                       ; @auth_shared_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w1, [x1, #16]
Lloh3:
	adrp	x24, _HOSTAPD_MODULE_IEEE80211@GOTPAGE
Lloh4:
	ldr	x24, [x24, _HOSTAPD_MODULE_IEEE80211@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh5:
	adrp	x25, _HOSTAPD_LEVEL_DEBUG@GOTPAGE
Lloh6:
	ldr	x25, [x25, _HOSTAPD_LEVEL_DEBUG@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh7:
	adrp	x4, l_.str@PAGE
Lloh8:
	add	x4, x4, l_.str@PAGEOFF
	str	x23, [sp]
	bl	_hostapd_logger
	cmp	w23, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	w23, #1
	b.ne	LBB0_14
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.3:
	mov	w0, #0
	b	LBB0_16
LBB0_4:
	cbz	w22, LBB0_8
; %bb.5:
	cbz	x21, LBB0_8
; %bb.6:
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _WLAN_AUTH_CHALLENGE_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_AUTH_CHALLENGE_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_os_memcmp_const
	cbz	x0, LBB0_12
LBB0_8:
	ldr	w1, [x19, #16]
	ldr	w2, [x24]
Lloh12:
	adrp	x8, _HOSTAPD_LEVEL_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HOSTAPD_LEVEL_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x4, l_.str.1@PAGE
Lloh16:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_hostapd_logger
Lloh17:
	adrp	x8, _WLAN_STATUS_CHALLENGE_FAIL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WLAN_STATUS_CHALLENGE_FAIL@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh19:
	adrp	x20, _WLAN_AUTH_CHALLENGE_LEN@GOTPAGE
Lloh20:
	ldr	x20, [x20, _WLAN_AUTH_CHALLENGE_LEN@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_os_zalloc
	str	x0, [x19]
	cbz	x0, LBB0_14
; %bb.10:
	add	x0, sp, #8
	mov	w1, #32
	bl	_os_get_random
	ldr	x3, [x19]
	tbnz	x0, #63, LBB0_13
; %bb.11:
	ldr	w4, [x20]
	add	x0, sp, #8
	mov	w1, #32
	mov	w2, #0
	bl	_rc4_skip
	mov	w0, #0
	b	LBB0_16
LBB0_12:
	ldr	w1, [x19, #16]
	ldr	w2, [x24]
	ldr	w3, [x25]
Lloh21:
	adrp	x4, l_.str.2@PAGE
Lloh22:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_hostapd_logger
Lloh23:
	adrp	x8, _WLAN_STA_AUTH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WLAN_STA_AUTH@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldp	w0, w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #12]
Lloh26:
	adrp	x8, _WPA_AUTH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WPA_AUTH@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_wpa_auth_sm_event
	ldr	x0, [x19]
	bl	_os_free
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_16
LBB0_13:
	mov	x0, x3
	bl	_os_free
	str	xzr, [x19]
LBB0_14:
Lloh29:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	ldr	x8, [sp, #40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_MODULE_IEEE80211,4,2   ; @HOSTAPD_MODULE_IEEE80211
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ; @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"authentication (shared key, transaction %d)"

	.comm	_WLAN_AUTH_CHALLENGE_LEN,4,2    ; @WLAN_AUTH_CHALLENGE_LEN
	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
	.comm	_HOSTAPD_LEVEL_INFO,4,2         ; @HOSTAPD_LEVEL_INFO
l_.str.1:                               ; @.str.1
	.asciz	"shared key authentication - invalid challenge-response"

	.comm	_WLAN_STATUS_CHALLENGE_FAIL,4,2 ; @WLAN_STATUS_CHALLENGE_FAIL
l_.str.2:                               ; @.str.2
	.asciz	"authentication OK (shared key)"

	.comm	_WLAN_STA_AUTH,4,2              ; @WLAN_STA_AUTH
	.comm	_WPA_AUTH,4,2                   ; @WPA_AUTH
	.no_dead_strip	_auth_shared_key
.subsections_via_symbols
