	.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_rsn
_wpa_supplicant_process_1_of_2_rsn:     ## @wpa_supplicant_process_1_of_2_rsn
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump_key
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpa_supplicant_parse_ies
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_11
## %bb.1:
	cmpq	$0, -64(%rbp)
	je	LBB0_4
## %bb.2:
	movq	_WPA_KEY_INFO_ENCR_KEY_DATA@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_3
## %bb.5:
	movl	-56(%rbp), %ecx
	addl	$-2, %ecx
	movl	%ecx, (%r12)
	movl	8(%r15), %esi
	leaq	20(%r12), %r8
	leaq	16(%r12), %r9
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_wpa_supplicant_check_group_cipher
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rdx
	movslq	-56(%rbp), %rcx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_key
	movq	-64(%rbp), %rax
	movl	(%rax), %ecx
	andl	$3, %ecx
	movl	%ecx, 4(%r12)
	movl	(%rax), %ebx
	movl	$2, %edi
	callq	_BIT
	xorl	%esi, %esi
	testl	%ebx, %eax
	setne	%sil
	movq	%r15, %rdi
	callq	_wpa_supplicant_gtk_tx_bit_workaround
	movl	%eax, 12(%r12)
	movslq	-56(%rbp), %rcx
	leal	-2(%rcx), %edx
	cmpl	$5, %edx
	jb	LBB0_8
## %bb.7:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$-2, %rcx
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_11
LBB0_4:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_10
LBB0_3:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_10:
	xorl	%eax, %eax
	callq	_wpa_msg
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r12), %edi
	movq	-64(%rbp), %rsi
	addq	$8, %rsi
	callq	_os_memcpy
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ieee80211w_set_keys
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jns	LBB0_11
## %bb.9:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSN: msg 1/2 key data"

	.comm	_WPA_KEY_INFO_ENCR_KEY_DATA,4,2 ## @WPA_KEY_INFO_ENCR_KEY_DATA
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"WPA: GTK IE in unencrypted key data"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"WPA: No GTK IE in Group Key msg 1/2"

L_.str.3:                               ## @.str.3
	.asciz	"RSN: received GTK in group key handshake"

L_.str.4:                               ## @.str.4
	.asciz	"RSN: Too long GTK in GTK IE (len=%lu)"

L_.str.5:                               ## @.str.5
	.asciz	"RSN: Failed to configure IGTK"

	.comm	_ocv_errorstr,4,2               ## @ocv_errorstr
	.no_dead_strip	_wpa_supplicant_process_1_of_2_rsn
.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_rsn
_wpa_supplicant_process_1_of_2_rsn:     ; @wpa_supplicant_process_1_of_2_rsn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	bl	_wpa_hexdump_key
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x22
	bl	_wpa_supplicant_parse_ies
	tbnz	x0, #63, LBB0_9
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh4:
	adrp	x8, _WPA_KEY_INFO_ENCR_KEY_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WPA_KEY_INFO_ENCR_KEY_DATA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.3:
	ldr	w8, [sp, #16]
	sub	w2, w8, #2
	mov	x5, x20
	str	w2, [x5], #16
	ldr	w1, [x19, #8]
	add	x4, x20, #20
	mov	x0, x19
	mov	x3, x2
	bl	_wpa_supplicant_check_group_cipher
	cbnz	x0, LBB0_9
; %bb.4:
	ldr	w0, [x24]
	ldr	x2, [sp, #8]
	ldrsw	x3, [sp, #16]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	and	w9, w9, #0x3
	str	w9, [x20, #4]
	ldr	w21, [x8]
	mov	w0, #2
	bl	_BIT
	tst	w0, w21
	cset	w1, ne
	mov	x0, x19
	bl	_wpa_supplicant_gtk_tx_bit_workaround
	str	w0, [x20, #12]
	ldrsw	x8, [sp, #16]
	sub	w2, w8, #2
	cmp	w2, #5
	b.lo	LBB0_11
; %bb.5:
	ldr	x9, [x19]
	ldr	w0, [x9]
Lloh9:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	sub	x8, x8, #2
	str	x8, [sp]
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	bl	_wpa_msg
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	w0, [x20, #8]
	ldr	x8, [sp, #8]
	add	x1, x8, #8
	bl	_os_memcpy
	add	x1, sp, #8
	mov	x0, x19
	bl	_ieee80211w_set_keys
	tbz	x0, #63, LBB0_13
; %bb.12:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.5@PAGE
Lloh28:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_wpa_msg
LBB0_13:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSN: msg 1/2 key data"

	.comm	_WPA_KEY_INFO_ENCR_KEY_DATA,4,2 ; @WPA_KEY_INFO_ENCR_KEY_DATA
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"WPA: GTK IE in unencrypted key data"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"WPA: No GTK IE in Group Key msg 1/2"

l_.str.3:                               ; @.str.3
	.asciz	"RSN: received GTK in group key handshake"

l_.str.4:                               ; @.str.4
	.asciz	"RSN: Too long GTK in GTK IE (len=%lu)"

l_.str.5:                               ; @.str.5
	.asciz	"RSN: Failed to configure IGTK"

	.comm	_ocv_errorstr,4,2               ; @ocv_errorstr
	.no_dead_strip	_wpa_supplicant_process_1_of_2_rsn
.subsections_via_symbols
