	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_generic_frame_duration ## -- Begin function ieee80211_generic_frame_duration
	.p2align	4, 0x90
_ieee80211_generic_frame_duration:      ## @ieee80211_generic_frame_duration
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r14
	movl	%edx, %r15d
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rdi
	callq	_vif_to_sdata
	movl	4(%rax), %r8d
	movq	_IEEE80211_SDATA_OPERATING_GMODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_IEEE80211_RATE_ERP_G@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r12), %ebx
	jmp	LBB0_4
LBB0_1:
	xorl	%r8d, %r8d
LBB0_4:
	movl	4(%r12), %edx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_ieee80211_frame_duration
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_to_le16                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_SDATA_OPERATING_GMODE,4,2 ## @IEEE80211_SDATA_OPERATING_GMODE
	.comm	_IEEE80211_RATE_ERP_G,4,2       ## @IEEE80211_RATE_ERP_G
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_generic_frame_duration ; -- Begin function ieee80211_generic_frame_duration
	.p2align	2
_ieee80211_generic_frame_duration:      ; @ieee80211_generic_frame_duration
	.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	x21, x4
	mov	x19, x3
	mov	x20, x2
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x1
	bl	_vif_to_sdata
	ldp	w8, w4, [x0]
Lloh0:
	adrp	x9, _IEEE80211_SDATA_OPERATING_GMODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_SDATA_OPERATING_GMODE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _IEEE80211_RATE_ERP_G@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_RATE_ERP_G@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w3, w9, w8
	b	LBB0_5
LBB0_3:
	mov	w3, #0
	mov	w4, #0
	b	LBB0_5
LBB0_4:
	mov	w3, #0
LBB0_5:
	ldr	w2, [x21, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_ieee80211_frame_duration
	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
	b	_cpu_to_le16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_SDATA_OPERATING_GMODE,4,2 ; @IEEE80211_SDATA_OPERATING_GMODE
	.comm	_IEEE80211_RATE_ERP_G,4,2       ; @IEEE80211_RATE_ERP_G
.subsections_via_symbols
