	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_add_station
_ieee80211_add_station:                 ## @ieee80211_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_wiphy_priv
	movq	%rax, %r14
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_AP_VLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	%rax, %r13
LBB0_6:
	movl	8(%r13), %esi
	movq	%r12, %rdi
	callq	_ether_addr_equal
	testq	%rax, %rax
	jne	LBB0_3
## %bb.7:
	movq	%r12, %rdi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_sta_info_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movl	(%r15), %ebx
	movq	_NL80211_STA_FLAG_TDLS_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_12
## %bb.11:
	movq	_IEEE80211_STA_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sta_info_pre_move_state
	movq	_IEEE80211_STA_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sta_info_pre_move_state
LBB0_12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_sta_apply_parameters
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sta_info_free
	jmp	LBB0_23
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	movq	_WLAN_STA_TDLS_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_test_sta_flag
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_rate_control_rate_init
LBB0_16:
	movq	(%r13), %r14
	movq	_NL80211_IFTYPE_AP_VLAN@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r12, %rdi
	callq	_sta_info_insert_rcu
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	jmp	LBB0_22
LBB0_18:
	cmpq	%r13, %r14
	je	LBB0_20
## %bb.19:
	cmpq	%r15, %r14
	jne	LBB0_21
LBB0_20:
	movq	%r12, %rdi
	callq	_ieee80211_send_layer2_update
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ## @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NL80211_STA_FLAG_TDLS_PEER,4,2 ## @NL80211_STA_FLAG_TDLS_PEER
	.comm	_IEEE80211_STA_AUTH,4,2         ## @IEEE80211_STA_AUTH
	.comm	_IEEE80211_STA_ASSOC,4,2        ## @IEEE80211_STA_ASSOC
	.comm	_WLAN_STA_TDLS_PEER,4,2         ## @WLAN_STA_TDLS_PEER
	.no_dead_strip	_ieee80211_add_station
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_add_station
_ieee80211_add_station:                 ; @ieee80211_add_station
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	bl	_wiphy_priv
	mov	x19, x0
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_IEEE80211_DEV_TO_SUB_IF
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP_VLAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_AP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_3
	b	LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_IEEE80211_DEV_TO_SUB_IF
	mov	x21, x0
LBB0_3:
	ldr	w1, [x21, #8]
	mov	x0, x22
	bl	_ether_addr_equal
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_sta_info_alloc
	cbz	x0, LBB0_13
; %bb.9:
	mov	x22, x0
	ldr	w23, [x20]
Lloh11:
	adrp	x8, _NL80211_STA_FLAG_TDLS_PEER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NL80211_STA_FLAG_TDLS_PEER@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w23
	b.ne	LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _IEEE80211_STA_AUTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_STA_AUTH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sta_info_pre_move_state
Lloh17:
	adrp	x8, _IEEE80211_STA_ASSOC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_STA_ASSOC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sta_info_pre_move_state
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_sta_apply_parameters
	cbz	w0, LBB0_14
; %bb.12:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	bl	_sta_info_free
	b	LBB0_7
LBB0_13:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_14:
Lloh22:
	adrp	x8, _WLAN_STA_TDLS_PEER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WLAN_STA_TDLS_PEER@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_test_sta_flag
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x22
	bl	_rate_control_rate_init
LBB0_16:
	ldr	x19, [x21]
Lloh25:
	adrp	x8, _NL80211_IFTYPE_AP_VLAN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NL80211_IFTYPE_AP_VLAN@GOTPAGEOFF]
Lloh27:
	ldr	x23, [x8]
Lloh28:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh30:
	ldr	x21, [x8]
	mov	x0, x22
	bl	_sta_info_insert_rcu
	cbz	w0, LBB0_18
; %bb.17:
	mov	x20, x0
	bl	_rcu_read_unlock
	b	LBB0_7
LBB0_18:
	cmp	x19, x23
	b.eq	LBB0_20
; %bb.19:
	cmp	x19, x21
	b.ne	LBB0_21
LBB0_20:
	mov	x0, x22
	bl	_ieee80211_send_layer2_update
LBB0_21:
	bl	_rcu_read_unlock
	mov	w20, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ; @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NL80211_STA_FLAG_TDLS_PEER,4,2 ; @NL80211_STA_FLAG_TDLS_PEER
	.comm	_IEEE80211_STA_AUTH,4,2         ; @IEEE80211_STA_AUTH
	.comm	_IEEE80211_STA_ASSOC,4,2        ; @IEEE80211_STA_ASSOC
	.comm	_WLAN_STA_TDLS_PEER,4,2         ; @WLAN_STA_TDLS_PEER
	.no_dead_strip	_ieee80211_add_station
.subsections_via_symbols
