	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_ssid
_wlc_ssid:                              ## @wlc_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PARAM_MODE@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	%rdx, %rbx
	movq	_GET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_4
## %bb.1:
	movq	_interface@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_vif@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movl	$16, %r8d
	callq	_wl_bssiovar_get
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	movq	_WLC_GET_SSID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	$16, %ecx
	callq	_wl_ioctl
	testl	%eax, %eax
	jne	LBB0_8
LBB0_3:
	movl	-40(%rbp), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	-48(%rbp), %rax
	movb	$0, (%rbx,%rax)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_SET@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	(%rcx), %edi
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_strncpy
	movq	%rbx, %rdi
	callq	_strlen
	cmpq	$32, %rax
	movl	$32, %ecx
	cmovbq	%rax, %rcx
	movq	%rcx, -48(%rbp)
	movq	_vif@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	_interface@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movl	$16, %r8d
	callq	_wl_bssiovar_set
	jmp	LBB0_8
LBB0_7:
	movq	_WLC_SET_SSID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdx
	movl	$16, %ecx
	callq	_wl_ioctl
	movl	%eax, %ebx
	movl	(%r12), %edi
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	movl	$16, %r8d
	callq	_wl_bssiovar_set
	testl	%ebx, %ebx
	cmovel	%ebx, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARAM_MODE,4,2                 ## @PARAM_MODE
	.comm	_GET,4,2                        ## @GET
	.comm	_interface,4,2                  ## @interface
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ssid"

	.comm	_vif,8,3                        ## @vif
	.comm	_WLC_GET_SSID,4,2               ## @WLC_GET_SSID
	.comm	_SET,4,2                        ## @SET
	.comm	_WLC_SET_SSID,4,2               ## @WLC_SET_SSID
	.no_dead_strip	_wlc_ssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_ssid
_wlc_ssid:                              ; @wlc_ssid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
Lloh0:
	adrp	x8, _PARAM_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARAM_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x20, _interface@GOTPAGE
Lloh7:
	ldr	x20, [x20, _interface@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _vif@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vif@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, sp
	mov	w4, #16
	bl	_wl_bssiovar_get
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh13:
	adrp	x8, _WLC_GET_SSID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WLC_GET_SSID@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #16
	bl	_wl_ioctl
	cbnz	w0, LBB0_9
LBB0_3:
	ldr	w1, [sp, #8]
	ldr	x2, [sp]
	mov	x0, x19
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [sp]
	strb	wzr, [x19, x8]
	b	LBB0_9
LBB0_4:
Lloh16:
	adrp	x9, _SET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SET@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
	mov	w20, #32
	mov	x1, x19
	mov	w2, #32
	bl	_strncpy
	mov	x0, x19
	bl	_strlen
	cmp	x0, #32
	csel	x8, x0, x20, lo
	str	x8, [sp]
Lloh19:
	adrp	x20, _vif@GOTPAGE
Lloh20:
	ldr	x20, [x20, _vif@GOTPAGEOFF]
	ldr	x2, [x20]
Lloh21:
	adrp	x21, _interface@GOTPAGE
Lloh22:
	ldr	x21, [x21, _interface@GOTPAGEOFF]
	ldr	w0, [x21]
	cbz	x2, LBB0_8
; %bb.6:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, sp
	mov	w4, #16
	bl	_wl_bssiovar_set
	b	LBB0_9
LBB0_7:
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
Lloh25:
	adrp	x8, _WLC_SET_SSID@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WLC_SET_SSID@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #16
	bl	_wl_ioctl
	mov	x19, x0
	ldr	w0, [x21]
	ldr	x2, [x20]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, sp
	mov	w4, #16
	bl	_wl_bssiovar_set
	cmp	w19, #0
	csel	w0, wzr, w0, eq
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PARAM_MODE,4,2                 ; @PARAM_MODE
	.comm	_GET,4,2                        ; @GET
	.comm	_interface,4,2                  ; @interface
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ssid"

	.comm	_vif,8,3                        ; @vif
	.comm	_WLC_GET_SSID,4,2               ; @WLC_GET_SSID
	.comm	_SET,4,2                        ; @SET
	.comm	_WLC_SET_SSID,4,2               ; @WLC_SET_SSID
	.no_dead_strip	_wlc_ssid
.subsections_via_symbols
