	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_op_sta_add
_rtl_op_sta_add:                        ## @rtl_op_sta_add
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	testq	%r15, %r15
	je	LBB0_17
## %bb.1:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r15), %rbx
	leaq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	leaq	16(%rbx), %rdi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	12(%r13), %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	(%r12), %rax
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	_WIRELESS_MODE_G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	(%r15), %rcx
	cmpl	$15, (%rcx)
	jg	LBB0_4
## %bb.3:
	movq	_WIRELESS_MODE_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rbx)
LBB0_4:
	cmpq	$0, 24(%r15)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_12
## %bb.5:
	movq	_WIRELESS_MODE_N_24G@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_6:
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_14
## %bb.7:
	movq	_WIRELESS_MODE_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	cmpq	$0, 24(%r15)
	je	LBB0_9
## %bb.8:
	movq	_WIRELESS_MODE_N_5G@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rbx)
LBB0_9:
	cmpq	$0, 16(%r15)
	je	LBB0_12
## %bb.10:
	movq	_WIRELESS_MODE_AC_5G@GOTPCREL(%rip), %rcx
LBB0_11:
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rbx)
LBB0_12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.13:
	movq	%rax, 8(%rbx)
LBB0_14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:
	movq	(%r15), %rax
	andl	$-16, (%rax)
LBB0_16:
	movl	(%rbx), %edi
	movl	8(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_COMP_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r15), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_RT_TRACE
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	*(%rax)
LBB0_17:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BAND_ON_2_4G,8,3               ## @BAND_ON_2_4G
	.comm	_WIRELESS_MODE_G,8,3            ## @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_B,8,3            ## @WIRELESS_MODE_B
	.comm	_WIRELESS_MODE_N_24G,8,3        ## @WIRELESS_MODE_N_24G
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.comm	_WIRELESS_MODE_A,8,3            ## @WIRELESS_MODE_A
	.comm	_WIRELESS_MODE_N_5G,8,3         ## @WIRELESS_MODE_N_5G
	.comm	_WIRELESS_MODE_AC_5G,8,3        ## @WIRELESS_MODE_AC_5G
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_COMP_MAC80211,4,2              ## @COMP_MAC80211
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Add sta addr is %pM\n"

	.no_dead_strip	_rtl_op_sta_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_op_sta_add
_rtl_op_sta_add:                        ; @rtl_op_sta_add
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x24, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	cbz	x19, LBB0_17
; %bb.1:
	mov	x23, x0
	ldr	x26, [x19, #32]
	add	x25, x21, #8
	mov	x0, x25
	bl	_spin_lock_bh
	add	x0, x26, #16
	add	x1, x21, #12
	bl	_list_add_tail
	mov	x0, x25
	bl	_spin_unlock_bh
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _BAND_ON_2_4G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BAND_ON_2_4G@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _WIRELESS_MODE_G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIRELESS_MODE_G@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x26, #8]
	ldr	x9, [x19]
	ldr	w9, [x9]
	cmp	w9, #15
	b.gt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _WIRELESS_MODE_B@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WIRELESS_MODE_B@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x9, [x26, #8]
LBB0_4:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_12
; %bb.5:
Lloh9:
	adrp	x9, _WIRELESS_MODE_N_24G@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WIRELESS_MODE_N_24G@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh11:
	adrp	x9, _BAND_ON_5G@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BAND_ON_5G@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.7:
Lloh14:
	adrp	x8, _WIRELESS_MODE_A@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WIRELESS_MODE_A@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x26, #8]
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_9
; %bb.8:
Lloh17:
	adrp	x9, _WIRELESS_MODE_N_5G@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WIRELESS_MODE_N_5G@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	str	x9, [x26, #8]
LBB0_9:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_12
; %bb.10:
Lloh20:
	adrp	x9, _WIRELESS_MODE_AC_5G@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WIRELESS_MODE_AC_5G@GOTPAGEOFF]
LBB0_11:
	ldr	x9, [x9]
	str	x9, [x26, #8]
LBB0_12:
	ldr	x9, [x22]
Lloh22:
	adrp	x10, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh23:
	ldr	x10, [x10, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.13:
	str	x8, [x26, #8]
LBB0_14:
	ldr	x8, [x23]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x19]
	ldr	w9, [x8]
	and	w9, w9, #0xfffffff0
	str	w9, [x8]
LBB0_16:
	ldr	w0, [x26]
	ldr	w1, [x19, #8]
Lloh25:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	bl	_memcpy
Lloh28:
	adrp	x8, _COMP_MAC80211@GOTPAGE
Lloh29:
	ldr	x8, [x8, _COMP_MAC80211@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	ldr	w4, [x19, #8]
Lloh34:
	adrp	x3, l_.str@PAGE
Lloh35:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w3, #1
	blr	x8
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BAND_ON_2_4G,8,3               ; @BAND_ON_2_4G
	.comm	_WIRELESS_MODE_G,8,3            ; @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_B,8,3            ; @WIRELESS_MODE_B
	.comm	_WIRELESS_MODE_N_24G,8,3        ; @WIRELESS_MODE_N_24G
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.comm	_WIRELESS_MODE_A,8,3            ; @WIRELESS_MODE_A
	.comm	_WIRELESS_MODE_N_5G,8,3         ; @WIRELESS_MODE_N_5G
	.comm	_WIRELESS_MODE_AC_5G,8,3        ; @WIRELESS_MODE_AC_5G
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_COMP_MAC80211,4,2              ; @COMP_MAC80211
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Add sta addr is %pM\n"

	.no_dead_strip	_rtl_op_sta_add
.subsections_via_symbols
