	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_driver_ndis_add_scan_ssid
_wpa_driver_ndis_add_scan_ssid:         ## @wpa_driver_ndis_add_scan_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_WLAN_EID_SSID@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_wpa_scan_get_ie
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_SSID_MAX_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_5
## %bb.3:
	movl	(%rbx), %ecx
	leal	(%rax,%rcx), %esi
	addl	$6, %esi
	movq	%rbx, %rdi
	callq	_os_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	movslq	(%rax), %rax
	movl	(%r12), %ecx
	movl	%ecx, 4(%r15,%rax,4)
	movl	(%r14), %ecx
	leaq	12(%r15,%rax,4), %rdi
	movl	%ecx, 8(%r15,%rax,4)
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_os_memcpy
	movl	(%r14), %eax
	movl	(%r15), %ecx
	addl	%ecx, %eax
	addl	$2, %eax
	movl	%eax, (%r15)
	movq	%r15, %rbx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_SSID,4,2              ## @WLAN_EID_SSID
	.comm	_SSID_MAX_LEN,4,2               ## @SSID_MAX_LEN
	.no_dead_strip	_wpa_driver_ndis_add_scan_ssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_driver_ndis_add_scan_ssid
_wpa_driver_ndis_add_scan_ssid:         ; @wpa_driver_ndis_add_scan_ssid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _WLAN_EID_SSID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WLAN_EID_SSID@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_wpa_scan_get_ie
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _SSID_MAX_LEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SSID_MAX_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w8, w9, #0, ne
	b.gt	LBB0_4
; %bb.2:
	ldr	w9, [x20]
	add	w8, w8, w9
	add	w1, w8, #6
	mov	x0, x20
	bl	_os_realloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldrsw	x8, [x0]
	add	x8, x0, x8, lsl #2
	ldr	w9, [x22]
	str	w9, [x8, #4]
	ldr	w9, [x19]
	add	x0, x8, #12
	str	w9, [x8, #8]
	ldp	w2, w1, [x19]
	bl	_os_memcpy
	ldr	w8, [x19]
	ldr	w9, [x21]
	add	w8, w8, w9
	add	w8, w8, #2
	str	w8, [x21]
	mov	x20, x21
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_SSID,4,2              ; @WLAN_EID_SSID
	.comm	_SSID_MAX_LEN,4,2               ; @SSID_MAX_LEN
	.no_dead_strip	_wpa_driver_ndis_add_scan_ssid
.subsections_via_symbols
