	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ali_program_timings
_ali_program_timings:                   ## @ali_program_timings
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	movl	(%r15), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	86(%rax), %r15d
	movl	(%r13), %eax
	andl	$1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(,%rax,4), %r13d
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pci_read_config_byte
	movl	$15, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	notl	%eax
	shll	%cl, %ebx
	andl	-44(%rbp), %eax
	orl	%eax, %ebx
	movl	%ebx, -44(%rbp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_pci_write_config_byte
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	setne	%bl
	leal	88(,%rbx,4), %r15d
	movl	(%r12), %edi
	movl	$1, %esi
	movl	$8, %edx
	callq	_clamp_val
	andl	$7, %eax
	movl	%eax, (%r12)
	movl	4(%r12), %edi
	movl	$1, %esi
	movl	$8, %edx
	callq	_clamp_val
	andl	$7, %eax
	movl	%eax, 4(%r12)
	movl	8(%r12), %edi
	movl	$1, %esi
	movl	$16, %edx
	callq	_clamp_val
	andl	$15, %eax
	movl	%eax, 8(%r12)
	movl	12(%r12), %edi
	movl	$1, %esi
	movl	$8, %edx
	callq	_clamp_val
	andl	$7, %eax
	movl	%eax, 12(%r12)
	movl	16(%r12), %edi
	movl	$1, %esi
	movl	$16, %edx
	callq	_clamp_val
	andl	$15, %eax
	movl	%eax, 16(%r12)
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pci_write_config_byte
	leal	89(,%rbx,4), %esi
	movl	4(%r12), %edx
	shll	$4, %edx
	orl	8(%r12), %edx
	movq	%r14, %rdi
	callq	_pci_write_config_byte
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rbx,4), %esi
	addl	$90, %esi
	movl	12(%r12), %edx
	shll	$4, %edx
	orl	16(%r12), %edx
	movq	%r14, %rdi
	callq	_pci_write_config_byte
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ali_program_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ali_program_timings
_ali_program_timings:                   ; @ali_program_timings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0, #4]
	bl	_to_pci_dev
	mov	x20, x0
	ldr	w24, [x23]
	add	w23, w24, #86
	ldr	w8, [x22]
	and	w22, w8, #0x1
	lsl	w25, w22, #2
	add	x2, sp, #12
	mov	x1, x23
	bl	_pci_read_config_byte
	mov	w8, #15
	lsl	w8, w8, w25
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	lsl	w9, w21, w25
	orr	w2, w8, w9
	str	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x23
	bl	_pci_write_config_byte
	cbz	x19, LBB0_2
; %bb.1:
	mov	w8, #92
	mov	w9, #88
	cmp	w24, #0
	csel	w21, w9, w8, eq
	ldr	w0, [x19]
	mov	w1, #1
	mov	w2, #8
	bl	_clamp_val
	and	w8, w0, #0x7
	str	w8, [x19]
	ldr	w0, [x19, #4]
	mov	w1, #1
	mov	w2, #8
	bl	_clamp_val
	and	w8, w0, #0x7
	str	w8, [x19, #4]
	ldr	w0, [x19, #8]
	mov	w1, #1
	mov	w2, #16
	bl	_clamp_val
	and	w8, w0, #0xf
	str	w8, [x19, #8]
	ldr	w0, [x19, #12]
	mov	w1, #1
	mov	w2, #8
	bl	_clamp_val
	and	w8, w0, #0x7
	str	w8, [x19, #12]
	ldr	w0, [x19, #16]
	mov	w1, #1
	mov	w2, #16
	bl	_clamp_val
	and	w8, w0, #0xf
	str	w8, [x19, #16]
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_pci_write_config_byte
	orr	w1, w21, #0x1
	ldp	w8, w9, [x19, #4]
	orr	w2, w9, w8, lsl #4
	mov	x0, x20
	bl	_pci_write_config_byte
	orr	w8, w22, w21
	orr	w1, w8, #0x2
	ldp	w8, w9, [x19, #12]
	orr	w2, w9, w8, lsl #4
	mov	x0, x20
	bl	_pci_write_config_byte
LBB0_2:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ali_program_timings
.subsections_via_symbols
