	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmm_process_tspec              ## -- Begin function wmm_process_tspec
	.p2align	4, 0x90
_wmm_process_tspec:                     ## @wmm_process_tspec
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movl	(%rax), %r9d
	movl	4(%rax), %ecx
	movl	%ecx, %edx
	shrl	$3, %edx
	andl	$7, %edx
	shrl	$2, %ecx
	andl	$1, %ecx
	movl	%r9d, %r8d
	shrl	$5, %r8d
	andl	$3, %r8d
	shrl	%r9d
	andl	$15, %r9d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	20(%r13), %edi
	callq	_le_to_host16
	movl	(%r14), %edi
	movl	%eax, %edx
	andl	$32767, %edx                    ## imm = 0x7FFF
	testl	$32768, %eax                    ## imm = 0x8000
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r14), %ebx
	movl	24(%r13), %edi
	callq	_le_to_host32
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r14), %ebx
	movl	16(%r13), %edi
	callq	_le_to_host32
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	12(%r13), %edi
	callq	_le_to_host16
	movl	(%r14), %edi
	movl	%eax, %edx
	sarl	$13, %edx
	andl	$8191, %eax                     ## imm = 0x1FFF
	imull	$10000, %eax, %ecx              ## imm = 0x2710
	shrl	$13, %ecx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	20(%r13), %edi
	callq	_le_to_host16
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movl	24(%r13), %edi
	callq	_le_to_host32
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	leal	(%rbx,%rcx), %eax
	decl	%eax
	cltd
	idivl	%ebx
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	16(%r13), %edi
	callq	_le_to_host32
	cmpl	$999999, %eax                   ## imm = 0xF423F
	jg	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movl	20(%r13), %edi
	callq	_le_to_host16
	movl	%eax, %r12d
	movl	16(%r13), %edi
	callq	_le_to_host32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%r13), %edi
	callq	_le_to_host16
	cmpl	$8192, %eax                     ## imm = 0x2000
	jg	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	leaq	L_.str.10(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_WMM_ADDTS_STATUS_INVALID_PARAMETERS@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%eax, %r15d
	shll	$3, %r12d
	andl	$262136, %r12d                  ## imm = 0x3FFF8
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	imulq	$1125899907, %rax, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$50, %rcx
	addl	%eax, %ecx
	movl	%r12d, %eax
	xorl	%edx, %edx
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	addl	$50, %eax
	imull	%ebx, %r15d
	imull	%eax, %r15d
	movl	%r15d, %edx
	shrl	$13, %edx
	movl	(%r14), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	shrl	$18, %r15d
	movl	%r15d, %edi
	callq	_host_to_le16
	movl	%eax, 8(%r13)
	movq	_WMM_ADDTS_STATUS_ADMISSION_ACCEPTED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WMM: TS Info: UP=%d PSB=%d Direction=%d TID=%d"

L_.str.1:                               ## @.str.1
	.asciz	"WMM: Nominal MSDU Size: %d%s"

L_.str.2:                               ## @.str.2
	.asciz	" (fixed)"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"WMM: Mean Data Rate: %u bps"

L_.str.5:                               ## @.str.5
	.asciz	"WMM: Minimum PHY Rate: %u bps"

L_.str.6:                               ## @.str.6
	.asciz	"WMM: Surplus Bandwidth Allowance: %u.%04u"

L_.str.7:                               ## @.str.7
	.asciz	"WMM: Invalid Nominal MSDU Size (0)"

	.comm	_WMM_ADDTS_STATUS_INVALID_PARAMETERS,4,2 ## @WMM_ADDTS_STATUS_INVALID_PARAMETERS
L_.str.8:                               ## @.str.8
	.asciz	"WMM: Packets-per-second estimate for TSPEC: %d"

L_.str.9:                               ## @.str.9
	.asciz	"WMM: Too small Minimum PHY Rate"

L_.str.10:                              ## @.str.10
	.asciz	"WMM: Surplus Bandwidth Allowance not greater than unity"

L_.str.11:                              ## @.str.11
	.asciz	"WMM: Estimated medium time: %lu"

	.comm	_WMM_ADDTS_STATUS_REFUSED,4,2   ## @WMM_ADDTS_STATUS_REFUSED
	.comm	_WMM_ADDTS_STATUS_ADMISSION_ACCEPTED,4,2 ## @WMM_ADDTS_STATUS_ADMISSION_ACCEPTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmm_process_tspec              ; -- Begin function wmm_process_tspec
	.p2align	2
_wmm_process_tspec:                     ; @wmm_process_tspec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
	ldp	w8, w9, [x8]
	ubfx	w10, w9, #3, #3
	ubfx	w9, w9, #2, #1
	ubfx	w11, w8, #5, #2
	ubfx	w8, w8, #1, #4
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	stp	x11, x8, [sp, #16]
	stp	x10, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #20]
	bl	_le_to_host16
	ldr	w8, [x22]
	and	w9, w0, #0x7fff
Lloh4:
	adrp	x10, l_.str.2@PAGE
Lloh5:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh6:
	adrp	x11, l_.str.3@PAGE
Lloh7:
	add	x11, x11, l_.str.3@PAGEOFF
	tst	w0, #0x8000
	csel	x10, x11, x10, eq
	stp	x9, x10, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	ldr	w20, [x22]
	ldr	w0, [x19, #24]
	bl	_le_to_host32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	ldr	w20, [x22]
	ldr	w0, [x19, #16]
	bl	_le_to_host32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	ldr	w0, [x19, #12]
	bl	_le_to_host16
	ldr	w8, [x22]
	asr	w9, w0, #13
	and	w10, w0, #0x1fff
	mov	w11, #10000
	mul	w10, w10, w11
	lsr	w10, w10, #13
	stp	x9, x10, [sp]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	ldr	w0, [x19, #20]
	bl	_le_to_host16
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	w23, #16960
	movk	w23, #15, lsl #16
	ldr	w0, [x19, #24]
	bl	_le_to_host32
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	add	w8, w20, w8, asr #3
	sub	w8, w8, #1
	ldr	w0, [x22]
	sdiv	w24, w8, w20
	str	x24, [sp]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #16]
	bl	_le_to_host32
	cmp	w0, w23
	b.ge	LBB0_4
; %bb.2:
	ldr	w0, [x22]
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	w0, [x22]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #20]
	bl	_le_to_host16
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_le_to_host32
	mov	x21, x0
	ldr	w0, [x19, #12]
	bl	_le_to_host16
	cmp	w0, #2, lsl #12                 ; =8192
	b.gt	LBB0_8
; %bb.5:
	ldr	w0, [x22]
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_6:
	bl	_wpa_printf
Lloh24:
	adrp	x8, _WMM_ADDTS_STATUS_INVALID_PARAMETERS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WMM_ADDTS_STATUS_INVALID_PARAMETERS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	ubfiz	w8, w20, #3, #15
	sdiv	w9, w21, w23
	sdiv	w8, w8, w9
	add	w8, w8, #50
	mul	w9, w0, w24
	mul	w20, w9, w8
	lsr	w8, w20, #13
	ldr	w0, [x22]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.11@PAGE
Lloh27:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_wpa_printf
	lsr	w0, w20, #18
	bl	_host_to_le16
	str	w0, [x19, #8]
Lloh28:
	adrp	x8, _WMM_ADDTS_STATUS_ADMISSION_ACCEPTED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WMM_ADDTS_STATUS_ADMISSION_ACCEPTED@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WMM: TS Info: UP=%d PSB=%d Direction=%d TID=%d"

l_.str.1:                               ; @.str.1
	.asciz	"WMM: Nominal MSDU Size: %d%s"

l_.str.2:                               ; @.str.2
	.asciz	" (fixed)"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"WMM: Mean Data Rate: %u bps"

l_.str.5:                               ; @.str.5
	.asciz	"WMM: Minimum PHY Rate: %u bps"

l_.str.6:                               ; @.str.6
	.asciz	"WMM: Surplus Bandwidth Allowance: %u.%04u"

l_.str.7:                               ; @.str.7
	.asciz	"WMM: Invalid Nominal MSDU Size (0)"

	.comm	_WMM_ADDTS_STATUS_INVALID_PARAMETERS,4,2 ; @WMM_ADDTS_STATUS_INVALID_PARAMETERS
l_.str.8:                               ; @.str.8
	.asciz	"WMM: Packets-per-second estimate for TSPEC: %d"

l_.str.9:                               ; @.str.9
	.asciz	"WMM: Too small Minimum PHY Rate"

l_.str.10:                              ; @.str.10
	.asciz	"WMM: Surplus Bandwidth Allowance not greater than unity"

l_.str.11:                              ; @.str.11
	.asciz	"WMM: Estimated medium time: %lu"

	.comm	_WMM_ADDTS_STATUS_REFUSED,4,2   ; @WMM_ADDTS_STATUS_REFUSED
	.comm	_WMM_ADDTS_STATUS_ADMISSION_ACCEPTED,4,2 ; @WMM_ADDTS_STATUS_ADMISSION_ACCEPTED
.subsections_via_symbols
