	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_send_4_of_4     ## -- Begin function wpa_supplicant_send_4_of_4
	.p2align	4, 0x90
_wpa_supplicant_send_4_of_4:            ## @wpa_supplicant_send_4_of_4
	.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
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	16(%rdi), %esi
	movl	20(%rdi), %edi
	callq	_wpa_mic_len
	movq	%rax, %r15
	leaq	34(%rax), %rcx
	movq	_IEEE802_1X_TYPE_EAPOL_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wpa_sm_alloc_eapol
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rdi
	movq	_WPA_PROTO_OSEN@GOTPCREL(%rip), %rsi
	movq	_EAPOL_KEY_TYPE_RSN@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpq	(%rsi), %rax
	je	LBB0_4
## %bb.3:
	movq	_EAPOL_KEY_TYPE_WPA@GOTPCREL(%rip), %rdx
LBB0_4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpq	(%rdi), %rax
	cmoveq	%rcx, %rdx
	movl	(%rdx), %ecx
	movq	-56(%rbp), %rax
	movl	%ecx, 24(%rax)
	movq	_WPA_KEY_INFO_SECURE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r12d
	movq	_WPA_KEY_INFO_KEY_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	orl	%r12d, %esi
	movq	%rdi, %rbx
	testq	%r15, %r15
	jne	LBB0_5
## %bb.6:
	movq	_WPA_KEY_INFO_ENCR_KEY_DATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_5:
	movq	_WPA_KEY_INFO_MIC@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %esi
	movq	16(%rax), %rdi
	callq	_WPA_PUT_BE16
	movq	(%r14), %rax
	movq	-56(%rbp), %rcx
	movq	8(%rcx), %rdi
	cmpq	(%rbx), %rax
	je	LBB0_9
## %bb.8:
	movq	_WPA_PROTO_OSEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.10:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rsi
	movl	$2, %edx
	callq	_os_memcpy
	jmp	LBB0_11
LBB0_9:
	xorl	%esi, %esi
	callq	_WPA_PUT_BE16
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	movq	(%rbx), %rsi
	movq	_WPA_REPLAY_COUNTER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	-56(%rbp), %rbx
	leaq	(%rbx,%r15,4), %rdi
	addq	$32, %rdi
	addq	$32, %rbx
	xorl	%esi, %esi
	callq	_WPA_PUT_BE16
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_wpa_dbg
	movq	_ETH_P_EAPOL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r9
	pushq	%rbx
	pushq	-88(%rbp)
	callq	_wpa_eapol_key_send
	addq	$16, %rsp
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE802_1X_TYPE_EAPOL_KEY,4,2  ## @IEEE802_1X_TYPE_EAPOL_KEY
	.comm	_WPA_PROTO_RSN,8,3              ## @WPA_PROTO_RSN
	.comm	_WPA_PROTO_OSEN,8,3             ## @WPA_PROTO_OSEN
	.comm	_EAPOL_KEY_TYPE_RSN,4,2         ## @EAPOL_KEY_TYPE_RSN
	.comm	_EAPOL_KEY_TYPE_WPA,4,2         ## @EAPOL_KEY_TYPE_WPA
	.comm	_WPA_KEY_INFO_SECURE,4,2        ## @WPA_KEY_INFO_SECURE
	.comm	_WPA_KEY_INFO_KEY_TYPE,4,2      ## @WPA_KEY_INFO_KEY_TYPE
	.comm	_WPA_KEY_INFO_MIC,4,2           ## @WPA_KEY_INFO_MIC
	.comm	_WPA_KEY_INFO_ENCR_KEY_DATA,4,2 ## @WPA_KEY_INFO_ENCR_KEY_DATA
	.comm	_WPA_REPLAY_COUNTER_LEN,4,2     ## @WPA_REPLAY_COUNTER_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA: Sending EAPOL-Key 4/4"

	.comm	_ETH_P_EAPOL,4,2                ## @ETH_P_EAPOL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_send_4_of_4     ; -- Begin function wpa_supplicant_send_4_of_4
	.p2align	2
