	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlan_config_set_bssid
_wlan_config_set_bssid:                 ## @wlan_config_set_bssid
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -40(%rbp)
	movl	4(%rdi), %edi
	movq	_IEEE80211_IOC_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	leaq	-40(%rbp), %r8
	movq	%r14, %rcx
	movl	$1, %r9d
	callq	_wlan_ioctl
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	js	LBB0_3
## %bb.1:
	movq	-40(%rbp), %rdx
	cmpq	(%r15), %rdx
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_memcpy
	xorl	%eax, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ADDR_LEN,8,3         ## @IEEE80211_ADDR_LEN
	.comm	_IEEE80211_IOC_BSSID,4,2        ## @IEEE80211_IOC_BSSID
	.no_dead_strip	_wlan_config_set_bssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlan_config_set_bssid
_wlan_config_set_bssid:                 ; @wlan_config_set_bssid
	.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, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x21, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [sp]
	ldr	w0, [x0, #4]
Lloh2:
	adrp	x8, _IEEE80211_IOC_BSSID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_IOC_BSSID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x4, sp
	mov	x3, x19
	mov	w5, #1
	bl	_wlan_ioctl
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x2, [sp]
	ldr	x8, [x21]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ADDR_LEN,8,3         ; @IEEE80211_ADDR_LEN
	.comm	_IEEE80211_IOC_BSSID,4,2        ; @IEEE80211_IOC_BSSID
	.no_dead_strip	_wlan_config_set_bssid
.subsections_via_symbols
