	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_send_2_of_4     ## -- Begin function wpa_supplicant_send_2_of_4
	.p2align	4, 0x90
_wpa_supplicant_send_2_of_4:            ## @wpa_supplicant_send_2_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	%rdi, %r12
	testq	%r9, %r9
	je	LBB0_1
## %bb.2:
	movq	%r9, %r13
	movl	%ecx, %r14d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r9, %rdx
	movq	%rbx, %rcx
	callq	_wpa_hexdump
	movl	24(%r12), %esi
	movl	28(%r12), %edi
	callq	_wpa_mic_len
	movq	%rax, %r15
	movq	_IEEE802_1X_TYPE_EAPOL_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(%rbx,%r15), %rcx
	addq	$42, %rcx
	leaq	-96(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_wpa_sm_alloc_eapol
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rsi
	movq	_WPA_PROTO_OSEN@GOTPCREL(%rip), %rbx
	movq	_EAPOL_KEY_TYPE_RSN@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpq	(%rbx), %rax
	je	LBB0_6
## %bb.5:
	movq	_EAPOL_KEY_TYPE_WPA@GOTPCREL(%rip), %rdx
LBB0_6:
	cmpq	(%rsi), %rax
	cmoveq	%rcx, %rdx
	movl	(%rdx), %ecx
	movq	-48(%rbp), %rax
	movl	%ecx, 32(%rax)
	movq	_WPA_KEY_INFO_KEY_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%r14d, %ecx
	movslq	%ecx, %rsi
	testq	%r15, %r15
	jne	LBB0_7
## %bb.8:
	movq	_WPA_KEY_INFO_ENCR_KEY_DATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_wpa_msg
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_3:
	xorl	%edi, %edi
	callq	_os_free
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_7:
	movq	_WPA_KEY_INFO_MIC@GOTPCREL(%rip), %rcx
LBB0_9:
	orq	(%rcx), %rsi
	movq	24(%rax), %rdi
	callq	_WPA_PUT_BE16
	movq	8(%r12), %rax
	movq	-48(%rbp), %rcx
	movq	16(%rcx), %rdi
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	je	LBB0_11
## %bb.10:
	cmpq	(%rbx), %rax
	je	LBB0_11
## %bb.12:
	movq	%r15, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rsi
	movl	$2, %edx
	callq	_os_memcpy
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rbx
	xorl	%esi, %esi
	callq	_WPA_PUT_BE16
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_13:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdi
	movq	8(%r14), %rsi
	movq	_WPA_REPLAY_COUNTER_LEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdx
	movq	(%r15), %rcx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump
	movq	-48(%rbp), %r14
	leaq	40(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx,4), %rdi
	addq	$40, %rdi
	movq	16(%rbp), %r15
	movq	%r15, %rsi
	callq	_WPA_PUT_BE16
	leaq	(%r14,%rbx,4), %rdi
	addq	$48, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_os_memcpy
	xorl	%edi, %edi
	callq	_os_free
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	movq	_WPA_NONCE_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	callq	_wpa_dbg
	movq	_ETH_P_EAPOL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	24(%rbp), %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)
	callq	_wpa_eapol_key_send
	addq	$16, %rsp
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA: No wpa_ie set - cannot generate msg 2/4"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"WPA: WPA IE for msg 2/4"

	.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_KEY_TYPE,4,2      ## @WPA_KEY_INFO_KEY_TYPE
	.comm	_WPA_KEY_INFO_MIC,8,3           ## @WPA_KEY_INFO_MIC
	.comm	_WPA_KEY_INFO_ENCR_KEY_DATA,8,3 ## @WPA_KEY_INFO_ENCR_KEY_DATA
	.comm	_WPA_REPLAY_COUNTER_LEN,8,3     ## @WPA_REPLAY_COUNTER_LEN
L_.str.2:                               ## @.str.2
	.asciz	"WPA: Replay Counter"

	.comm	_WPA_NONCE_LEN,8,3              ## @WPA_NONCE_LEN
L_.str.3:                               ## @.str.3
	.asciz	"WPA: Sending EAPOL-Key 2/4"

	.comm	_ETH_P_EAPOL,4,2                ## @ETH_P_EAPOL
	.comm	_PMKID_LEN,8,3                  ## @PMKID_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_send_2_of_4     ; -- Begin function wpa_supplicant_send_2_of_4
	.p2align	2
_wpa_supplicant_send_2_of_4:            ; @wpa_supplicant_send_2_of_4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
	cbz	x5, LBB0_5
