	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_mgd_wext_giwessid     ## -- Begin function cfg80211_mgd_wext_giwessid
	.p2align	4, 0x90
_cfg80211_mgd_wext_giwessid:            ## @cfg80211_mgd_wext_giwessid
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movl	$0, (%r15)
	movq	%rbx, %rdi
	callq	_wdev_lock
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	24(%rbx), %rdi
	movq	_WLAN_EID_SSID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ieee80211_bss_get_ie
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, (%r15)
	movq	8(%rax), %rdx
	movq	%rdx, 8(%r15)
	addq	$16, %rax
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_memcpy
LBB0_5:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_9
LBB0_6:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movl	$1, (%r15)
	movq	%rdx, 8(%r15)
	movq	%r14, %rdi
	callq	_memcpy
LBB0_9:
	movq	%rbx, %rdi
	callq	_wdev_unlock
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WLAN_EID_SSID,4,2              ## @WLAN_EID_SSID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_mgd_wext_giwessid     ; -- Begin function cfg80211_mgd_wext_giwessid
	.p2align	2
_cfg80211_mgd_wext_giwessid:            ; @cfg80211_mgd_wext_giwessid
	.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	x20, x3
	mov	x21, x2
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	str	wzr, [x21]
	mov	x0, x19
	bl	_wdev_lock
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.3:
	bl	_rcu_read_lock
	ldr	x0, [x19, #24]
Lloh6:
	adrp	x8, _WLAN_EID_SSID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_EID_SSID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ieee80211_bss_get_ie
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x21]
	ldr	x2, [x0, #8]
	str	x2, [x21, #8]
	add	x1, x0, #16
	mov	x0, x20
	bl	_memcpy
LBB0_5:
	bl	_rcu_read_unlock
	b	LBB0_9
LBB0_6:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_9
; %bb.7:
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x21]
	str	x2, [x21, #8]
	mov	x0, x20
	bl	_memcpy
LBB0_9:
	mov	x0, x19
	bl	_wdev_unlock
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WLAN_EID_SSID,4,2              ; @WLAN_EID_SSID
.subsections_via_symbols
