	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_add_interface           ## -- Begin function cw1200_add_interface
	.p2align	4, 0x90
_cw1200_add_interface:                  ## @cw1200_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, %r15
	movq	_IEEE80211_VIF_BEACON_FILTER@GOTPCREL(%rip), %rax
	movq	_IEEE80211_VIF_SUPPORTS_UAPSD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%rdi), %rbx
	movq	_IEEE80211_VIF_SUPPORTS_CQM_RSSI@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, (%rsi)
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	4(%r15), %eax
	movl	%eax, %ecx
	andl	$-4, %ecx
	cmpl	$128, %ecx
	jne	LBB0_3
## %bb.2:
	movq	%rax, (%rbx)
	movq	%r15, 16(%rbx)
	movl	12(%rbx), %edi
	movl	8(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_cw1200_setup_mac
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_VIF_BEACON_FILTER,4,2 ## @IEEE80211_VIF_BEACON_FILTER
	.comm	_IEEE80211_VIF_SUPPORTS_UAPSD,4,2 ## @IEEE80211_VIF_SUPPORTS_UAPSD
	.comm	_IEEE80211_VIF_SUPPORTS_CQM_RSSI,4,2 ## @IEEE80211_VIF_SUPPORTS_CQM_RSSI
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_add_interface           ; -- Begin function cw1200_add_interface
	.p2align	2
_cw1200_add_interface:                  ; @cw1200_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	x21, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _IEEE80211_VIF_BEACON_FILTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_VIF_BEACON_FILTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IEEE80211_VIF_SUPPORTS_UAPSD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_VIF_SUPPORTS_UAPSD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _IEEE80211_VIF_SUPPORTS_CQM_RSSI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_VIF_SUPPORTS_CQM_RSSI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x1]
	orr	w8, w8, w9
	str	w8, [x1]
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21, #4]
	and	w9, w8, #0xfffffffc
	cmp	w9, #128
	b.ne	LBB0_3
; %bb.2:
	str	x8, [x19]
	str	x21, [x19, #16]
	ldr	w0, [x19, #12]
	ldr	w1, [x21, #8]
Lloh12:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x19
	bl	_cw1200_setup_mac
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_VIF_BEACON_FILTER,4,2 ; @IEEE80211_VIF_BEACON_FILTER
	.comm	_IEEE80211_VIF_SUPPORTS_UAPSD,4,2 ; @IEEE80211_VIF_SUPPORTS_UAPSD
	.comm	_IEEE80211_VIF_SUPPORTS_CQM_RSSI,4,2 ; @IEEE80211_VIF_SUPPORTS_CQM_RSSI
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
