	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_fw_get_max_amsdu_len
_rs_fw_get_max_amsdu_len:               ## @rs_fw_get_max_amsdu_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 24(%rdi)
	je	LBB0_6
## %bb.1:
	movq	_IEEE80211_VHT_CAP_MAX_MPDU_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.3:
	movq	_IEEE80211_MAX_MPDU_LEN_VHT_11454@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.8:
	movq	_IEEE80211_HT_CAP_MAX_AMSDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_10
## %bb.9:
	movq	_IEEE80211_MAX_MPDU_LEN_HT_BA@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_IEEE80211_MAX_MPDU_LEN_VHT_7991@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	_IEEE80211_MAX_MPDU_LEN_VHT_3895@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_10:
	movq	_IEEE80211_MAX_MPDU_LEN_HT_3839@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_VHT_CAP_MAX_MPDU_MASK,4,2 ## @IEEE80211_VHT_CAP_MAX_MPDU_MASK
	.comm	_IEEE80211_MAX_MPDU_LEN_VHT_11454,4,2 ## @IEEE80211_MAX_MPDU_LEN_VHT_11454
	.comm	_IEEE80211_MAX_MPDU_LEN_VHT_7991,4,2 ## @IEEE80211_MAX_MPDU_LEN_VHT_7991
	.comm	_IEEE80211_MAX_MPDU_LEN_VHT_3895,4,2 ## @IEEE80211_MAX_MPDU_LEN_VHT_3895
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ## @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_IEEE80211_MAX_MPDU_LEN_HT_BA,4,2 ## @IEEE80211_MAX_MPDU_LEN_HT_BA
	.comm	_IEEE80211_MAX_MPDU_LEN_HT_3839,4,2 ## @IEEE80211_MAX_MPDU_LEN_HT_3839
	.no_dead_strip	_rs_fw_get_max_amsdu_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_fw_get_max_amsdu_len
_rs_fw_get_max_amsdu_len:               ; @rs_fw_get_max_amsdu_len
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _IEEE80211_VHT_CAP_MAX_MPDU_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_MAX_MPDU_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _IEEE80211_MAX_MPDU_LEN_VHT_11454@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_MAX_MPDU_LEN_VHT_11454@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.6:
Lloh9:
	adrp	x8, _IEEE80211_MAX_MPDU_LEN_HT_BA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_MAX_MPDU_LEN_HT_BA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_7:
Lloh12:
	adrp	x8, _IEEE80211_MAX_MPDU_LEN_VHT_7991@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_MAX_MPDU_LEN_VHT_7991@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_8:
Lloh15:
	adrp	x8, _IEEE80211_MAX_MPDU_LEN_VHT_3895@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_MAX_MPDU_LEN_VHT_3895@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
LBB0_9:
	mov	w0, #0
	ret
LBB0_10:
Lloh18:
	adrp	x8, _IEEE80211_MAX_MPDU_LEN_HT_3839@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_MAX_MPDU_LEN_HT_3839@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_VHT_CAP_MAX_MPDU_MASK,4,2 ; @IEEE80211_VHT_CAP_MAX_MPDU_MASK
	.comm	_IEEE80211_MAX_MPDU_LEN_VHT_11454,4,2 ; @IEEE80211_MAX_MPDU_LEN_VHT_11454
	.comm	_IEEE80211_MAX_MPDU_LEN_VHT_7991,4,2 ; @IEEE80211_MAX_MPDU_LEN_VHT_7991
	.comm	_IEEE80211_MAX_MPDU_LEN_VHT_3895,4,2 ; @IEEE80211_MAX_MPDU_LEN_VHT_3895
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ; @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_IEEE80211_MAX_MPDU_LEN_HT_BA,4,2 ; @IEEE80211_MAX_MPDU_LEN_HT_BA
	.comm	_IEEE80211_MAX_MPDU_LEN_HT_3839,4,2 ; @IEEE80211_MAX_MPDU_LEN_HT_3839
	.no_dead_strip	_rs_fw_get_max_amsdu_len
.subsections_via_symbols
