	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_config_sched                ## -- Begin function t3_config_sched
	.p2align	4, 0x90
_t3_config_sched:                       ## @t3_config_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	%edx, %r15d
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	imull	$1000, (%r14), %r8d             ## imm = 0x3E8
	imull	$125, %esi, %r10d
	movl	$1, %ecx
	movl	$-1, %r9d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
	movl	%eax, %edi
	shrl	%edi
	addl	%r10d, %edi
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%esi
	cmpl	$255, %eax
	ja	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edi, %esi
	jbe	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	xorl	%ebx, %ebx
	cmpl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_3
	jmp	LBB0_11
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	imull	%eax, %esi
	movl	%esi, %edx
	subl	%r10d, %edx
	negl	%edx
	subl	%r10d, %esi
	cmovbl	%edx, %esi
	cmpl	%r9d, %esi
	cmovbel	%ecx, %ebx
	cmovbel	%eax, %r12d
	cmovbl	%esi, %r9d
	leal	1(%rcx), %eax
	cmpl	$255, %ecx
	movl	%eax, %ecx
	jne	LBB0_3
## %bb.6:
	testl	%ebx, %ebx
	jne	LBB0_7
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
LBB0_7:
	movq	_A_TP_TM_PIO_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_A_TP_TX_MOD_Q1_Q0_RATE_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %eax
	shrl	$31, %eax
	addl	%r15d, %eax
	sarl	%eax
	subl	%eax, %edx
	movq	%r14, %rdi
	callq	_t3_write_reg
	movq	_A_TP_TM_PIO_DATA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_t3_read_reg
	testb	$1, %r15b
	jne	LBB0_8
## %bb.12:
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	shll	$8, %r12d
	orl	%ebx, %r12d
	orl	%eax, %r12d
	jmp	LBB0_13
LBB0_8:
	movzwl	%ax, %eax
	shll	$16, %ebx
	orl	%eax, %ebx
	shll	$24, %r12d
	orl	%ebx, %r12d
LBB0_13:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_t3_write_reg
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_A_TP_TM_PIO_ADDR,4,2           ## @A_TP_TM_PIO_ADDR
	.comm	_A_TP_TX_MOD_Q1_Q0_RATE_LIMIT,4,2 ## @A_TP_TX_MOD_Q1_Q0_RATE_LIMIT
	.comm	_A_TP_TM_PIO_DATA,4,2           ## @A_TP_TM_PIO_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_config_sched                ; -- Begin function t3_config_sched
	.p2align	2
_t3_config_sched:                       ; @t3_config_sched
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x0
	cbz	w1, LBB0_8
; %bb.1:
	mov	w21, #0
	mov	w22, #0
	ldr	w8, [x19]
	mov	w9, #1000
	mul	w8, w8, w9
	mov	w9, #125
	mul	w9, w1, w9
	mov	w11, #1
	mov	w10, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	udiv	w13, w8, w11
	add	w14, w9, w13, lsr #1
	udiv	w12, w14, w13
	cmp	w12, #255
	ccmp	w13, w14, #2, ls
	b.ls	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w22, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w11, w11, #1
	cmp	w11, #256
	b.ne	LBB0_2
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mul	w13, w12, w13
	sub	w14, w9, w13
	subs	w13, w13, w9
	csel	w13, w14, w13, lo
	cmp	w13, w10
	csel	w10, w13, w10, lo
	csel	w22, w22, w11, hi
	csel	w21, w21, w12, hi
	add	w12, w11, #1
	cmp	w11, #255
	mov	x11, x12
	b.ne	LBB0_2
; %bb.6:
	cbnz	w22, LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	mov	w22, #0
	mov	w21, #0
LBB0_9:
Lloh3:
	adrp	x8, _A_TP_TM_PIO_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_TP_TM_PIO_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _A_TP_TX_MOD_Q1_Q0_RATE_LIMIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A_TP_TX_MOD_Q1_Q0_RATE_LIMIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w20, #0
	cinc	w9, w20, lt
	sub	w2, w8, w9, asr #1
	mov	x0, x19
	bl	_t3_write_reg
Lloh9:
	adrp	x23, _A_TP_TM_PIO_DATA@GOTPAGE
Lloh10:
	ldr	x23, [x23, _A_TP_TM_PIO_DATA@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_t3_read_reg
	and	w8, w0, #0xffff0000
	orr	w9, w22, w21, lsl #8
	orr	w8, w9, w8
	bfi	w0, w22, #16, #16
	orr	w9, w0, w21, lsl #24
	tst	w20, #0x1
	csel	w2, w8, w9, eq
	ldr	w1, [x23]
	mov	x0, x19
	bl	_t3_write_reg
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_A_TP_TM_PIO_ADDR,4,2           ; @A_TP_TM_PIO_ADDR
	.comm	_A_TP_TX_MOD_Q1_Q0_RATE_LIMIT,4,2 ; @A_TP_TX_MOD_Q1_Q0_RATE_LIMIT
	.comm	_A_TP_TM_PIO_DATA,4,2           ; @A_TP_TM_PIO_DATA
.subsections_via_symbols
