	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_scan_get_vendor_ie_multi   ## -- Begin function wpa_scan_get_vendor_ie_multi
	.p2align	4, 0x90
_wpa_scan_get_vendor_ie_multi:          ## @wpa_scan_get_vendor_ie_multi
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movslq	(%rbx), %rax
	cmpq	$2, %rax
	jl	LBB0_9
## %bb.2:
	leaq	(%rbx,%rax,4), %r12
	addq	$4, %r12
	addq	$4, %rbx
	shlq	$2, %rax
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	4(%rbx), %rax
	leaq	(%rbx,%rax,4), %rbx
	addq	$8, %rbx
	movq	%r12, %rax
	subq	%rbx, %rax
	cmpq	$4, %rax
	jle	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	shrq	$2, %rax
	movslq	4(%rbx), %rcx
	leaq	2(%rcx), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	cmpl	(%r13), %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$4, %ecx
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	8(%rbx), %rdi
	callq	_WPA_GET_BE32
	cmpq	%r14, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	24(%rbx), %rsi
	movl	4(%rbx), %edx
	addl	$-4, %edx
	movq	%r15, %rdi
	callq	_wpabuf_put_data
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_wpabuf_len
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_wpabuf_free
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_scan_get_vendor_ie_multi   ; -- Begin function wpa_scan_get_vendor_ie_multi
	.p2align	2
_wpa_scan_get_vendor_ie_multi:          ; @wpa_scan_get_vendor_ie_multi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_wpabuf_alloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	ldrsw	x9, [x21], #4
	cmp	w9, #2
	b.lt	LBB0_8
; %bb.2:
	lsl	x8, x9, #2
Lloh0:
	adrp	x22, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
	add	x23, x21, x9, lsl #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x21, #4]
	add	x8, x21, x8, lsl #2
	add	x21, x8, #8
	sub	x8, x23, x21
	cmp	x8, #4
	b.le	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x21, #4]
	add	x10, x9, #2
	cmp	x10, x8, lsr #2
	b.gt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	ldr	w10, [x22]
	cmp	w8, w10
	ccmp	w9, #4, #8, eq
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x21, #8
	bl	_WPA_GET_BE32
	cmp	x0, x20
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x21, #24
	ldr	w8, [x21, #4]
	sub	w2, w8, #4
	mov	x0, x19
	bl	_wpabuf_put_data
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	bl	_wpabuf_len
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_wpabuf_free
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
.subsections_via_symbols
