	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsi_mac80211_hw_scan_start
_rsi_mac80211_hw_scan_start:            ## @rsi_mac80211_hw_scan_start
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_INFO_ZONE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_rsi_dbg
	movl	$0, (%rbx)
	movq	8(%rbx), %rax
	movq	_FSM_MAC_INIT_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_RSI_WOW_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.6:
	cmpl	$0, 20(%rbx)
	je	LBB0_8
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_8:
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.10:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r15, 32(%rbx)
	movq	_RSI_START_BGSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rsi_send_bgscan_params
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rsi_send_bgscan_probe_req
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_rsi_dbg
	movl	$1, 20(%rbx)
LBB0_13:
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_9:
	movl	$1, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO_ZONE,4,2                  ## @INFO_ZONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"***** Hardware scan start *****\n"

	.comm	_FSM_MAC_INIT_DONE,8,3          ## @FSM_MAC_INIT_DONE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_RSI_WOW_ENABLED,4,2            ## @RSI_WOW_ENABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RSI_START_BGSCAN,4,2           ## @RSI_START_BGSCAN
L_.str.1:                               ## @.str.1
	.asciz	"Background scan started...\n"

	.no_dead_strip	_rsi_mac80211_hw_scan_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsi_mac80211_hw_scan_start
_rsi_mac80211_hw_scan_start:            ; @rsi_mac80211_hw_scan_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x23, _INFO_ZONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INFO_ZONE@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rsi_dbg
	str	wzr, [x19]
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _FSM_MAC_INIT_DONE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FSM_MAC_INIT_DONE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #16]
Lloh7:
	adrp	x9, _RSI_WOW_ENABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RSI_WOW_ENABLED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_2:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.7:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
	ldr	w8, [x20]
	cbz	w8, LBB0_14
; %bb.10:
	add	x22, x19, #24
	mov	x0, x22
	bl	_mutex_lock
	str	x21, [x19, #32]
Lloh16:
	adrp	x8, _RSI_START_BGSCAN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RSI_START_BGSCAN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rsi_send_bgscan_params
	cbnz	w0, LBB0_13
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_rsi_send_bgscan_probe_req
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w0, [x23]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rsi_dbg
	mov	w8, #1
	str	w8, [x19, #20]
LBB0_13:
	mov	x0, x22
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_5
LBB0_14:
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO_ZONE,4,2                  ; @INFO_ZONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"***** Hardware scan start *****\n"

	.comm	_FSM_MAC_INIT_DONE,8,3          ; @FSM_MAC_INIT_DONE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_RSI_WOW_ENABLED,4,2            ; @RSI_WOW_ENABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RSI_START_BGSCAN,4,2           ; @RSI_START_BGSCAN
l_.str.1:                               ; @.str.1
	.asciz	"Background scan started...\n"

	.no_dead_strip	_rsi_mac80211_hw_scan_start
.subsections_via_symbols
