	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_process_1_of_2_wpa
_wpa_supplicant_process_1_of_2_wpa:     ## @wpa_supplicant_process_1_of_2_wpa
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -200(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -192(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	8(%rsi), %edi
	callq	_WPA_GET_BE16
	movq	%rbx, %rcx
	movq	%rax, %r12
	movq	_WPA_KEY_INFO_TYPE_HMAC_SHA1_AES@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_5
## %bb.1:
	cmpq	$7, %rcx
	ja	LBB0_4
## %bb.2:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_7
LBB0_4:
	leaq	-8(%rcx), %rbx
LBB0_5:
	movl	$-1, %eax
	cmpq	%rbx, %r12
	ja	LBB0_8
## %bb.6:
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %rax
	movl	24(%r15), %esi
	leaq	36(%rax), %r8
	leaq	32(%rax), %r9
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_wpa_supplicant_check_group_cipher
	testq	%rax, %rax
	je	LBB0_10
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.9:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	16(%rbp), %rdx
	movq	%r12, (%rdx)
	movq	_WPA_KEY_INFO_KEY_INDEX_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	-200(%rbp), %rax                ## 8-byte Folded Reload
	movq	_WPA_KEY_INFO_KEY_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	movq	%rax, 8(%rdx)
	movq	_WPA_KEY_INFO_TYPE_HMAC_MD5_RC4@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	movq	%r15, %r12
	movq	%rdx, %r15
	jne	LBB0_14
## %bb.11:
	cmpl	$16, 8(%r12)
	jne	LBB0_14
## %bb.12:
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	cmpq	$9, %rbx
	jb	LBB0_21
## %bb.13:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_17
LBB0_14:
	movq	_WPA_KEY_INFO_TYPE_HMAC_SHA1_AES@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	movq	-184(%rbp), %rcx                ## 8-byte Reload
	jne	LBB0_18
## %bb.15:
	testb	$7, %bl
	je	LBB0_19
## %bb.16:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_17:
	movq	%rbx, %rcx
	jmp	LBB0_3
LBB0_18:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r13, %rcx
	jmp	LBB0_3
LBB0_19:
	cmpq	$9, %rbx
	jb	LBB0_23
## %bb.20:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_7
LBB0_21:
	movq	(%r14), %rsi
	leaq	-176(%rbp), %r14
	movl	$16, %edx
	movq	%r14, %rdi
	callq	_os_memcpy
	leaq	-112(%rbp), %rdi
	movq	16(%r12), %rsi
	movslq	8(%r12), %rdx
	callq	_os_memcpy
	movq	24(%r15), %rdi
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_os_memcpy
	movq	24(%r15), %rcx
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$256, %edx                      ## imm = 0x100
	movq	%rbx, %r8
	callq	_rc4_skip
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_forced_memzero
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.22:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_25
LBB0_23:
	movq	16(%r12), %rdi
	movslq	8(%r12), %rsi
	shrq	$3, %rbx
	movq	24(%r15), %r8
	movq	%rbx, %rdx
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	callq	_aes_unwrap
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_25:
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_7
LBB0_26:
	movq	_WPA_KEY_INFO_TXRX@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	andq	(%rax), %rcx
	setne	%sil
	movq	%r12, %rdi
	callq	_wpa_supplicant_gtk_tx_bit_workaround
	movl	%eax, 16(%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_KEY_INFO_TYPE_HMAC_SHA1_AES,8,3 ## @WPA_KEY_INFO_TYPE_HMAC_SHA1_AES
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA: Too short maxkeylen (%lu)"

	.comm	_WPA_KEY_INFO_KEY_INDEX_MASK,8,3 ## @WPA_KEY_INFO_KEY_INDEX_MASK
	.comm	_WPA_KEY_INFO_KEY_INDEX_SHIFT,8,3 ## @WPA_KEY_INFO_KEY_INDEX_SHIFT
	.comm	_WPA_KEY_INFO_TYPE_HMAC_MD5_RC4,8,3 ## @WPA_KEY_INFO_TYPE_HMAC_MD5_RC4
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"WPA: RC4 key data too long (%lu)"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"WPA: RC4 failed"

L_.str.3:                               ## @.str.3
	.asciz	"WPA: Unsupported AES-WRAP len %lu"

L_.str.4:                               ## @.str.4
	.asciz	"WPA: AES-WRAP key data too long (keydatalen=%lu maxkeylen=%lu)"

L_.str.5:                               ## @.str.5
	.asciz	"WPA: AES unwrap failed - could not decrypt GTK"

L_.str.6:                               ## @.str.6
	.asciz	"WPA: Unsupported key_info type %d"

	.comm	_WPA_KEY_INFO_TXRX,8,3          ## @WPA_KEY_INFO_TXRX
	.no_dead_strip	_wpa_supplicant_process_1_of_2_wpa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_process_1_of_2_wpa
_wpa_supplicant_process_1_of_2_wpa:     ; @wpa_supplicant_process_1_of_2_wpa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x24, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x26, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	w0, [x1, #8]
	bl	_WPA_GET_BE16
	mov	x27, x0
Lloh3:
	adrp	x28, _WPA_KEY_INFO_TYPE_HMAC_SHA1_AES@GOTPAGE
Lloh4:
	ldr	x28, [x28, _WPA_KEY_INFO_TYPE_HMAC_SHA1_AES@GOTPAGEOFF]
	ldr	x8, [x28]
	mov	x25, x22
	cmp	x8, x24
	b.ne	LBB0_5
; %bb.1:
	cmp	x22, #7
	b.hi	LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	str	x22, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_3:
	bl	_wpa_msg
	b	LBB0_7
LBB0_4:
	sub	x25, x22, #8
LBB0_5:
	cmp	x27, x25
	b.hi	LBB0_7
; %bb.6:
	ldr	w1, [x20, #24]
	add	x4, x19, #36
	add	x5, x19, #32
	mov	x0, x20
	mov	x2, x27
	mov	x3, x25
	bl	_wpa_supplicant_check_group_cipher
	cbz	x0, LBB0_10
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-96]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.9:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_10:
Lloh13:
	adrp	x8, _WPA_KEY_INFO_KEY_INDEX_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WPA_KEY_INFO_KEY_INDEX_MASK@GOTPAGEOFF]
	str	x27, [x19]
Lloh15:
	ldr	x8, [x8]
	and	x8, x8, x21
Lloh16:
	adrp	x9, _WPA_KEY_INFO_KEY_INDEX_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WPA_KEY_INFO_KEY_INDEX_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	lsr	x8, x8, x9
	str	x8, [x19, #8]
Lloh19:
	adrp	x8, _WPA_KEY_INFO_TYPE_HMAC_MD5_RC4@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WPA_KEY_INFO_TYPE_HMAC_MD5_RC4@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x8, x24
	b.ne	LBB0_14
; %bb.11:
	ldr	w8, [x20, #8]
	cmp	w8, #16
	b.ne	LBB0_14
; %bb.12:
	cmp	x22, #9
	b.lo	LBB0_20
; %bb.13:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	str	x22, [sp]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_14:
	ldr	x8, [x28]
	cmp	x8, x24
	b.ne	LBB0_17
; %bb.15:
	tst	x25, #0x7
	b.eq	LBB0_18
; %bb.16:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_17:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	str	x24, [sp]
Lloh35:
	adrp	x2, l_.str.6@PAGE
Lloh36:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_18:
	cmp	x25, #9
	b.lo	LBB0_22
; %bb.19:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	stp	x22, x25, [sp]
Lloh40:
	adrp	x2, l_.str.4@PAGE
Lloh41:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_20:
	ldr	x1, [x26]
	add	x24, sp, #16
	add	x0, sp, #16
	mov	w2, #16
	bl	_os_memcpy
	add	x0, x24, #64
	ldr	x1, [x20, #16]
	ldrsw	x2, [x20, #8]
	bl	_os_memcpy
	ldr	x0, [x19, #24]
	mov	x1, x23
	mov	x2, x22
	bl	_os_memcpy
	ldr	x3, [x19, #24]
	add	x0, sp, #16
	mov	w1, #32
	mov	w2, #256
	mov	x4, x22
	bl	_rc4_skip
	mov	x22, x0
	add	x0, sp, #16
	mov	w1, #128
	bl	_forced_memzero
	cbz	x22, LBB0_24
; %bb.21:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh42:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x2, l_.str.2@PAGE
Lloh46:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_22:
	ldr	x0, [x20, #16]
	ldrsw	x1, [x20, #8]
	lsr	x2, x25, #3
	ldr	x4, [x19, #24]
	mov	x3, x23
	bl	_aes_unwrap
	cbz	x0, LBB0_24
; %bb.23:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh47:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x2, l_.str.5@PAGE
Lloh51:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_24:
Lloh52:
	adrp	x8, _WPA_KEY_INFO_TXRX@GOTPAGE
Lloh53:
	ldr	x8, [x8, _WPA_KEY_INFO_TXRX@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	tst	x8, x21
	cset	w1, ne
	mov	x0, x20
	bl	_wpa_supplicant_gtk_tx_bit_workaround
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #16]
	b	LBB0_8
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_KEY_INFO_TYPE_HMAC_SHA1_AES,8,3 ; @WPA_KEY_INFO_TYPE_HMAC_SHA1_AES
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: Too short maxkeylen (%lu)"

	.comm	_WPA_KEY_INFO_KEY_INDEX_MASK,8,3 ; @WPA_KEY_INFO_KEY_INDEX_MASK
	.comm	_WPA_KEY_INFO_KEY_INDEX_SHIFT,8,3 ; @WPA_KEY_INFO_KEY_INDEX_SHIFT
	.comm	_WPA_KEY_INFO_TYPE_HMAC_MD5_RC4,8,3 ; @WPA_KEY_INFO_TYPE_HMAC_MD5_RC4
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"WPA: RC4 key data too long (%lu)"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"WPA: RC4 failed"

l_.str.3:                               ; @.str.3
	.asciz	"WPA: Unsupported AES-WRAP len %lu"

l_.str.4:                               ; @.str.4
	.asciz	"WPA: AES-WRAP key data too long (keydatalen=%lu maxkeylen=%lu)"

l_.str.5:                               ; @.str.5
	.asciz	"WPA: AES unwrap failed - could not decrypt GTK"

l_.str.6:                               ; @.str.6
	.asciz	"WPA: Unsupported key_info type %d"

	.comm	_WPA_KEY_INFO_TXRX,8,3          ; @WPA_KEY_INFO_TXRX
	.no_dead_strip	_wpa_supplicant_process_1_of_2_wpa
.subsections_via_symbols
