	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7615_mcu_bss_info_omac_header
_mt7615_mcu_bss_info_omac_header:       ## @mt7615_mcu_bss_info_omac_header
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	_EXT_BSSID_START@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jle	LBB0_2
## %bb.1:
	movq	_HW_BSSID_0@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_2:
	movq	_BSS_INFO_OMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%rbx)
	movl	$40, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movq	%r12, (%rbx)
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 20(%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movl	%eax, 16(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_BSSID_START,8,3            ## @EXT_BSSID_START
	.comm	_HW_BSSID_0,8,3                 ## @HW_BSSID_0
	.comm	_BSS_INFO_OMAC,4,2              ## @BSS_INFO_OMAC
	.no_dead_strip	_mt7615_mcu_bss_info_omac_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7615_mcu_bss_info_omac_header
_mt7615_mcu_bss_info_omac_header:       ; @mt7615_mcu_bss_info_omac_header
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _EXT_BSSID_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXT_BSSID_START@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _HW_BSSID_0@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HW_BSSID_0@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x22, x10, x8, gt
Lloh6:
	adrp	x8, _BSS_INFO_OMAC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BSS_INFO_OMAC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x20, #32]
	mov	w0, #40
	bl	_cpu_to_le16
	str	x0, [x20, #24]
	ldr	x8, [x21]
	stp	x22, x8, [x20]
	ldr	w8, [x21, #8]
	str	w8, [x20, #20]
	mov	x0, x19
	bl	_cpu_to_le32
	str	w0, [x20, #16]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_BSSID_START,8,3            ; @EXT_BSSID_START
	.comm	_HW_BSSID_0,8,3                 ; @HW_BSSID_0
	.comm	_BSS_INFO_OMAC,4,2              ; @BSS_INFO_OMAC
	.no_dead_strip	_mt7615_mcu_bss_info_omac_header
.subsections_via_symbols
