	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_op_add_interface
_wl1251_op_add_interface:               ## @wl1251_op_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	_IEEE80211_VIF_BEACON_FILTER@GOTPCREL(%rip), %rax
	movq	_IEEE80211_VIF_SUPPORTS_UAPSD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rsi, %r15
	movq	_IEEE80211_VIF_SUPPORTS_CQM_RSSI@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	(%rdi), %r14
	orl	%ecx, (%rsi)
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rsi), %edx
	movl	8(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_wl1251_debug
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, 16(%r14)
	movl	4(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.6:
	movq	_BSS_TYPE_IBSS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_BSS_TYPE_STA_BSS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	4(%r14), %edi
	movl	8(%r15), %esi
	callq	_ether_addr_equal_unaligned
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	4(%r14), %edi
	movl	8(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_SET_IEEE80211_PERM_ADDR
	movq	%r14, %rdi
	callq	_wl1251_acx_station_id
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.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	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 add interface type %d mac %pM"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BSS_TYPE_STA_BSS,4,2           ## @BSS_TYPE_STA_BSS
	.comm	_BSS_TYPE_IBSS,4,2              ## @BSS_TYPE_IBSS
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_wl1251_op_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_op_add_interface
_wl1251_op_add_interface:               ; @wl1251_op_add_interface
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
Lloh0:
	adrp	x8, _IEEE80211_VIF_BEACON_FILTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_VIF_BEACON_FILTER@GOTPAGEOFF]
	ldr	x19, [x0]
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
	ldp	w9, w2, [x1]
	orr	w8, w8, w9
	str	w8, [x1]
Lloh9:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w3, [x1, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.1:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	str	x20, [x19, #16]
	ldr	w8, [x20, #4]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.6:
Lloh16:
	adrp	x8, _BSS_TYPE_IBSS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BSS_TYPE_IBSS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _BSS_TYPE_STA_BSS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BSS_TYPE_STA_BSS@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #8]
	bl	_ether_addr_equal_unaligned
	cbz	w0, LBB0_11
; %bb.9:
	mov	w20, #0
	b	LBB0_3
LBB0_10:
Lloh20:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #8]
Lloh22:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_memcpy
	ldp	w1, w0, [x19, #4]
	bl	_SET_IEEE80211_PERM_ADDR
	mov	x0, x19
	bl	_wl1251_acx_station_id
	mov	x20, x0
	b	LBB0_3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 add interface type %d mac %pM"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BSS_TYPE_STA_BSS,4,2           ; @BSS_TYPE_STA_BSS
	.comm	_BSS_TYPE_IBSS,4,2              ; @BSS_TYPE_IBSS
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_wl1251_op_add_interface
.subsections_via_symbols
