	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_eap_request_identity
_send_eap_request_identity:             ## @send_eap_request_identity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$408, %rsp                      ## imm = 0x198
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_EAPOL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -404(%rbp)
	movq	_IEEE802_1X_TYPE_EAP_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -408(%rbp)
	movl	$5, %edi
	callq	_htons
	movq	%rax, -416(%rbp)
	leaq	-400(%rbp), %rdi
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -384(%rbp)
	movl	$4, %esi
	callq	_os_get_random
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_os_random
	movzbl	%al, %eax
	movl	%eax, -400(%rbp)
LBB0_2:
	movl	$5, %edi
	callq	_htons
	movq	%rax, -392(%rbp)
	movq	_EAP_TYPE_IDENTITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -376(%rbp)
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	leaq	-416(%rbp), %rdx
	movl	$21, %ecx
	callq	_eapol_sm_rx_eapol
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$408, %rsp                      ## imm = 0x198
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAPOL_VERSION,4,2              ## @EAPOL_VERSION
	.comm	_IEEE802_1X_TYPE_EAP_PACKET,4,2 ## @IEEE802_1X_TYPE_EAP_PACKET
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_EAP_TYPE_IDENTITY,4,2          ## @EAP_TYPE_IDENTITY
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Sending fake EAP-Request-Identity"

	.no_dead_strip	_send_eap_request_identity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_eap_request_identity
_send_eap_request_identity:             ; @send_eap_request_identity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #448
	.cfi_def_cfa_offset 448
	stp	x20, x19, [sp, #416]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #432]            ; 16-byte Folded Spill
	add	x29, sp, #432
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _EAPOL_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAPOL_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IEEE802_1X_TYPE_EAP_PACKET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE802_1X_TYPE_EAP_PACKET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	mov	w0, #5
	bl	_htons
	str	x0, [sp, #8]
	add	x8, sp, #8
	add	x0, x8, #16
Lloh9:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	mov	w1, #4
	bl	_os_get_random
	tbz	x0, #63, LBB0_2
; %bb.1:
	bl	_os_random
	and	w8, w0, #0xff
	str	w8, [sp, #24]
LBB0_2:
	mov	w0, #5
	bl	_htons
	str	x0, [sp, #32]
Lloh12:
	adrp	x8, _EAP_TYPE_IDENTITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_TYPE_IDENTITY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #48]
Lloh15:
	adrp	x0, l_str@PAGE
Lloh16:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldp	w1, w0, [x19]
	add	x2, sp, #8
	mov	w3, #21
	bl	_eapol_sm_rx_eapol
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #432]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #416]            ; 16-byte Folded Reload
	add	sp, sp, #448
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EAPOL_VERSION,4,2              ; @EAPOL_VERSION
	.comm	_IEEE802_1X_TYPE_EAP_PACKET,4,2 ; @IEEE802_1X_TYPE_EAP_PACKET
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_EAP_TYPE_IDENTITY,4,2          ; @EAP_TYPE_IDENTITY
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Sending fake EAP-Request-Identity"

	.no_dead_strip	_send_eap_request_identity
.subsections_via_symbols
