	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_ampdu_shm_upd          ## -- Begin function brcms_c_ampdu_shm_upd
	.p2align	4, 0x90
_brcms_c_ampdu_shm_upd:                 ## @brcms_c_ampdu_shm_upd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movq	8(%rdi), %r14
	movq	_IEEE80211_HT_MAX_AMPDU_64K@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	(%r14), %edi
	movq	_M_MIMO_MAXSYM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MIMO_MAXSYM_DEF@GOTPCREL(%rip), %rax
	cmoveq	_MIMO_MAXSYM_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WATCHDOG_8TU_DEF@GOTPCREL(%rip), %rbx
	cmoveq	_WATCHDOG_8TU_MAX@GOTPCREL(%rip), %rbx
	callq	_brcms_b_write_shm
	movl	(%r14), %edi
	movq	_M_WATCHDOG_8TU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_brcms_b_write_shm              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HT_AMPDU_PARM_FACTOR,4,2 ## @IEEE80211_HT_AMPDU_PARM_FACTOR
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ## @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_M_MIMO_MAXSYM,4,2              ## @M_MIMO_MAXSYM
	.comm	_MIMO_MAXSYM_MAX,4,2            ## @MIMO_MAXSYM_MAX
	.comm	_M_WATCHDOG_8TU,4,2             ## @M_WATCHDOG_8TU
	.comm	_WATCHDOG_8TU_MAX,4,2           ## @WATCHDOG_8TU_MAX
	.comm	_MIMO_MAXSYM_DEF,4,2            ## @MIMO_MAXSYM_DEF
	.comm	_WATCHDOG_8TU_DEF,4,2           ## @WATCHDOG_8TU_DEF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_ampdu_shm_upd          ; -- Begin function brcms_c_ampdu_shm_upd
	.p2align	2
_brcms_c_ampdu_shm_upd:                 ; @brcms_c_ampdu_shm_upd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w0, [x19]
Lloh6:
	adrp	x10, _M_MIMO_MAXSYM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _M_MIMO_MAXSYM@GOTPAGEOFF]
Lloh8:
	adrp	x11, _MIMO_MAXSYM_MAX@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MIMO_MAXSYM_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x10]
Lloh11:
	adrp	x10, _MIMO_MAXSYM_DEF@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MIMO_MAXSYM_DEF@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x11, x10, eq
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _WATCHDOG_8TU_MAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WATCHDOG_8TU_MAX@GOTPAGEOFF]
Lloh15:
	adrp	x9, _WATCHDOG_8TU_DEF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WATCHDOG_8TU_DEF@GOTPAGEOFF]
	csel	x20, x8, x9, eq
	bl	_brcms_b_write_shm
Lloh17:
	adrp	x8, _M_WATCHDOG_8TU@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_WATCHDOG_8TU@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_brcms_b_write_shm
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HT_AMPDU_PARM_FACTOR,4,2 ; @IEEE80211_HT_AMPDU_PARM_FACTOR
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ; @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_M_MIMO_MAXSYM,4,2              ; @M_MIMO_MAXSYM
	.comm	_MIMO_MAXSYM_MAX,4,2            ; @MIMO_MAXSYM_MAX
	.comm	_M_WATCHDOG_8TU,4,2             ; @M_WATCHDOG_8TU
	.comm	_WATCHDOG_8TU_MAX,4,2           ; @WATCHDOG_8TU_MAX
	.comm	_MIMO_MAXSYM_DEF,4,2            ; @MIMO_MAXSYM_DEF
	.comm	_WATCHDOG_8TU_DEF,4,2           ; @WATCHDOG_8TU_DEF
.subsections_via_symbols
