	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_assoc                      ## -- Begin function get_assoc
	.p2align	4, 0x90
_get_assoc:                             ## @get_assoc
	.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	%rbx
	pushq	%rax
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	12(%rdi), %edi
	leaq	-4128(%rbp), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_sniff
	movl	%eax, -4132(%rbp)
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-4128(%rbp), %rdi
	leaq	-4132(%rbp), %rsi
	callq	_get_wifi
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movl	-4132(%rbp), %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_generic_process
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_for_me
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_from_ap
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	_IEEE80211_FC0_TYPE_MGT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IEEE80211_FC0_SUBTYPE_ASSOC_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_frame_type
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movzwl	6(%rbx), %edi
	callq	_le16toh
	movl	%eax, -4132(%rbp)
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	jmp	LBB0_9
LBB0_8:
	movzwl	8(%rbx), %edi
	andl	$16383, %edi                    ## imm = 0x3FFF
	callq	_le16toh
	movl	%eax, (%r15)
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	movl	$1, %r14d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %eax
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sniff()"

	.comm	_IEEE80211_FC0_TYPE_MGT,4,2     ## @IEEE80211_FC0_TYPE_MGT
	.comm	_IEEE80211_FC0_SUBTYPE_ASSOC_RESP,4,2 ## @IEEE80211_FC0_SUBTYPE_ASSOC_RESP
L_.str.1:                               ## @.str.1
	.asciz	"Assoc failed code %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Association ID=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_assoc                      ; -- Begin function get_assoc
	.p2align	2
_get_assoc:                             ; @get_assoc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w0, [x0, #12]
	add	x1, sp, #8
	mov	w2, #4096
	bl	_sniff
	str	w0, [sp, #4]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_get_wifi
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
	ldr	w2, [sp, #4]
	mov	x1, x19
	bl	_generic_process
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_for_me
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_from_ap
	cbz	w0, LBB0_9
; %bb.5:
Lloh7:
	adrp	x8, _IEEE80211_FC0_TYPE_MGT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE80211_FC0_TYPE_MGT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_ASSOC_RESP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_ASSOC_RESP@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_frame_type
	cbz	w0, LBB0_9
; %bb.6:
	ldrh	w0, [x20, #6]
	bl	_le16toh
	mov	x1, x0
	str	w1, [sp, #4]
	cbz	w1, LBB0_8
; %bb.7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_printf
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	ldrh	w8, [x20, #8]
	and	w0, w8, #0x3fff
	bl	_le16toh
	mov	x1, x0
	str	w1, [x19]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_printf
	mov	w0, #1
LBB0_9:
	ldur	x8, [x29, #-40]
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_11
; %bb.10:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sniff()"

	.comm	_IEEE80211_FC0_TYPE_MGT,4,2     ; @IEEE80211_FC0_TYPE_MGT
	.comm	_IEEE80211_FC0_SUBTYPE_ASSOC_RESP,4,2 ; @IEEE80211_FC0_SUBTYPE_ASSOC_RESP
l_.str.1:                               ; @.str.1
	.asciz	"Assoc failed code %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Association ID=%d\n"

.subsections_via_symbols
