	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_remain_on_chan_cfg     ## -- Begin function mwifiex_remain_on_chan_cfg
	.p2align	4, 0x90
_mwifiex_remain_on_chan_cfg:            ## @mwifiex_remain_on_chan_cfg
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_cpu_to_le16
	movl	%eax, -40(%rbp)
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)
	movq	_NL80211_CHAN_NO_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mwifiex_chan_type_to_sec_chan_offset
	shll	$2, %eax
	orl	%eax, -56(%rbp)
	movl	4(%r12), %edi
	callq	_ieee80211_frequency_to_channel
	movl	%eax, -44(%rbp)
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
LBB0_2:
	movq	_HostCmd_CMD_REMAIN_ON_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_4:
	movl	-52(%rbp), %eax
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HostCmd_ACT_GEN_SET,8,3        ## @HostCmd_ACT_GEN_SET
	.comm	_NL80211_CHAN_NO_HT,4,2         ## @NL80211_CHAN_NO_HT
	.comm	_HostCmd_CMD_REMAIN_ON_CHAN,4,2 ## @HostCmd_CMD_REMAIN_ON_CHAN
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to remain on channel\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_remain_on_chan_cfg     ; -- Begin function mwifiex_remain_on_chan_cfg
	.p2align	2
_mwifiex_remain_on_chan_cfg:            ; @mwifiex_remain_on_chan_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	mov	x0, x20
	bl	_cpu_to_le16
	str	w0, [sp, #24]
Lloh0:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _NL80211_CHAN_NO_HT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_CHAN_NO_HT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_mwifiex_chan_type_to_sec_chan_offset
	ldr	w8, [sp, #8]
	orr	w8, w8, w0, lsl #2
	str	w8, [sp, #8]
	ldr	w0, [x22, #4]
	bl	_ieee80211_frequency_to_channel
	str	w0, [sp, #20]
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [sp, #16]
LBB0_2:
Lloh6:
	adrp	x8, _HostCmd_CMD_REMAIN_ON_CHAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HostCmd_CMD_REMAIN_ON_CHAN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	ldr	w0, [sp, #12]
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HostCmd_ACT_GEN_SET,8,3        ; @HostCmd_ACT_GEN_SET
	.comm	_NL80211_CHAN_NO_HT,4,2         ; @NL80211_CHAN_NO_HT
	.comm	_HostCmd_CMD_REMAIN_ON_CHAN,4,2 ; @HostCmd_CMD_REMAIN_ON_CHAN
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to remain on channel\n"

.subsections_via_symbols
