	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_remain_on_channel
_mwifiex_cfg80211_remain_on_channel:    ## @mwifiex_cfg80211_remain_on_channel
	.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	%r8, %r14
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movl	(%rsi), %edi
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %r12
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	movl	4(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.3:
	movl	(%r12), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movl	(%r12), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_mwifiex_remain_on_chan_cfg
	movl	%ebx, %ecx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_prandom_u32
	orl	$1, %eax
	movl	%eax, (%r14)
	movl	%eax, 4(%r12)
	movl	(%r13), %eax
	movl	%eax, 8(%r12)
	movl	(%r14), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_cfg80211_ready_on_channel
	movl	(%r12), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid parameter for ROC\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"info: ongoing ROC, cookie = 0x%llx\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"info: ROC, cookie = 0x%llx\n"

	.no_dead_strip	_mwifiex_cfg80211_remain_on_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_remain_on_channel
_mwifiex_cfg80211_remain_on_channel:    ; @mwifiex_cfg80211_remain_on_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	ldr	w0, [x1]
	bl	_mwifiex_netdev_get_priv
	mov	x21, x0
	cbz	x22, LBB0_4
; %bb.1:
	cbz	x19, LBB0_4
; %bb.2:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w0, [x21]
Lloh0:
	adrp	x9, _INFO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh14:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x20
	bl	_mwifiex_remain_on_chan_cfg
	cbnz	w0, LBB0_6
; %bb.8:
	bl	_prandom_u32
	orr	w8, w0, #0x1
	str	w8, [x19]
	str	w8, [x21, #4]
	ldr	w8, [x22]
	str	w8, [x21, #8]
	ldr	w1, [x19]
Lloh17:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x20
	bl	_cfg80211_ready_on_channel
	ldr	w0, [x21]
Lloh20:
	adrp	x8, _INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_mwifiex_dbg
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid parameter for ROC\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"info: ongoing ROC, cookie = 0x%llx\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"info: ROC, cookie = 0x%llx\n"

	.no_dead_strip	_mwifiex_cfg80211_remain_on_channel
.subsections_via_symbols
