	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_update_mimo_band_bwcap
_brcms_c_update_mimo_band_bwcap:        ## @brcms_c_update_mimo_band_bwcap
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %r9
	testq	%r9, %r9
	je	LBB0_11
## %bb.1:
	movq	(%rdi), %r14
	movq	_BRCM_BAND_5G@GOTPCREL(%rip), %rax
	movq	_BRCMS_N_BW_40ALL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	cmpq	%rsi, %r10
	sete	%cl
	movq	_BRCMS_N_BW_20IN2G_40IN5G@GOTPCREL(%rip), %rdx
	cmpq	%rsi, (%rdx)
	movq	(%rax), %r15
	sete	%r8b
	orb	%cl, %r8b
	cmpq	$1, %r9
	jne	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
LBB0_9:
	testb	$1, %r9b
	je	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	cmpq	%rsi, %r10
	sete	%al
	movq	(%r14,%rcx,8), %rcx
	cmpq	%r15, (%rcx)
	movzbl	%r8b, %edx
	cmovnel	%eax, %edx
	movzbl	%dl, %eax
	movl	%eax, 8(%rcx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movzbl	%r8b, %edx
	movq	%r9, %r11
	andq	$-2, %r11
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%dil, %edi
	movl	%edi, 8(%rax)
	addq	$2, %rcx
	cmpq	%rcx, %r11
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ebx, %ebx
	cmpq	%rsi, %r10
	sete	%bl
	movq	(%r14,%rcx,8), %rax
	movl	%edx, %edi
	cmpq	%r15, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%dil, %edi
	movl	%edi, 8(%rax)
	movq	8(%r14,%rcx,8), %rax
	movl	%edx, %edi
	cmpq	%r15, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCM_BAND_5G,8,3               ## @BRCM_BAND_5G
	.comm	_BRCMS_N_BW_40ALL,8,3           ## @BRCMS_N_BW_40ALL
	.comm	_BRCMS_N_BW_20IN2G_40IN5G,8,3   ## @BRCMS_N_BW_20IN2G_40IN5G
	.no_dead_strip	_brcms_c_update_mimo_band_bwcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_update_mimo_band_bwcap
_brcms_c_update_mimo_band_bwcap:        ; @brcms_c_update_mimo_band_bwcap
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x11, [x8]
	cbz	x11, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _BRCM_BAND_5G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCM_BAND_5G@GOTPAGEOFF]
	ldr	x12, [x0]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _BRCMS_N_BW_40ALL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRCMS_N_BW_40ALL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x1
Lloh6:
	adrp	x10, _BRCMS_N_BW_20IN2G_40IN5G@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BRCMS_N_BW_20IN2G_40IN5G@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ccmp	x10, x1, #4, ne
	cset	w10, eq
	cmp	x11, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x13, #0
	b	LBB0_6
LBB0_3:
	and	x13, x11, #0xfffffffffffffffc
	add	x14, x12, #16
	mov	x15, x13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x1
	cset	w16, eq
	ldp	x17, x0, [x14, #-16]
	ldp	x2, x3, [x14], #32
	ldr	x4, [x17]
	ldr	x5, [x0]
	ldr	x6, [x2]
	ldr	x7, [x3]
	cmp	x4, x8
	csel	w4, w10, w16, eq
	cmp	x5, x8
	csel	w5, w10, w16, eq
	cmp	x6, x8
	csel	w6, w10, w16, eq
	cmp	x7, x8
	csel	w16, w10, w16, eq
	str	w4, [x17, #8]
	str	w5, [x0, #8]
	str	w6, [x2, #8]
	str	w16, [x3, #8]
	subs	x15, x15, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x13
	b.eq	LBB0_8
LBB0_6:
	sub	x11, x11, x13
	add	x12, x12, x13, lsl #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x1
	ldr	x13, [x12], #8
	cset	w14, eq
	ldr	x15, [x13]
	cmp	x15, x8
	csel	w14, w10, w14, eq
	str	w14, [x13, #8]
	subs	x11, x11, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCM_BAND_5G,8,3               ; @BRCM_BAND_5G
	.comm	_BRCMS_N_BW_40ALL,8,3           ; @BRCMS_N_BW_40ALL
	.comm	_BRCMS_N_BW_20IN2G_40IN5G,8,3   ; @BRCMS_N_BW_20IN2G_40IN5G
	.no_dead_strip	_brcms_c_update_mimo_band_bwcap
.subsections_via_symbols