_wpa_supplicant_send_4_of_4:            ; @wpa_supplicant_send_4_of_4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x5
	mov	x26, x4
	mov	x20, x3
	mov	x25, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #20]
	ldr	w1, [x22, #16]
	bl	_wpa_mic_len
	mov	x24, x0
	add	x3, x0, #34
Lloh0:
	adrp	x8, _IEEE802_1X_TYPE_EAPOL_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE802_1X_TYPE_EAPOL_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x5, sp
	mov	x0, x22
	mov	x2, #0
	bl	_wpa_sm_alloc_eapol
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	ldr	x8, [x22]
Lloh3:
	adrp	x28, _WPA_PROTO_RSN@GOTPAGE
Lloh4:
	ldr	x28, [x28, _WPA_PROTO_RSN@GOTPAGEOFF]
Lloh5:
	adrp	x27, _WPA_PROTO_OSEN@GOTPAGE
Lloh6:
	ldr	x27, [x27, _WPA_PROTO_OSEN@GOTPAGEOFF]
	ldr	x9, [x28]
	ldr	x10, [x27]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh7:
	adrp	x8, _EAPOL_KEY_TYPE_RSN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAPOL_KEY_TYPE_RSN@GOTPAGEOFF]
Lloh9:
	adrp	x9, _EAPOL_KEY_TYPE_WPA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EAPOL_KEY_TYPE_WPA@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	x9, [sp]
	str	w8, [x9, #24]
Lloh11:
	adrp	x8, _WPA_KEY_INFO_SECURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WPA_KEY_INFO_SECURE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh14:
	adrp	x10, _WPA_KEY_INFO_KEY_TYPE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _WPA_KEY_INFO_KEY_TYPE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w10, w10, w20
Lloh17:
	adrp	x11, _WPA_KEY_INFO_ENCR_KEY_DATA@GOTPAGE
Lloh18:
	ldr	x11, [x11, _WPA_KEY_INFO_ENCR_KEY_DATA@GOTPAGEOFF]
Lloh19:
	adrp	x12, _WPA_KEY_INFO_MIC@GOTPAGE
Lloh20:
	ldr	x12, [x12, _WPA_KEY_INFO_MIC@GOTPAGEOFF]
	orr	w8, w10, w8
	cmp	x24, #0
	csel	x10, x11, x12, eq
	ldr	w10, [x10]
	orr	w1, w8, w10
	ldr	x0, [x9, #16]
	bl	_WPA_PUT_BE16
	ldr	x8, [x22]
	ldr	x9, [x28]
	ldr	x10, [sp]
	ldr	x0, [x10, #8]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	ldr	x1, [x25, #8]
	mov	w2, #2
	bl	_os_memcpy
	b	LBB0_6
LBB0_4:
	mov	w0, #-1
	b	LBB0_7
LBB0_5:
	mov	w1, #0
	bl	_WPA_PUT_BE16
LBB0_6:
	ldr	x8, [sp]
	ldr	x0, [x8]
	ldr	x1, [x25]
Lloh21:
	adrp	x8, _WPA_REPLAY_COUNTER_LEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WPA_REPLAY_COUNTER_LEN@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldr	x8, [sp]
	add	x25, x8, #32
	add	x0, x25, x24, lsl #2
	mov	w1, #0
	bl	_WPA_PUT_BE16
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	bl	_wpa_dbg
Lloh29:
	adrp	x8, _ETH_P_EAPOL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ETH_P_EAPOL@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x8]
	ldr	x6, [sp, #8]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x5, x23
	mov	x7, x25
	bl	_wpa_eapol_key_send
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE802_1X_TYPE_EAPOL_KEY,4,2  ; @IEEE802_1X_TYPE_EAPOL_KEY
	.comm	_WPA_PROTO_RSN,8,3              ; @WPA_PROTO_RSN
	.comm	_WPA_PROTO_OSEN,8,3             ; @WPA_PROTO_OSEN
	.comm	_EAPOL_KEY_TYPE_RSN,4,2         ; @EAPOL_KEY_TYPE_RSN
	.comm	_EAPOL_KEY_TYPE_WPA,4,2         ; @EAPOL_KEY_TYPE_WPA
	.comm	_WPA_KEY_INFO_SECURE,4,2        ; @WPA_KEY_INFO_SECURE
	.comm	_WPA_KEY_INFO_KEY_TYPE,4,2      ; @WPA_KEY_INFO_KEY_TYPE
	.comm	_WPA_KEY_INFO_MIC,4,2           ; @WPA_KEY_INFO_MIC
	.comm	_WPA_KEY_INFO_ENCR_KEY_DATA,4,2 ; @WPA_KEY_INFO_ENCR_KEY_DATA
	.comm	_WPA_REPLAY_COUNTER_LEN,4,2     ; @WPA_REPLAY_COUNTER_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: Sending EAPOL-Key 4/4"

	.comm	_ETH_P_EAPOL,4,2                ; @ETH_P_EAPOL
.subsections_via_symbols
