	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_giwessid
_prism2_ioctl_giwessid:                 ## @prism2_ioctl_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	(%rax), %rcx
	movq	_HOSTAP_INTERFACE_WDS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	8(%rax), %r15
	movl	$1, (%rbx)
	movq	(%r15), %rax
	movq	_IW_MODE_MASTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	8(%r15), %rdi
	callq	_strlen
	movl	%eax, 4(%rbx)
	movq	8(%r15), %rsi
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_SSID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addl	$2, %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	_MAX_SSID_LEN@GOTPCREL(%rip), %r14
	callq	_memset
	movq	16(%r15), %rax
	movq	_HFA384X_RID_CURRENTSSID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %ecx
	addl	$2, %ecx
	movq	%r13, %rdi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	callq	*(%rax)
	movl	%eax, %r13d
	movl	(%r12), %edi
	callq	_le16_to_cpu
	testl	%r13d, %r13d
	js	LBB0_8
## %bb.5:
	movl	(%r14), %ecx
	leal	2(%rcx), %edx
	cmpl	%edx, %r13d
	jg	LBB0_8
## %bb.6:
	cmpl	%ecx, %eax
	jg	LBB0_8
## %bb.7:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	addq	$2, %r12
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAP_INTERFACE_WDS,8,3       ## @HOSTAP_INTERFACE_WDS
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IW_MODE_MASTER,8,3             ## @IW_MODE_MASTER
	.comm	_IW_ESSID_MAX_SIZE,4,2          ## @IW_ESSID_MAX_SIZE
	.comm	_MAX_SSID_LEN,4,2               ## @MAX_SSID_LEN
	.comm	_HFA384X_RID_CURRENTSSID,4,2    ## @HFA384X_RID_CURRENTSSID
	.no_dead_strip	_prism2_ioctl_giwessid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_ioctl_giwessid
_prism2_ioctl_giwessid:                 ; @prism2_ioctl_giwessid
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _HOSTAP_INTERFACE_WDS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HOSTAP_INTERFACE_WDS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	ldr	x25, [x0, #8]
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x25]
Lloh9:
	adrp	x9, _IW_MODE_MASTER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IW_MODE_MASTER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x25, #8]
	bl	_strlen
	str	w0, [x20, #4]
	ldr	x1, [x25, #8]
Lloh12:
	adrp	x8, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	mov	x23, sp
Lloh15:
	adrp	x24, _MAX_SSID_LEN@GOTPAGE
Lloh16:
	ldr	x24, [x24, _MAX_SSID_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w2, w8, #2
	mov	x9, x2
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	mov	x0, x22
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
	ldr	x8, [x25, #16]
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _HFA384X_RID_CURRENTSSID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _HFA384X_RID_CURRENTSSID@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
	ldr	w9, [x24]
	add	w3, w9, #2
	mov	x0, x21
	mov	x2, x22
	mov	w4, #0
	blr	x8
	mov	x21, x0
	ldr	w0, [x22]
	bl	_le16_to_cpu
	tbnz	w21, #31, LBB0_7
; %bb.5:
	ldr	w8, [x24]
	add	w9, w8, #2
	cmp	w21, w9
	ccmp	w0, w8, #0, le
	b.gt	LBB0_7
; %bb.6:
	str	w0, [x20, #4]
	add	x1, x22, #2
Lloh22:
	adrp	x8, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_memcpy
	mov	sp, x23
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	mov	sp, x23
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAP_INTERFACE_WDS,8,3       ; @HOSTAP_INTERFACE_WDS
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IW_MODE_MASTER,8,3             ; @IW_MODE_MASTER
	.comm	_IW_ESSID_MAX_SIZE,4,2          ; @IW_ESSID_MAX_SIZE
	.comm	_MAX_SSID_LEN,4,2               ; @MAX_SSID_LEN
	.comm	_HFA384X_RID_CURRENTSSID,4,2    ; @HFA384X_RID_CURRENTSSID
	.no_dead_strip	_prism2_ioctl_giwessid
.subsections_via_symbols
