	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orinoco_send_assocrespie_wevent
_orinoco_send_assocrespie_wevent:       ## @orinoco_send_assocrespie_wevent
	.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
	subq	$376, %rsp                      ## imm = 0x178
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	16(%rdi), %r15
	movq	8(%rdi), %rax
	addq	$8, %rdi
	movq	_USER_BAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HERMES_RID_CURRENT_ASSOC_RESP_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-384(%rbp), %r9
	movl	$352, %ecx                      ## imm = 0x160
	xorl	%r8d, %r8d
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$376, %rsp                      ## imm = 0x178
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-384(%rbp), %r14
	movl	$352, %ebx                      ## imm = 0x160
	movq	%r14, %rdi
	movl	$352, %esi                      ## imm = 0x160
	callq	_orinoco_get_wpa_ie
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rcx
	subq	%r14, %rcx
	shrq	$2, %rcx
	subl	%ecx, %ebx
	movl	4(%rax), %ecx
	addl	$2, %ecx
	cmpl	%ebx, %ecx
	cmovgel	%ebx, %ecx
	movl	%ecx, -392(%rbp)
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movq	_IWEVASSOCRESPIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-392(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rax, %rcx
	callq	_wireless_send_event
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_USER_BAP,4,2                   ## @USER_BAP
	.comm	_HERMES_RID_CURRENT_ASSOC_RESP_INFO,4,2 ## @HERMES_RID_CURRENT_ASSOC_RESP_INFO
	.comm	_IWEVASSOCRESPIE,4,2            ## @IWEVASSOCRESPIE
	.no_dead_strip	_orinoco_send_assocrespie_wevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orinoco_send_assocrespie_wevent
_orinoco_send_assocrespie_wevent:       ; @orinoco_send_assocrespie_wevent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #416
	.cfi_def_cfa_offset 416
	stp	x22, x21, [sp, #368]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #384]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #400]            ; 16-byte Folded Spill
	add	x29, sp, #400
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x19, [x0, #16]
	ldr	x8, [x0, #8]!
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _USER_BAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USER_BAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _HERMES_RID_CURRENT_ASSOC_RESP_INFO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HERMES_RID_CURRENT_ASSOC_RESP_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	add	x5, sp, #8
	mov	w3, #352
	mov	x4, #0
	blr	x8
	cbz	w0, LBB0_4
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.3:
	ldp	x29, x30, [sp, #400]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #384]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #368]            ; 16-byte Folded Reload
	add	sp, sp, #416
	ret
LBB0_4:
	add	x21, sp, #8
	mov	w20, #352
	add	x0, sp, #8
	mov	w1, #352
	bl	_orinoco_get_wpa_ie
	cbz	x0, LBB0_2
; %bb.5:
	mov	x3, x0
	sub	x8, x0, x21
	lsr	x8, x8, #2
	ldr	w9, [x0, #4]
	add	w9, w9, #2
	sub	w8, w20, w8
	cmp	w9, w8
	csel	w8, w9, w8, lt
	str	w8, [sp]
	cbz	w8, LBB0_2
; %bb.6:
Lloh12:
	adrp	x8, _IWEVASSOCRESPIE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWEVASSOCRESPIE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_wireless_send_event
	b	LBB0_2
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_USER_BAP,4,2                   ; @USER_BAP
	.comm	_HERMES_RID_CURRENT_ASSOC_RESP_INFO,4,2 ; @HERMES_RID_CURRENT_ASSOC_RESP_INFO
	.comm	_IWEVASSOCRESPIE,4,2            ; @IWEVASSOCRESPIE
	.no_dead_strip	_orinoco_send_assocrespie_wevent
.subsections_via_symbols
