	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_add_interface
_wcn36xx_add_interface:                 ## @wcn36xx_add_interface
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	%rsi, %rdi
	callq	_wcn36xx_vif_to_priv
	movq	%rax, %r15
	movq	_WCN36XX_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wcn36xx_dbg
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movq	(%rbx), %rsi
	cmpq	%rsi, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_5
## %bb.2:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_wcn36xx_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_WCN36XX_HAL_BSS_INVALID_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	leaq	4(%r14), %rsi
	movq	%r15, %rdi
	callq	_list_add
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wcn36xx_smd_add_sta_self
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_DBG_MAC,4,2            ## @WCN36XX_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac add interface vif %p type %d\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported interface type requested: %d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WCN36XX_HAL_BSS_INVALID_IDX,4,2 ## @WCN36XX_HAL_BSS_INVALID_IDX
	.no_dead_strip	_wcn36xx_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_add_interface
_wcn36xx_add_interface:                 ; @wcn36xx_add_interface
	.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	x20, x1
	ldr	x19, [x0]
	mov	x0, x1
	bl	_wcn36xx_vif_to_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _WCN36XX_DBG_MAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_DBG_MAC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x3, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wcn36xx_dbg
Lloh5:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh13:
	adrp	x11, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh14:
	ldr	x11, [x11, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
Lloh16:
	ldr	x11, [x11]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	ccmp	x10, x1, #4, ne
	ccmp	x11, x1, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
Lloh17:
	adrp	x8, _WCN36XX_HAL_BSS_INVALID_IDX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WCN36XX_HAL_BSS_INVALID_IDX@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	add	x0, x21, #4
	bl	_INIT_LIST_HEAD
	add	x1, x19, #4
	mov	x0, x21
	bl	_list_add
	mov	x0, x19
	mov	x1, x20
	bl	_wcn36xx_smd_add_sta_self
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wcn36xx_warn
Lloh22:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_DBG_MAC,4,2            ; @WCN36XX_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac add interface vif %p type %d\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported interface type requested: %d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WCN36XX_HAL_BSS_INVALID_IDX,4,2 ; @WCN36XX_HAL_BSS_INVALID_IDX
	.no_dead_strip	_wcn36xx_add_interface
.subsections_via_symbols
