	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm8211_calc_durations
_adm8211_calc_durations:                ## @adm8211_calc_durations
	.cfi_startproc
## %bb.0:
                                        ## kill: def $ecx killed $ecx def $rcx
	leaq	(%rdx,%rdx,4), %rax
	shlq	$4, %rax
	movslq	%r8d, %r10
	addq	%r10, %rax
	addq	$1919, %rax                     ## imm = 0x77F
	movq	%rax, %rdx
	orq	%r10, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%r10
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%eax, (%rdi)
	movq	_PLCP_SIGNAL_2M@GOTPCREL(%rip), %r10
	leal	542(%rax), %edx
	addl	$430, %eax                      ## imm = 0x1AE
	cmpl	%r8d, (%r10)
	cmovgel	%edx, %eax
	leal	288(%rax), %edx
	testl	%r9d, %r9d
	cmovnel	%eax, %edx
	movl	%edx, (%rdi)
	shll	$4, %ecx
	leal	(%rcx,%rcx,4), %eax
	cltd
	idivl	%r8d
	movl	%eax, (%rsi)
	movq	_PLCP_SIGNAL_11M@GOTPCREL(%rip), %rcx
	cmpl	%r8d, (%rcx)
	jne	LBB0_7
## %bb.4:
	cmpl	$30, %edx
	jg	LBB0_7
## %bb.5:
	testl	%edx, %edx
	jle	LBB0_7
## %bb.6:
	orl	$32768, %eax                    ## imm = 0x8000
	jmp	LBB0_8
LBB0_7:
	testl	%edx, %edx
	je	LBB0_9
LBB0_8:
	incl	%eax
	movl	%eax, (%rsi)
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLCP_SIGNAL_2M,4,2             ## @PLCP_SIGNAL_2M
	.comm	_PLCP_SIGNAL_11M,4,2            ## @PLCP_SIGNAL_11M
	.comm	_IEEE80211_DUR_DS_FAST_ACK,8,3  ## @IEEE80211_DUR_DS_FAST_ACK
	.comm	_IEEE80211_DUR_DS_FAST_CTS,8,3  ## @IEEE80211_DUR_DS_FAST_CTS
	.comm	_IEEE80211_DUR_DS_FAST_PLCPHDR,4,2 ## @IEEE80211_DUR_DS_FAST_PLCPHDR
	.comm	_IEEE80211_DUR_DS_LONG_PREAMBLE,4,2 ## @IEEE80211_DUR_DS_LONG_PREAMBLE
	.comm	_IEEE80211_DUR_DS_SHORT_PREAMBLE,4,2 ## @IEEE80211_DUR_DS_SHORT_PREAMBLE
	.comm	_IEEE80211_DUR_DS_SIFS,4,2      ## @IEEE80211_DUR_DS_SIFS
	.comm	_IEEE80211_DUR_DS_SLOW_ACK,8,3  ## @IEEE80211_DUR_DS_SLOW_ACK
	.comm	_IEEE80211_DUR_DS_SLOW_CTS,8,3  ## @IEEE80211_DUR_DS_SLOW_CTS
	.comm	_IEEE80211_DUR_DS_SLOW_PLCPHDR,4,2 ## @IEEE80211_DUR_DS_SLOW_PLCPHDR
	.no_dead_strip	_adm8211_calc_durations
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm8211_calc_durations
_adm8211_calc_durations:                ; @adm8211_calc_durations
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w4 killed $w4 def $x4
	mov	w8, #80
	sxtw	x9, w4
	madd	x8, x2, x8, x9
	add	x8, x8, #1919
	udiv	x8, x8, x9
	str	w8, [x0]
Lloh0:
	adrp	x9, _PLCP_SIGNAL_2M@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLCP_SIGNAL_2M@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #542
	mov	w11, #430
	cmp	w9, w4
	csel	w9, w11, w10, lt
	add	w8, w9, w8
	add	w9, w8, #288
	cmp	w5, #0
	csel	w8, w9, w8, eq
	str	w8, [x0]
	add	w8, w3, w3, lsl #2
	lsl	w9, w8, #4
	sdiv	w8, w9, w4
	str	w8, [x1]
	msub	w9, w8, w4, w9
Lloh3:
	adrp	x10, _PLCP_SIGNAL_11M@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PLCP_SIGNAL_11M@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w10, w4
	b.ne	LBB0_4
; %bb.1:
	cmp	w9, #30
	b.gt	LBB0_4
; %bb.2:
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.3:
	orr	w8, w8, #0x8000
	b	LBB0_5
LBB0_4:
	cbz	w9, LBB0_6
LBB0_5:
	add	w8, w8, #1
	str	w8, [x1]
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLCP_SIGNAL_2M,4,2             ; @PLCP_SIGNAL_2M
	.comm	_PLCP_SIGNAL_11M,4,2            ; @PLCP_SIGNAL_11M
	.comm	_IEEE80211_DUR_DS_FAST_ACK,8,3  ; @IEEE80211_DUR_DS_FAST_ACK
	.comm	_IEEE80211_DUR_DS_FAST_CTS,8,3  ; @IEEE80211_DUR_DS_FAST_CTS
	.comm	_IEEE80211_DUR_DS_FAST_PLCPHDR,4,2 ; @IEEE80211_DUR_DS_FAST_PLCPHDR
	.comm	_IEEE80211_DUR_DS_LONG_PREAMBLE,4,2 ; @IEEE80211_DUR_DS_LONG_PREAMBLE
	.comm	_IEEE80211_DUR_DS_SHORT_PREAMBLE,4,2 ; @IEEE80211_DUR_DS_SHORT_PREAMBLE
	.comm	_IEEE80211_DUR_DS_SIFS,4,2      ; @IEEE80211_DUR_DS_SIFS
	.comm	_IEEE80211_DUR_DS_SLOW_ACK,8,3  ; @IEEE80211_DUR_DS_SLOW_ACK
	.comm	_IEEE80211_DUR_DS_SLOW_CTS,8,3  ; @IEEE80211_DUR_DS_SLOW_CTS
	.comm	_IEEE80211_DUR_DS_SLOW_PLCPHDR,4,2 ; @IEEE80211_DUR_DS_SLOW_PLCPHDR
	.no_dead_strip	_adm8211_calc_durations
.subsections_via_symbols
