	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7615_mcu_set_bss_info        ## -- Begin function mt7615_mcu_set_bss_info
	.p2align	4, 0x90
_mt7615_mcu_set_bss_info:               ## @mt7615_mcu_set_bss_info
	.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
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rsi), %r14
	movl	$133, %edi
	callq	_BIT
	testl	%r13d, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	$131, %edi
	callq	_BIT
	movq	(%r14), %rax
	movq	_EXT_BSSID_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.4:
	movl	$132, %edi
	callq	_BIT
	movl	$40, %r12d
	movl	$3, %ebx
	jmp	LBB0_5
LBB0_1:
	movl	$32, %r12d
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	$36, %r12d
	movl	$2, %ebx
LBB0_5:
	movl	(%r15), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_12
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.7:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.8:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_ieee80211_find_sta
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testq	%r15, %r15
	jne	LBB0_12
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r13
	movl	8(%r14), %eax
	movl	%eax, (%r13)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%r13)
	movl	$1, 12(%r13)
	movq	_BSS_INFO_MAX_NUM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_16
LBB0_17:
	movq	_MCU_EXT_CMD_BSS_INFO_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	$1, %r8d
	callq	___mt76_mcu_send_msg
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_kfree
	movl	%ebx, %eax
	jmp	LBB0_18
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_10:
	subl	(%rax), %r13d
	movl	%r13d, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETWORK_INFRA,4,2              ## @NETWORK_INFRA
	.comm	_EXT_BSSID_START,8,3            ## @EXT_BSSID_START
	.comm	_CONNECTION_INFRA_AP,4,2        ## @CONNECTION_INFRA_AP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CONNECTION_INFRA_STA,4,2       ## @CONNECTION_INFRA_STA
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BSS_INFO_MAX_NUM,4,2           ## @BSS_INFO_MAX_NUM
	.comm	_MCU_EXT_CMD_BSS_INFO_UPDATE,4,2 ## @MCU_EXT_CMD_BSS_INFO_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7615_mcu_set_bss_info        ; -- Begin function mt7615_mcu_set_bss_info
	.p2align	2
_mt7615_mcu_set_bss_info:               ; @mt7615_mcu_set_bss_info
	.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	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x1, #8]
	mov	w0, #133
	bl	_BIT
	cbz	w23, LBB0_3
; %bb.1:
	mov	w0, #131
	bl	_BIT
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _EXT_BSSID_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXT_BSSID_START@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:
	mov	w0, #132
	bl	_BIT
	mov	w20, #40
	mov	w22, #3
	b	LBB0_5
LBB0_3:
	mov	w20, #32
	mov	w22, #1
	b	LBB0_5
LBB0_4:
	mov	w20, #36
	mov	w22, #2
LBB0_5:
	ldr	w8, [x21]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_11
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.7:
	cbz	w23, LBB0_11
; %bb.8:
	bl	_rcu_read_lock
	ldr	w1, [x21, #4]
	mov	x0, x21
	bl	_ieee80211_find_sta
	mov	x21, x0
	bl	_rcu_read_unlock
	cbnz	x21, LBB0_11
; %bb.9:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
	mov	w0, #1
	bl	_WARN_ON
LBB0_11:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.12:
	mov	x21, x0
	ldr	w8, [x24, #8]
	str	w8, [x0]
	mov	x0, x22
	bl	_cpu_to_le16
	mov	w8, #1
	stp	w0, w8, [x21, #8]
Lloh8:
	adrp	x23, _BSS_INFO_MAX_NUM@GOTPAGE
Lloh9:
	ldr	x23, [x23, _BSS_INFO_MAX_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	w22, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_BIT
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_14
LBB0_15:
Lloh10:
	adrp	x8, _MCU_EXT_CMD_BSS_INFO_UPDATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCU_EXT_CMD_BSS_INFO_UPDATE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	w4, #1
	bl	___mt76_mcu_send_msg
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	b	LBB0_18
LBB0_16:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NETWORK_INFRA,4,2              ; @NETWORK_INFRA
	.comm	_EXT_BSSID_START,8,3            ; @EXT_BSSID_START
	.comm	_CONNECTION_INFRA_AP,4,2        ; @CONNECTION_INFRA_AP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CONNECTION_INFRA_STA,4,2       ; @CONNECTION_INFRA_STA
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BSS_INFO_MAX_NUM,4,2           ; @BSS_INFO_MAX_NUM
	.comm	_MCU_EXT_CMD_BSS_INFO_UPDATE,4,2 ; @MCU_EXT_CMD_BSS_INFO_UPDATE
.subsections_via_symbols