; %bb.1:
	mov	x19, x7
	mov	x24, x6
	mov	x25, x5
	mov	x23, x4
	mov	x20, x3
	mov	x27, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x5
	mov	x3, x6
	bl	_wpa_hexdump
	ldp	w1, w0, [x22, #24]
	bl	_wpa_mic_len
	mov	x28, x0
Lloh5:
	adrp	x8, _IEEE802_1X_TYPE_EAPOL_KEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE802_1X_TYPE_EAPOL_KEY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x8, x24, x0
	add	x3, x8, #42
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x0, x22
	mov	x2, #0
	bl	_wpa_sm_alloc_eapol
	cbz	x0, LBB0_6
; %bb.2:
	mov	x26, x0
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	x23, x21
	ldr	x8, [x22, #8]
Lloh8:
	adrp	x21, _WPA_PROTO_RSN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _WPA_PROTO_RSN@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh10:
	adrp	x10, _WPA_PROTO_OSEN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _WPA_PROTO_OSEN@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh13:
	adrp	x8, _EAPOL_KEY_TYPE_RSN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAPOL_KEY_TYPE_RSN@GOTPAGEOFF]
Lloh15:
	adrp	x9, _EAPOL_KEY_TYPE_WPA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EAPOL_KEY_TYPE_WPA@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	x9, [sp, #16]
	str	w8, [x9, #32]
Lloh17:
	adrp	x8, _WPA_KEY_INFO_KEY_TYPE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WPA_KEY_INFO_KEY_TYPE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w8, w8, w20
Lloh20:
	adrp	x10, _WPA_KEY_INFO_ENCR_KEY_DATA@GOTPAGE
Lloh21:
	ldr	x10, [x10, _WPA_KEY_INFO_ENCR_KEY_DATA@GOTPAGEOFF]
Lloh22:
	adrp	x11, _WPA_KEY_INFO_MIC@GOTPAGE
Lloh23:
	ldr	x11, [x11, _WPA_KEY_INFO_MIC@GOTPAGEOFF]
	sxtw	x8, w8
	cmp	x28, #0
	csel	x10, x10, x11, eq
	ldr	x10, [x10]
	orr	x1, x10, x8
	ldr	x0, [x9, #24]
	bl	_WPA_PUT_BE16
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	ldr	x10, [sp, #16]
	ldr	x0, [x10, #16]
	cmp	x8, x9
	str	x23, [sp]                       ; 8-byte Folded Spill
	b.eq	LBB0_7
; %bb.3:
Lloh24:
	adrp	x9, _WPA_PROTO_OSEN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WPA_PROTO_OSEN@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.4:
	ldr	x1, [x27, #16]
	mov	w2, #2
	bl	_os_memcpy
	b	LBB0_8
LBB0_5:
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str@PAGE
Lloh31:
	add	x2, x2, l_.str@PAGEOFF
	bl	_wpa_msg
	mov	w0, #-1
	b	LBB0_9
LBB0_6:
	bl	_os_free
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	mov	x1, #0
	bl	_WPA_PUT_BE16
LBB0_8:
	mov	x21, x19
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #8]
	ldr	x1, [x27, #8]
Lloh32:
	adrp	x19, _WPA_REPLAY_COUNTER_LEN@GOTPAGE
Lloh33:
	ldr	x19, [x19, _WPA_REPLAY_COUNTER_LEN@GOTPAGEOFF]
	ldr	x2, [x19]
	bl	_os_memcpy
Lloh34:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh35:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x8, [sp, #16]
	ldr	x2, [x8, #8]
	ldr	x3, [x19]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump
	ldr	x8, [sp, #16]
	add	x27, x8, #40
	add	x28, x27, x28, lsl #2
	mov	x0, x28
	mov	x1, x24
	bl	_WPA_PUT_BE16
	add	x0, x28, #8
	mov	x1, x25
	mov	x2, x24
	bl	_os_memcpy
	mov	x0, #0
	bl	_os_free
	ldp	x1, x8, [sp, #8]                ; 8-byte Folded Reload
	ldr	x0, [x8]
Lloh38:
	adrp	x8, _WPA_NONCE_LEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _WPA_NONCE_LEN@GOTPAGEOFF]
Lloh40:
	ldr	x2, [x8]
	bl	_os_memcpy
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	ldr	w1, [x23]
Lloh41:
	adrp	x2, l_.str.3@PAGE
Lloh42:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_wpa_dbg
Lloh43:
	adrp	x8, _ETH_P_EAPOL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ETH_P_EAPOL@GOTPAGEOFF]
Lloh45:
	ldr	w4, [x8]
	ldr	x6, [sp, #24]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	ldr	x3, [sp]                        ; 8-byte Folded Reload
	mov	x5, x26
	mov	x7, x27
	bl	_wpa_eapol_key_send
LBB0_9:
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: No wpa_ie set - cannot generate msg 2/4"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"WPA: WPA IE for msg 2/4"

	.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_KEY_TYPE,4,2      ; @WPA_KEY_INFO_KEY_TYPE
	.comm	_WPA_KEY_INFO_MIC,8,3           ; @WPA_KEY_INFO_MIC
	.comm	_WPA_KEY_INFO_ENCR_KEY_DATA,8,3 ; @WPA_KEY_INFO_ENCR_KEY_DATA
	.comm	_WPA_REPLAY_COUNTER_LEN,8,3     ; @WPA_REPLAY_COUNTER_LEN
l_.str.2:                               ; @.str.2
	.asciz	"WPA: Replay Counter"

	.comm	_WPA_NONCE_LEN,8,3              ; @WPA_NONCE_LEN
l_.str.3:                               ; @.str.3
	.asciz	"WPA: Sending EAPOL-Key 2/4"

	.comm	_ETH_P_EAPOL,4,2                ; @ETH_P_EAPOL
	.comm	_PMKID_LEN,8,3                  ; @PMKID_LEN
.subsections_via_symbols
