	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_start_ap_ibss
_iwl_mvm_start_ap_ibss:                 ## @iwl_mvm_start_ap_ibss
	.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	%rsi, %r14
	movq	%rdi, %r12
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_mac_ctxt_beacon_changed
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.1:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_mac_ctxt_recalc_tsf_id
LBB0_3:
	movq	$0, 16(%r15)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_mac_ctxt_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.4:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_binding_add_vif
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	16(%r13), %rdi
	movq	_IWL_UCODE_TLV_API_STA_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	movq	%r13, %rdi
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	callq	_iwl_mvm_add_mcast_sta
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_send_add_bcast_sta
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_9:
	callq	_iwl_mvm_send_add_bcast_sta
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_add_mcast_sta
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_send_rm_bcast_sta
	jmp	LBB0_12
LBB0_14:
	movl	$1, (%r15)
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_23
## %bb.15:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r15
	jge	LBB0_23
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	(%rdi,%r15,8), %r8
	testq	%r8, %r8
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	$0, (%rdi,%r15,8)
	movq	_SET_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	___iwl_mvm_mac_set_key
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	movl	%eax, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_23:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_26
## %bb.24:
	cmpq	$0, 8(%r14)
	jne	LBB0_26
## %bb.25:
	movq	_LOW_LATENCY_VIF_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_iwl_mvm_vif_set_low_latency
	movl	4(%r15), %edx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_iwl_mvm_send_low_latency_cmd
LBB0_26:
	movq	%r13, %rdi
	callq	_iwl_mvm_power_update_mac
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_iwl_mvm_update_quotas
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_27
LBB0_19:
	movq	%r13, %rdi
	callq	_iwl_mvm_power_update_mac
	movl	$0, (%r15)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_send_rm_bcast_sta
LBB0_20:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_rm_mcast_sta
LBB0_12:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_binding_remove_vif
LBB0_13:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_mac_ctxt_remove
LBB0_33:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	cmpq	$0, 8(%r14)
	je	LBB0_30
## %bb.28:
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.29:
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_mac_ctxt_changed
LBB0_30:
	movq	%r13, %rdi
	callq	_iwl_mvm_bt_coex_vif_change
	movq	%r13, %rdi
	callq	_iwl_mvm_phy_ctx_count
	cmpl	$2, %eax
	jl	LBB0_32
## %bb.31:
	movq	%r13, %rdi
	callq	_iwl_mvm_teardown_tdls_peers
LBB0_32:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_ftm_restart_responder
	xorl	%ebx, %ebx
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_IWL_UCODE_TLV_API_STA_TYPE,4,2 ## @IWL_UCODE_TLV_API_STA_TYPE
	.comm	_SET_KEY,4,2                    ## @SET_KEY
	.comm	_LOW_LATENCY_VIF_TYPE,4,2       ## @LOW_LATENCY_VIF_TYPE
	.no_dead_strip	_iwl_mvm_start_ap_ibss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_start_ap_ibss
_iwl_mvm_start_ap_ibss:                 ; @iwl_mvm_start_ap_ibss
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x22, x0
	bl	_IWL_MAC80211_GET_MVM
	mov	x19, x0
	mov	x0, x20
	bl	_iwl_mvm_vif_from_mac80211
	mov	x21, x0
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_mac_ctxt_beacon_changed
	mov	x23, x0
	cbnz	w0, LBB0_27
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x24, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NL80211_IFTYPE_AP@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_mac_ctxt_recalc_tsf_id
LBB0_3:
	str	xzr, [x21, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_mac_ctxt_add
	mov	x23, x0
	cbnz	w0, LBB0_27
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_binding_add_vif
	mov	x23, x0
	cbnz	w0, LBB0_26
; %bb.5:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x8, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_add_mcast_sta
	mov	x23, x0
	cbnz	w0, LBB0_25
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_send_add_bcast_sta
	cbz	w0, LBB0_12
; %bb.8:
	mov	x23, x0
	b	LBB0_24
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_send_add_bcast_sta
	mov	x23, x0
	cbnz	w0, LBB0_25
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_add_mcast_sta
	cbz	w0, LBB0_12
; %bb.11:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_send_rm_bcast_sta
	b	LBB0_25
LBB0_12:
	mov	w8, #1
	str	w8, [x21]
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.13:
	mov	x25, #0
Lloh5:
	adrp	x26, _SET_KEY@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SET_KEY@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x21, #8]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.ge	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #8]
	ldr	x4, [x0, x25, lsl #3]
	cbz	x4, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	xzr, [x0, x25, lsl #3]
	ldr	w1, [x26]
	mov	x0, x22
	mov	x2, x20
	mov	x3, #0
	bl	___iwl_mvm_mac_set_key
	cbz	w0, LBB0_14
; %bb.18:
	mov	x23, x0
	b	LBB0_23
LBB0_19:
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_22
; %bb.21:
Lloh7:
	adrp	x8, _LOW_LATENCY_VIF_TYPE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOW_LATENCY_VIF_TYPE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #1
	bl	_iwl_mvm_vif_set_low_latency
	ldr	w2, [x21, #4]
	mov	x0, x19
	mov	w1, #1
	bl	_iwl_mvm_send_low_latency_cmd
LBB0_22:
	mov	x0, x19
	bl	_iwl_mvm_power_update_mac
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_iwl_mvm_update_quotas
	mov	x23, x0
	cbz	w0, LBB0_28
LBB0_23:
	mov	x0, x19
	bl	_iwl_mvm_power_update_mac
	str	wzr, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_send_rm_bcast_sta
LBB0_24:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_rm_mcast_sta
LBB0_25:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_binding_remove_vif
LBB0_26:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_mac_ctxt_remove
LBB0_27:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_28:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_31
; %bb.29:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_31
; %bb.30:
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	bl	_iwl_mvm_mac_ctxt_changed
LBB0_31:
	mov	x0, x19
	bl	_iwl_mvm_bt_coex_vif_change
	mov	x0, x19
	bl	_iwl_mvm_phy_ctx_count
	cmp	w0, #2
	b.lt	LBB0_33
; %bb.32:
	mov	x0, x19
	bl	_iwl_mvm_teardown_tdls_peers
LBB0_33:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_ftm_restart_responder
	mov	w23, #0
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_IWL_UCODE_TLV_API_STA_TYPE,4,2 ; @IWL_UCODE_TLV_API_STA_TYPE
	.comm	_SET_KEY,4,2                    ; @SET_KEY
	.comm	_LOW_LATENCY_VIF_TYPE,4,2       ; @LOW_LATENCY_VIF_TYPE
	.no_dead_strip	_iwl_mvm_start_ap_ibss
.subsections_via_symbols
