	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_cfg80211_add_station
_wil_cfg80211_add_station:              ## @wil_cfg80211_add_station
	.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
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_ndev_to_vif
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_wiphy_to_wil
	movq	%rax, %r12
	movl	(%r15), %r8d
	movl	8(%rbx), %r9d
	movl	(%rbx), %ecx
	movl	4(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_wil_dbg_misc
	movq	_disable_ap_sme@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %edx
	movq	_WIL_MAX_DMG_AID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_wil_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_wil_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmi_new_sta                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add station %pM aid %d mid %d mask 0x%x set 0x%x\n"

	.comm	_disable_ap_sme,4,2             ## @disable_ap_sme
L_.str.1:                               ## @.str.1
	.asciz	"not supported with AP SME enabled\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WIL_MAX_DMG_AID,4,2            ## @WIL_MAX_DMG_AID
L_.str.2:                               ## @.str.2
	.asciz	"invalid aid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wil_cfg80211_add_station
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_cfg80211_add_station
_wil_cfg80211_add_station:              ; @wil_cfg80211_add_station
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x22, x0
	mov	x0, x1
	bl	_ndev_to_vif
	mov	x20, x0
	mov	x0, x22
	bl	_wiphy_to_wil
	mov	x22, x0
	ldr	w4, [x20]
	ldp	w6, w5, [x21, #4]
	ldr	w3, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wil_dbg_misc
Lloh2:
	adrp	x8, _disable_ap_sme@GOTPAGE
Lloh3:
	ldr	x8, [x8, _disable_ap_sme@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w2, [x21]
Lloh5:
	adrp	x8, _WIL_MAX_DMG_AID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WIL_MAX_DMG_AID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w2, w8
	b.le	LBB0_5
; %bb.2:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_wil_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_wil_err
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wmi_new_sta
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add station %pM aid %d mid %d mask 0x%x set 0x%x\n"

	.comm	_disable_ap_sme,4,2             ; @disable_ap_sme
l_.str.1:                               ; @.str.1
	.asciz	"not supported with AP SME enabled\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WIL_MAX_DMG_AID,4,2            ; @WIL_MAX_DMG_AID
l_.str.2:                               ; @.str.2
	.asciz	"invalid aid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wil_cfg80211_add_station
.subsections_via_symbols
