	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_start_ap
_mwifiex_cfg80211_start_ap:             ## @mwifiex_cfg80211_start_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
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_GET_BSS_ROLE
	movq	_MWIFIEX_BSS_ROLE_UAP@GOTPCREL(%rip), %rcx
	movl	$-1, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_37
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mwifiex_set_sys_config_invalid_data
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, 40(%r12)
LBB0_6:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, 32(%r12)
LBB0_8:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_11
## %bb.10:
	movq	24(%r12), %rdi
	callq	_memcpy
	movl	(%rbx), %eax
	movl	%eax, 16(%r12)
LBB0_11:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.12:
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%r12)
	movl	%eax, 4(%r12)
LBB0_13:
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_14
## %bb.15:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	cltq
	leaq	l_switch.table.mwifiex_cfg80211_start_ap(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 8(%r12)
	movl	16(%rbx), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mwifiex_uap_set_channel
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mwifiex_set_uap_rates
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mwifiex_set_secure_params
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	addq	$8, %r15
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_17
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_14:
	movq	%r12, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_37
LBB0_19:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mwifiex_set_ht_params
	movq	8(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mwifiex_set_vht_params
	movl	16(%rbx), %esi
	movq	32(%r13), %rdx
	movq	%r13, %rdi
	callq	_mwifiex_set_vht_width
LBB0_21:
	cmpq	$0, 32(%r13)
	je	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	callq	_mwifiex_set_11ac_ba_params
	jmp	LBB0_24
LBB0_23:
	movq	%r13, %rdi
	callq	_mwifiex_set_ba_params
LBB0_24:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mwifiex_set_wmm_params
	movq	%r13, %rdi
	callq	_mwifiex_is_11h_active
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mwifiex_set_tpc_params
LBB0_26:
	addq	$8, %r15
	movq	%r13, %rdi
	callq	_mwifiex_is_11h_active
	testq	%rax, %rax
	je	LBB0_31
## %bb.27:
	leaq	16(%rbx), %rsi
	movl	24(%r13), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cfg80211_chandef_dfs_required
	testl	%eax, %eax
	je	LBB0_28
LBB0_31:
	addq	$12, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mwifiex_config_uap_11d
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mwifiex_config_start_uap
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_17
LBB0_33:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mwifiex_set_mgmt_ies
	testq	%rax, %rax
	jne	LBB0_18
## %bb.34:
	movl	16(%r13), %edi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	jne	LBB0_36
## %bb.35:
	movl	16(%r13), %edi
	callq	_netif_carrier_on
LBB0_36:
	movl	16(%r13), %edi
	movq	8(%r13), %rsi
	callq	_mwifiex_wake_up_net_dev_queue
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_kfree
	xorl	%r14d, %r14d
	jmp	LBB0_37
LBB0_28:
	movq	8(%r13), %rdi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_mwifiex_dbg
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mwifiex_11h_activate
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	leaq	L_.str.2(%rip), %rdx
LBB0_17:
	movq	(%r15), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mwifiex_dbg
LBB0_18:
	movq	%r12, %rdi
	callq	_kfree
LBB0_37:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movl	$0, 20(%r13)
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ## @MWIFIEX_BSS_ROLE_UAP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse security parameters!\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"Disable 11h extensions in FW\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to disable 11h extensions!!"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to start AP\n"

	.no_dead_strip	_mwifiex_cfg80211_start_ap
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.mwifiex_cfg80211_start_ap
l_switch.table.mwifiex_cfg80211_start_ap:
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_start_ap
_mwifiex_cfg80211_start_ap:             ; @mwifiex_cfg80211_start_ap
	.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	x22, x0
	mov	x0, x1
	bl	_mwifiex_netdev_get_priv
	mov	x20, x0
	bl	_GET_BSS_ROLE
Lloh0:
	adrp	x8, _MWIFIEX_BSS_ROLE_UAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_BSS_ROLE_UAP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_36
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.2:
	mov	x19, x0
	bl	_mwifiex_set_sys_config_invalid_data
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_4
; %bb.3:
	str	x8, [x19, #40]
LBB0_4:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_6
; %bb.5:
	str	x8, [x19, #32]
LBB0_6:
	ldr	x1, [x21, #24]
	cbz	x1, LBB0_9
; %bb.7:
	ldr	w2, [x21]
	cbz	w2, LBB0_9
; %bb.8:
	ldr	x0, [x19, #24]
	bl	_memcpy
	ldr	w8, [x21]
	str	w8, [x19, #16]
LBB0_9:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.10:
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	stp	w8, w8, [x19]
LBB0_11:
	ldr	w8, [x21, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_15
; %bb.12:
Lloh6:
	adrp	x9, l_switch.table.mwifiex_cfg80211_start_ap@PAGE
Lloh7:
	add	x9, x9, l_switch.table.mwifiex_cfg80211_start_ap@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	str	w8, [x19, #8]
	mov	x23, x21
	ldr	w2, [x23, #16]!
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_uap_set_channel
	mov	x0, x19
	mov	x1, x21
	bl	_mwifiex_set_uap_rates
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mwifiex_set_secure_params
	cbz	x0, LBB0_17
; %bb.13:
	add	x24, x20, #8
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_34
LBB0_14:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_kfree
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_37
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mwifiex_set_ht_params
	mov	x24, x20
	ldr	x8, [x24, #8]!
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mwifiex_set_vht_params
	ldr	w1, [x21, #16]
	ldr	x2, [x20, #32]
	mov	x0, x20
	bl	_mwifiex_set_vht_width
LBB0_19:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_mwifiex_set_11ac_ba_params
	b	LBB0_22
LBB0_21:
	mov	x0, x20
	bl	_mwifiex_set_ba_params
LBB0_22:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mwifiex_set_wmm_params
	mov	x0, x20
	bl	_mwifiex_is_11h_active
	cbz	x0, LBB0_24
; %bb.23:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mwifiex_set_tpc_params
LBB0_24:
	mov	x0, x20
	bl	_mwifiex_is_11h_active
	cbz	x0, LBB0_26
; %bb.25:
	ldr	w2, [x20, #24]
	mov	x0, x22
	mov	x1, x23
	bl	_cfg80211_chandef_dfs_required
	cbz	w0, LBB0_32
LBB0_26:
	add	x21, x21, #12
	mov	x0, x20
	mov	x1, x21
	bl	_mwifiex_config_uap_11d
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_config_start_uap
	cbz	x0, LBB0_28
; %bb.27:
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_34
LBB0_28:
	mov	x0, x20
	mov	x1, x21
	bl	_mwifiex_set_mgmt_ies
	cbnz	x0, LBB0_35
; %bb.29:
	ldr	w0, [x20, #16]
	bl	_netif_carrier_ok
	cbnz	w0, LBB0_31
; %bb.30:
	ldr	w0, [x20, #16]
	bl	_netif_carrier_on
LBB0_31:
	ldr	w0, [x20, #16]
	ldr	x1, [x20, #8]
	bl	_mwifiex_wake_up_net_dev_queue
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	b	LBB0_37
LBB0_32:
	ldr	x0, [x20, #8]
Lloh16:
	adrp	x8, _INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	mov	x0, x20
	mov	w1, #0
	bl	_mwifiex_11h_activate
	cbz	x0, LBB0_38
; %bb.33:
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_34:
	ldr	x0, [x24]
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_mwifiex_dbg
LBB0_35:
	mov	x0, x19
	bl	_kfree
LBB0_36:
	mov	w0, #-1
LBB0_37:
	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_38:
	str	wzr, [x20, #20]
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ; @MWIFIEX_BSS_ROLE_UAP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse security parameters!\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"Disable 11h extensions in FW\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to disable 11h extensions!!"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to start AP\n"

	.no_dead_strip	_mwifiex_cfg80211_start_ap
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.mwifiex_cfg80211_start_ap
l_switch.table.mwifiex_cfg80211_start_ap:
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	1                               ; 0x1

.subsections_via_symbols
