	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_get_tx_sched                ## -- Begin function t4_get_tx_sched
	.p2align	4, 0x90
_t4_get_tx_sched:                       ## @t4_get_tx_sched
	.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
	movl	%r8d, %r12d
	movq	%rcx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r13
	movq	_TP_TX_MOD_Q1_Q0_RATE_LIMIT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	shrl	%eax
	subl	%eax, %ecx
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	movl	%r12d, %r8d
	callq	_t4_tp_tm_pio_read
	movl	-44(%rbp), %eax
	testb	$1, %bl
	je	LBB0_3
## %bb.2:
	shrl	$16, %eax
	movl	%eax, -44(%rbp)
LBB0_3:
	movl	%eax, %ecx
	andl	$255, %ecx
	je	LBB0_4
## %bb.5:
	movzbl	%ah, %esi
	imull	$1000, (%r15), %eax             ## imm = 0x3E8
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, -44(%rbp)
	imull	%eax, %esi
	imulq	$274877907, %rsi, %rax          ## imm = 0x10624DD3
	shrq	$35, %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, (%r13)
LBB0_7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	_TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	shrl	%eax
	subl	%eax, %ecx
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	movl	%r12d, %r8d
	callq	_t4_tp_tm_pio_read
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	shrl	$16, %ecx
	testb	$1, %bl
	cmovel	%eax, %ecx
	movzwl	%cx, %eax
	movl	%eax, -44(%rbp)
	imull	$10000, %eax, %ebx              ## imm = 0x2710
	movq	%r15, %rdi
	callq	_core_ticks_per_usec
	movl	%eax, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, (%r14)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_TX_MOD_Q1_Q0_RATE_LIMIT_A,4,2 ## @TP_TX_MOD_Q1_Q0_RATE_LIMIT_A
	.comm	_TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A,4,2 ## @TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_get_tx_sched                ; -- Begin function t4_get_tx_sched
	.p2align	2
_t4_get_tx_sched:                       ; @t4_get_tx_sched
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x4
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	cbz	x2, LBB0_7
; %bb.1:
	mov	x23, x2
Lloh0:
	adrp	x8, _TP_TX_MOD_Q1_Q0_RATE_LIMIT_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TP_TX_MOD_Q1_Q0_RATE_LIMIT_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w3, w8, w21, lsr #1
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #1
	mov	x4, x22
	bl	_t4_tp_tm_pio_read
	ldr	w8, [sp, #12]
	tbz	w21, #0, LBB0_3
; %bb.2:
	lsr	w8, w8, #16
	str	w8, [sp, #12]
LBB0_3:
	ands	w9, w8, #0xff
	b.eq	LBB0_5
; %bb.4:
	ubfx	w8, w8, #8, #8
	ldr	w10, [x20]
	mov	w11, #1000
	mul	w10, w10, w11
	udiv	w9, w10, w9
	str	w9, [sp, #12]
	mul	w8, w9, w8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #35
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	str	w8, [x23]
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w3, w8, w21, lsr #1
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #1
	mov	x4, x22
	bl	_t4_tp_tm_pio_read
	ldr	w8, [sp, #12]
	lsr	w9, w8, #16
	tst	w21, #0x1
	csel	w8, w8, w9, eq
	and	w8, w8, #0xffff
	str	w8, [sp, #12]
	mov	w9, #10000
	mul	w21, w8, w9
	mov	x0, x20
	bl	_core_ticks_per_usec
	udiv	w8, w21, w0
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_TX_MOD_Q1_Q0_RATE_LIMIT_A,4,2 ; @TP_TX_MOD_Q1_Q0_RATE_LIMIT_A
	.comm	_TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A,4,2 ; @TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A
.subsections_via_symbols
