	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_change_vif_to_ap
_mwifiex_change_vif_to_ap:              ## @mwifiex_change_vif_to_ap
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_mwifiex_netdev_get_priv
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	movq	(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_12
LBB0_3:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	%r13, %rdi
	callq	_mwifiex_deinit_priv_params
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_mwifiex_init_new_priv_params
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	movq	_HostCmd_CMD_SET_BSS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mwifiex_sta_init_cmd
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	-129(%rcx), %eax
	cmpl	$2, %eax
	jb	LBB0_13
## %bb.8:
	cmpl	$128, %ecx
	je	LBB0_10
## %bb.9:
	cmpl	$131, %ecx
	jne	LBB0_11
LBB0_10:
	decl	8(%rbx)
	jmp	LBB0_11
LBB0_13:
	decl	12(%rbx)
LBB0_11:
	incq	(%rbx)
	movq	(%r12), %rax
	movl	%r14d, (%rax)
	xorl	%r15d, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot create multiple AP ifaces\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"%s: changing role to AP\n"

	.comm	_HostCmd_CMD_SET_BSS_MODE,4,2   ## @HostCmd_CMD_SET_BSS_MODE
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.no_dead_strip	_mwifiex_change_vif_to_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_change_vif_to_ap
_mwifiex_change_vif_to_ap:              ; @mwifiex_change_vif_to_ap
	.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, x2
	mov	x22, x1
	mov	x20, x0
	bl	_mwifiex_netdev_get_priv
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x0
	ldr	x21, [x0]
	ldr	x8, [x21]
	ldr	x9, [x21, #16]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x8, _INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
	mov	x0, x23
	bl	_mwifiex_deinit_priv_params
	cbnz	x0, LBB0_7
; %bb.4:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_mwifiex_init_new_priv_params
	cbnz	x0, LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _HostCmd_CMD_SET_BSS_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HostCmd_CMD_SET_BSS_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x23
	mov	w3, #0
	mov	x4, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	bl	_mwifiex_sta_init_cmd
	cbz	x0, LBB0_9
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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_9:
	sub	w8, w22, #129
	cmp	w8, #2
	b.lo	LBB0_13
; %bb.10:
	cmp	w22, #128
	b.eq	LBB0_12
; %bb.11:
	cmp	w22, #131
	b.ne	LBB0_14
LBB0_12:
	ldr	w8, [x21, #8]
	sub	w8, w8, #1
	str	w8, [x21, #8]
	b	LBB0_14
LBB0_13:
	ldr	w8, [x21, #12]
	sub	w8, w8, #1
	str	w8, [x21, #12]
LBB0_14:
	mov	w0, #0
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	ldr	x8, [x20]
	str	w19, [x8]
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot create multiple AP ifaces\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"%s: changing role to AP\n"

	.comm	_HostCmd_CMD_SET_BSS_MODE,4,2   ; @HostCmd_CMD_SET_BSS_MODE
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.no_dead_strip	_mwifiex_change_vif_to_ap
.subsections_via_symbols
