	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_ctxt_cmd_ap
_iwl_mvm_mac_ctxt_cmd_ap:               ## @iwl_mvm_mac_ctxt_cmd_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, -40(%rbp)
	movq	(%rsi), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
LBB0_2:
	callq	_WARN_ON
	leaq	-40(%rbp), %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_iwl_mvm_mac_ctxt_cmd_common
	movq	_FW_CTXT_ACTION_ADD@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	cmpl	%r15d, (%rax)
	sete	%r8b
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_iwl_mvm_mac_ctxt_cmd_fill_ap
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iwl_mvm_mac_ctxt_send_cmd
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_FW_CTXT_ACTION_ADD,4,2         ## @FW_CTXT_ACTION_ADD
	.no_dead_strip	_iwl_mvm_mac_ctxt_cmd_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_mac_ctxt_cmd_ap
_iwl_mvm_mac_ctxt_cmd_ap:               ; @iwl_mvm_mac_ctxt_cmd_ap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #8]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_WARN_ON
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	mov	x4, x21
	bl	_iwl_mvm_mac_ctxt_cmd_common
Lloh3:
	adrp	x8, _FW_CTXT_ACTION_ADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_CTXT_ACTION_ADD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w4, eq
	add	x2, sp, #8
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_mac_ctxt_cmd_fill_ap
	add	x1, sp, #8
	mov	x0, x19
	bl	_iwl_mvm_mac_ctxt_send_cmd
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_FW_CTXT_ACTION_ADD,4,2         ; @FW_CTXT_ACTION_ADD
	.no_dead_strip	_iwl_mvm_mac_ctxt_cmd_ap
.subsections_via_symbols
