	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_set_nmode              ## -- Begin function brcms_c_set_nmode
	.p2align	4, 0x90
_brcms_c_set_nmode:                     ## @brcms_c_set_nmode
	.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	%rdi, %r14
	movq	24(%rdi), %rax
	movq	_WL_11N_3x3@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	cmpq	%rbx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_WL_11N_2x2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_2:
	movq	_GMODE_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_brcms_c_set_gmode
	cmpq	(%r15), %rbx
	jne	LBB0_3
## %bb.4:
	movq	_SUPPORT_HT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_SUPPORT_11N@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	16(%r14), %rcx
	movl	%eax, 8(%rcx)
	movq	_BRCMS_BSS_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rdi
	orl	%eax, 4(%rdi)
	movq	24(%r14), %rax
	movq	(%rax), %rsi
	callq	_brcms_c_rateset_mcs_build
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_MCSSET_LEN@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_memcpy
	incq	%rbx
	movq	16(%r14), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTO,8,3                       ## @AUTO
	.comm	_WL_11N_3x3,8,3                 ## @WL_11N_3x3
	.comm	_WL_11N_2x2,8,3                 ## @WL_11N_2x2
	.comm	_GMODE_AUTO,4,2                 ## @GMODE_AUTO
	.comm	_SUPPORT_HT,4,2                 ## @SUPPORT_HT
	.comm	_SUPPORT_11N,4,2                ## @SUPPORT_11N
	.comm	_BRCMS_BSS_HT,4,2               ## @BRCMS_BSS_HT
	.comm	_MCSSET_LEN,4,2                 ## @MCSSET_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_set_nmode              ; -- Begin function brcms_c_set_nmode
	.p2align	2
_brcms_c_set_nmode:                     ; @brcms_c_set_nmode
	.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, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x20, _WL_11N_3x3@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WL_11N_3x3@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	adrp	x10, _WL_11N_2x2@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WL_11N_2x2@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x21, x9, x10, eq
Lloh5:
	adrp	x8, _GMODE_AUTO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GMODE_AUTO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_brcms_c_set_gmode
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _SUPPORT_HT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SUPPORT_HT@GOTPAGEOFF]
Lloh10:
	adrp	x10, _SUPPORT_11N@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SUPPORT_11N@GOTPAGEOFF]
	cmp	x21, x8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldp	x9, x10, [x19, #16]
	str	w8, [x9, #8]
Lloh12:
	adrp	x8, _BRCMS_BSS_HT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMS_BSS_HT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x0, [x19]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
	ldr	x1, [x10]
	bl	_brcms_c_rateset_mcs_build
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, #0
Lloh15:
	adrp	x21, _MCSSET_LEN@GOTPAGE
Lloh16:
	ldr	x21, [x21, _MCSSET_LEN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w0, [x8]
	ldr	w1, [x9]
	ldr	w2, [x21]
	bl	_memcpy
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	mov	w0, #0
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTO,8,3                       ; @AUTO
	.comm	_WL_11N_3x3,8,3                 ; @WL_11N_3x3
	.comm	_WL_11N_2x2,8,3                 ; @WL_11N_2x2
	.comm	_GMODE_AUTO,4,2                 ; @GMODE_AUTO
	.comm	_SUPPORT_HT,4,2                 ; @SUPPORT_HT
	.comm	_SUPPORT_11N,4,2                ; @SUPPORT_11N
	.comm	_BRCMS_BSS_HT,4,2               ; @BRCMS_BSS_HT
	.comm	_MCSSET_LEN,4,2                 ; @MCSSET_LEN
.subsections_via_symbols
