	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_config_set_dssid          ## -- Begin function wlan_config_set_dssid
	.p2align	4, 0x90
_wlan_config_set_dssid:                 ## @wlan_config_set_dssid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	movslq	%edx, %rax
	movq	%rax, -24(%rbp)
	movl	16(%rdi), %edi
	movq	(%rbx), %rax
	movq	_WlanIfaceOperatingModeType_meshPoint@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_IEEE80211_IOC_MESH_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IEEE80211_IOC_SSID@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	leaq	-24(%rbp), %r8
	movq	%r14, %rcx
	movl	$1, %r9d
	callq	_wlan_ioctl
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	-24(%rbp), %rdx
	movq	_IEEE80211_NWID_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jbe	LBB0_7
## %bb.6:
	movq	%rax, -24(%rbp)
	movq	%rax, %rdx
LBB0_7:
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movq	8(%rbx), %rax
	movq	-24(%rbp), %rcx
	movb	$0, (%rax,%rcx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	$-1, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WlanIfaceOperatingModeType_meshPoint,8,3 ## @WlanIfaceOperatingModeType_meshPoint
	.comm	_IEEE80211_IOC_MESH_ID,4,2      ## @IEEE80211_IOC_MESH_ID
	.comm	_IEEE80211_IOC_SSID,4,2         ## @IEEE80211_IOC_SSID
	.comm	_IEEE80211_NWID_LEN,8,3         ## @IEEE80211_NWID_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_config_set_dssid          ; -- Begin function wlan_config_set_dssid
	.p2align	2
_wlan_config_set_dssid:                 ; @wlan_config_set_dssid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	sxtw	x8, w2
	str	x8, [sp]
	ldr	w0, [x0, #16]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _WlanIfaceOperatingModeType_meshPoint@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WlanIfaceOperatingModeType_meshPoint@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IEEE80211_IOC_MESH_ID@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IEEE80211_IOC_MESH_ID@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _IEEE80211_IOC_SSID@GOTPAGE
Lloh6:
	ldr	x11, [x11, _IEEE80211_IOC_SSID@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x4, sp
	mov	x3, x20
	mov	w5, #1
	bl	_wlan_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x2, [sp]
Lloh7:
	adrp	x8, _IEEE80211_NWID_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE80211_NWID_LEN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ls	LBB0_3
; %bb.2:
	str	x8, [sp]
	mov	x2, x8
LBB0_3:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x19, #8]
	ldr	x9, [sp]
	strb	wzr, [x8, x9]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WlanIfaceOperatingModeType_meshPoint,8,3 ; @WlanIfaceOperatingModeType_meshPoint
	.comm	_IEEE80211_IOC_MESH_ID,4,2      ; @IEEE80211_IOC_MESH_ID
	.comm	_IEEE80211_IOC_SSID,4,2         ; @IEEE80211_IOC_SSID
	.comm	_IEEE80211_NWID_LEN,8,3         ; @IEEE80211_NWID_LEN
.subsections_via_symbols
