	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_real_data                 ## -- Begin function read_real_data
	.p2align	4, 0x90
_read_real_data:                        ## @read_real_data
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rdi
	movl	12(%r15), %esi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	8(%rbx), %rdi
	movl	12(%r15), %esi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_relay_data
LBB0_3:
	leaq	32(%rbx), %r12
	movq	8(%rbx), %rsi
	leaq	-38(%rbp), %rdi
	movl	$6, %edx
	callq	_memcpy
	movq	16(%rbx), %rax
	movq	_IEEE80211_FC1_PROTECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_11
## %bb.4:
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.8:
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_wep_decrypt
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.10:
	addq	$4, %r12
	addl	$-8, %r14d
LBB0_11:
	movq	24(%rbx), %rsi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_memcpy
	addq	$-6, %r12
	leaq	-38(%rbp), %rsi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_memcpy
	addl	$-26, %r14d
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_write
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_13:
	cmpl	%r14d, %ebx
	je	LBB0_7
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %edi
	callq	_exit
LBB0_5:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_6
LBB0_9:
	leaq	L_str.4(%rip), %rdi
LBB0_6:
	callq	_puts
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FC1_PROTECTED,4,2    ## @IEEE80211_FC1_PROTECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"write()"

L_.str.3:                               ## @.str.3
	.asciz	"Wrote %d/%d\n"

L_str:                                  ## @str
	.asciz	"Got wep but i aint wep"

L_str.4:                                ## @str.4
	.asciz	"Can't decrypt"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_real_data                 ; -- Begin function read_real_data
	.p2align	2
_read_real_data:                        ; @read_real_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	x21, x1
	ldr	x0, [x21], #32
	ldr	w1, [x20, #12]
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	x0, [x22, #8]
	ldr	w1, [x20, #12]
	mov	w2, #6
	bl	_memcmp
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_relay_data
LBB0_3:
	ldr	x1, [x22, #8]
	add	x0, sp, #26
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x22, #16]
	ldr	w8, [x8, #4]
Lloh0:
	adrp	x9, _IEEE80211_FC1_PROTECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_FC1_PROTECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	w3, [x20, #4]
	cbz	w3, LBB0_11
; %bb.5:
	ldr	w2, [x20, #8]
	mov	x0, x22
	mov	x1, x19
	bl	_wep_decrypt
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.6:
	add	x21, x21, #4
	sub	w19, w19, #8
LBB0_7:
	ldr	x1, [x22, #24]
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	sub	x21, x21, #6
	add	x1, sp, #26
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	sub	w19, w19, #26
	ldr	w0, [x20]
	mov	x1, x21
	mov	x2, x19
	bl	_write
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	cmp	w20, w19
	b.eq	LBB0_14
; %bb.10:
	stp	x20, x19, [sp]
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	w0, #1
	bl	_exit
LBB0_11:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh9:
	adrp	x0, l_str.4@PAGE
Lloh10:
	add	x0, x0, l_str.4@PAGEOFF
LBB0_13:
	bl	_puts
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FC1_PROTECTED,4,2    ; @IEEE80211_FC1_PROTECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"write()"

l_.str.3:                               ; @.str.3
	.asciz	"Wrote %d/%d\n"

l_str:                                  ; @str
	.asciz	"Got wep but i aint wep"

l_str.4:                                ; @str.4
	.asciz	"Can't decrypt"

.subsections_via_symbols
