	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_set_ampdu_params
_carl9170_set_ampdu_params:             ## @carl9170_set_ampdu_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movl	(%rax), %edx
	movq	_CARL9170_TX_SUPER_AMPDU_DENSITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%edx, %esi
	movq	_CARL9170_TX_SUPER_AMPDU_DENSITY_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	cmpl	(%rdi), %esi
	je	LBB0_2
## %bb.1:
	movl	%esi, (%rdi)
	movq	_CARL9170_TX_SUPER_AMPDU_COMMIT_DENSITY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
LBB0_2:
	movq	_CARL9170_TX_SUPER_AMPDU_FACTOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%edx, %esi
	movq	_CARL9170_TX_SUPER_AMPDU_FACTOR_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	cmpl	4(%rdi), %esi
	je	LBB0_4
## %bb.3:
	movl	%esi, 4(%rdi)
	movq	_CARL9170_TX_SUPER_AMPDU_COMMIT_FACTOR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARL9170_TX_SUPER_AMPDU_DENSITY,4,2 ## @CARL9170_TX_SUPER_AMPDU_DENSITY
	.comm	_CARL9170_TX_SUPER_AMPDU_DENSITY_S,4,2 ## @CARL9170_TX_SUPER_AMPDU_DENSITY_S
	.comm	_CARL9170_TX_SUPER_AMPDU_COMMIT_DENSITY,4,2 ## @CARL9170_TX_SUPER_AMPDU_COMMIT_DENSITY
	.comm	_CARL9170_TX_SUPER_AMPDU_FACTOR,4,2 ## @CARL9170_TX_SUPER_AMPDU_FACTOR
	.comm	_CARL9170_TX_SUPER_AMPDU_FACTOR_S,4,2 ## @CARL9170_TX_SUPER_AMPDU_FACTOR_S
	.comm	_CARL9170_TX_SUPER_AMPDU_COMMIT_FACTOR,4,2 ## @CARL9170_TX_SUPER_AMPDU_COMMIT_FACTOR
	.no_dead_strip	_carl9170_set_ampdu_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_set_ampdu_params
_carl9170_set_ampdu_params:             ; @carl9170_set_ampdu_params
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _CARL9170_TX_SUPER_AMPDU_DENSITY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CARL9170_TX_SUPER_AMPDU_DENSITY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w10, w10, w9
Lloh3:
	adrp	x11, _CARL9170_TX_SUPER_AMPDU_DENSITY_S@GOTPAGE
Lloh4:
	ldr	x11, [x11, _CARL9170_TX_SUPER_AMPDU_DENSITY_S@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	ldr	w11, [x0]
	cmp	w10, w11
	b.eq	LBB0_2
; %bb.1:
	str	w10, [x0]
Lloh6:
	adrp	x10, _CARL9170_TX_SUPER_AMPDU_COMMIT_DENSITY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CARL9170_TX_SUPER_AMPDU_COMMIT_DENSITY@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_2:
Lloh9:
	adrp	x10, _CARL9170_TX_SUPER_AMPDU_FACTOR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CARL9170_TX_SUPER_AMPDU_FACTOR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	and	w10, w10, w9
Lloh12:
	adrp	x11, _CARL9170_TX_SUPER_AMPDU_FACTOR_S@GOTPAGE
Lloh13:
	ldr	x11, [x11, _CARL9170_TX_SUPER_AMPDU_FACTOR_S@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	ldr	w11, [x0, #4]
	cmp	w10, w11
	b.eq	LBB0_4
; %bb.3:
	str	w10, [x0, #4]
Lloh15:
	adrp	x10, _CARL9170_TX_SUPER_AMPDU_COMMIT_FACTOR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CARL9170_TX_SUPER_AMPDU_COMMIT_FACTOR@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CARL9170_TX_SUPER_AMPDU_DENSITY,4,2 ; @CARL9170_TX_SUPER_AMPDU_DENSITY
	.comm	_CARL9170_TX_SUPER_AMPDU_DENSITY_S,4,2 ; @CARL9170_TX_SUPER_AMPDU_DENSITY_S
	.comm	_CARL9170_TX_SUPER_AMPDU_COMMIT_DENSITY,4,2 ; @CARL9170_TX_SUPER_AMPDU_COMMIT_DENSITY
	.comm	_CARL9170_TX_SUPER_AMPDU_FACTOR,4,2 ; @CARL9170_TX_SUPER_AMPDU_FACTOR
	.comm	_CARL9170_TX_SUPER_AMPDU_FACTOR_S,4,2 ; @CARL9170_TX_SUPER_AMPDU_FACTOR_S
	.comm	_CARL9170_TX_SUPER_AMPDU_COMMIT_FACTOR,4,2 ; @CARL9170_TX_SUPER_AMPDU_COMMIT_FACTOR
	.no_dead_strip	_carl9170_set_ampdu_params
.subsections_via_symbols
