	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_set_scan_config           ## -- Begin function wlan_set_scan_config
	.p2align	4, 0x90
_wlan_set_scan_config:                  ## @wlan_set_scan_config
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	leaq	-56(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	$24, -64(%rbp)
	movl	20(%rbx), %edi
	callq	_wlan_snmp_to_scan_flags
	movq	_IEEE80211_IOC_SCAN_BGSCAN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -36(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	4(%rbx), %edi
	movq	_IEEE80211_IOC_SCAN_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	leaq	-64(%rbp), %r8
	movq	%r15, %rcx
	movl	$1, %r9d
	callq	_wlan_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_wlanScanConfigStatus_running@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_IOC_SCAN_BGSCAN,4,2  ## @IEEE80211_IOC_SCAN_BGSCAN
	.comm	_IEEE80211_IOC_SCAN_REQ,4,2     ## @IEEE80211_IOC_SCAN_REQ
	.comm	_wlanScanConfigStatus_running,4,2 ## @wlanScanConfigStatus_running
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_set_scan_config           ; -- Begin function wlan_set_scan_config
	.p2align	2
_wlan_set_scan_config:                  ; @wlan_set_scan_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	stur	wzr, [x29, #-20]
	mov	w20, #24
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x20, [sp, #32]
	ldr	w0, [x19, #20]
	bl	_wlan_snmp_to_scan_flags
Lloh0:
	adrp	x8, _IEEE80211_IOC_SCAN_BGSCAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_IOC_SCAN_BGSCAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w9, [x19, #16]
	stp	w9, w8, [sp, #24]
	ldr	d0, [x19, #8]
	str	d0, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _IEEE80211_IOC_SCAN_REQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_IOC_SCAN_REQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	x2, x29, #20
	add	x3, sp, #8
	add	x4, sp, #32
	mov	w5, #1
	bl	_wlan_ioctl
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #0
Lloh6:
	adrp	x8, _wlanScanConfigStatus_running@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wlanScanConfigStatus_running@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_IOC_SCAN_BGSCAN,4,2  ; @IEEE80211_IOC_SCAN_BGSCAN
	.comm	_IEEE80211_IOC_SCAN_REQ,4,2     ; @IEEE80211_IOC_SCAN_REQ
	.comm	_wlanScanConfigStatus_running,4,2 ; @wlanScanConfigStatus_running
.subsections_via_symbols
