	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_ssid_set
_wl1271_ssid_set:                       ## @wl1271_ssid_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_WLAN_EID_SSID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%edx, %rcx
	movq	8(%rsi), %rax
	addq	%rcx, %rax
	movq	(%rsi), %rdx
	subq	%rcx, %rdx
	movq	%rax, %rsi
	callq	_cfg80211_find_ie
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	8(%rax), %rdx
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_error
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_error
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	%rdx, 8(%rbx)
	movl	(%rbx), %edi
	addq	$16, %rax
	movq	%rax, %rsi
	callq	_memcpy
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_SSID,4,2              ## @WLAN_EID_SSID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No SSID in IEs!"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ## @IEEE80211_MAX_SSID_LEN
L_.str.1:                               ## @.str.1
	.asciz	"SSID is too long!"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wl1271_ssid_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_ssid_set
_wl1271_ssid_set:                       ; @wl1271_ssid_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x0
Lloh0:
	adrp	x8, _WLAN_EID_SSID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_SSID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sxtw	x8, w2
	ldp	x10, x9, [x1]
	add	x1, x9, x8
	sub	x2, x10, x8
	bl	_cfg80211_find_ie
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x2, [x0, #8]
Lloh3:
	adrp	x8, _IEEE80211_MAX_SSID_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_MAX_SSID_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_5
; %bb.2:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_error
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_error
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	str	x2, [x19, #8]
	ldr	w8, [x19]
	add	x1, x0, #16
	mov	x0, x8
	bl	_memcpy
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_SSID,4,2              ; @WLAN_EID_SSID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No SSID in IEs!"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ; @IEEE80211_MAX_SSID_LEN
l_.str.1:                               ; @.str.1
	.asciz	"SSID is too long!"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wl1271_ssid_set
.subsections_via_symbols
