	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_victim_ssid                ## -- Begin function get_victim_ssid
	.p2align	4, 0x90
_get_victim_ssid:                       ## @get_victim_ssid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$8, %esi
	ja	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_time_print
	jmp	LBB0_26
LBB0_3:
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_IEEE80211_BEACON_CAPABILITY
	movq	_IEEE80211_CAPINFO_PRIVACY@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.4:
	movq	_victim_mac@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rdi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_26
LBB0_6:
	leal	-8(%rbx), %eax
	cmpl	$12, %eax
	jg	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_8:
	addl	$-20, %ebx
	cmpl	$3, %ebx
	jb	LBB0_26
## %bb.9:
	addq	$12, %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_victim@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	%r12, %r15
	cmpl	$2, %ebx
	jle	LBB0_23
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	1(%r15), %r12d
	addl	$-2, %ebx
	subl	%r12d, %ebx
	jb	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%r15), %ecx
	addq	$2, %r15
	cmpb	$3, %cl
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	testb	%cl, %cl
	jne	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_free
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r12), %edi
	callq	_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movl	%r12d, %ecx
	movb	$0, (%rax,%rcx)
	movl	$1, %eax
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$1, %r12b
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%r15), %ecx
	movb	%cl, 8(%r13)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_22
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_23:
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_26
## %bb.24:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.25:
	movq	16(%r13), %rdi
	movq	(%r14), %rsi
	movl	$6, %edx
	callq	_memcpy
	movzbl	8(%r13), %edi
	callq	_set_chan
	movq	_FOUND_VICTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_state@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r13), %rbx
	movq	16(%r13), %rdi
	callq	_mac2str
	movzbl	8(%r13), %ecx
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_time_print
	movl	$1, %r12d
LBB0_26:
	movl	%r12d, %eax
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_2
LBB0_17:
	callq	_get_victim_ssid.cold.1
	xorl	%eax, %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function get_victim_ssid.cold.1
_get_victim_ssid.cold.1:                ## @get_victim_ssid.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: short packet in get_victim_ssid()\n"

	.comm	_IEEE80211_CAPINFO_PRIVACY,4,2  ## @IEEE80211_CAPINFO_PRIVACY
	.comm	_victim_mac,8,3                 ## @victim_mac
L_.str.1:                               ## @.str.1
	.asciz	"Warning short.asdfasdf\n"

L_.str.2:                               ## @.str.2
	.asciz	"Warning short....\n"

	.comm	_victim,24,3                    ## @victim
L_.str.3:                               ## @.str.3
	.asciz	"malloc()"

L_.str.4:                               ## @.str.4
	.asciz	"Warning len of chan not 1\n"

	.comm	_FOUND_VICTIM,4,2               ## @FOUND_VICTIM
	.comm	_state,4,2                      ## @state
L_.str.5:                               ## @.str.5
	.asciz	"Found SSID(%s) BSS=(%s) chan=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_victim_ssid                ; -- Begin function get_victim_ssid
	.p2align	2
_get_victim_ssid:                       ; @get_victim_ssid
	.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
	subs	w22, w1, #8
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_time_print
	b	LBB0_10
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_IEEE80211_BEACON_CAPABILITY
Lloh2:
	adrp	x8, _IEEE80211_CAPINFO_PRIVACY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_CAPINFO_PRIVACY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _victim_mac@GOTPAGE
Lloh6:
	ldr	x8, [x8, _victim_mac@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	x0, [x19]
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_10
LBB0_6:
	cmp	w22, #12
	b.gt	LBB0_8
; %bb.7:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_8:
	sub	w23, w20, #20
	cmp	w23, #3
	b.lo	LBB0_10
; %bb.9:
	mov	w24, #0
	mov	w8, #0
	add	x9, x21, #12
Lloh10:
	adrp	x22, _victim@GOTPAGE
Lloh11:
	ldr	x22, [x22, _victim@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	mov	w0, #0
LBB0_11:
	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_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x9, x21, x20
	cmp	w23, #2
	b.le	LBB0_23
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w20, [x9, #1]
	sub	w10, w23, #2
	subs	w23, w10, w20
	b.lo	LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x9, #2
	ldrb	w9, [x9]
	cmp	w9, #3
	b.eq	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	cbnz	w9, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x22]
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_free
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w0, w20, #1
	bl	_malloc
	str	x0, [x22]
	cbz	x0, LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x22]
	strb	wzr, [x8, w20, uxtw]
	mov	w8, #1
	b	LBB0_12
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	w20, #1
	b.ne	LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w9, [x21]
	strb	w9, [x22, #8]
	mov	w24, #1
	b	LBB0_12
LBB0_22:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_23:
	mov	w0, #0
	cbz	w8, LBB0_11
; %bb.24:
	cbz	w24, LBB0_11
; %bb.25:
	ldr	x0, [x22, #16]
	ldr	x1, [x19]
	mov	w2, #6
	bl	_memcpy
	ldrb	w0, [x22, #8]
	bl	_set_chan
Lloh14:
	adrp	x8, _FOUND_VICTIM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FOUND_VICTIM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _state@GOTPAGE
Lloh18:
	ldr	x9, [x9, _state@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	ldr	x19, [x22]
	ldr	x0, [x22, #16]
	bl	_mac2str
                                        ; kill: def $w0 killed $w0 def $x0
	ldrb	w8, [x22, #8]
	stp	x0, x8, [sp, #8]
	str	x19, [sp]
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_time_print
	mov	w0, #1
	b	LBB0_11
LBB0_26:
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_27:
	bl	_get_victim_ssid.cold.1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function get_victim_ssid.cold.1
_get_victim_ssid.cold.1:                ; @get_victim_ssid.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: short packet in get_victim_ssid()\n"

	.comm	_IEEE80211_CAPINFO_PRIVACY,4,2  ; @IEEE80211_CAPINFO_PRIVACY
	.comm	_victim_mac,8,3                 ; @victim_mac
l_.str.1:                               ; @.str.1
	.asciz	"Warning short.asdfasdf\n"

l_.str.2:                               ; @.str.2
	.asciz	"Warning short....\n"

	.comm	_victim,24,3                    ; @victim
l_.str.3:                               ; @.str.3
	.asciz	"malloc()"

l_.str.4:                               ; @.str.4
	.asciz	"Warning len of chan not 1\n"

	.comm	_FOUND_VICTIM,4,2               ; @FOUND_VICTIM
	.comm	_state,4,2                      ; @state
l_.str.5:                               ; @.str.5
	.asciz	"Found SSID(%s) BSS=(%s) chan=%d\n"

.subsections_via_symbols
