	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aec6210_set_mode
_aec6210_set_mode:                      ## @aec6210_set_mode
	.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
	movq	%rsi, %r13
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	movq	(%rax), %r15
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	(%r13), %ebx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	callq	_local_irq_save
	movl	4(%r13), %esi
	addl	%esi, %esi
	orl	$64, %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_pci_bus_clock_list
	movl	%eax, %edx
	shll	$4, %edx
	andl	$3840, %edx                     ## imm = 0xF00
	andl	$15, %eax
	orl	%eax, %edx
	movl	%edx, -48(%rbp)
	movl	4(%r13), %esi
	addl	%esi, %esi
	orl	$64, %esi
	movq	%r14, %rdi
	callq	_pci_write_config_word
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$84, %esi
	callq	_pci_read_config_byte
	movb	4(%r13), %cl
	addb	%cl, %cl
	movl	-44(%rbp), %r15d
	movl	$3, %ebx
	movl	$3, %r12d
	shll	%cl, %r12d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_pci_bus_clock_list_ultra
	movb	4(%r13), %cl
	addb	%cl, %cl
	shll	%cl, %eax
	shll	%cl, %ebx
	orl	%r12d, %ebx
	notl	%ebx
	andl	%r15d, %ebx
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	$84, %esi
	movl	%ebx, %edx
	callq	_pci_write_config_byte
	callq	_local_irq_restore
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_aec6210_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aec6210_set_mode
_aec6210_set_mode:                      ; @aec6210_set_mode
	.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	x20, x1
	ldr	w0, [x0]
	bl	_to_pci_dev
	mov	x19, x0
	bl	_pci_get_drvdata
	ldr	x21, [x0]
	str	xzr, [sp, #8]
	ldr	w22, [x20]
	bl	_local_irq_save
	ldr	w8, [x20, #4]
	lsl	w8, w8, #1
	orr	w1, w8, #0x40
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	mov	x0, x22
	mov	x1, x21
	bl	_pci_bus_clock_list
	lsr	w8, w0, #4
	and	w2, w0, #0xf
	bfi	w2, w8, #8, #4
	str	w2, [sp, #12]
	ldr	w8, [x20, #4]
	lsl	w8, w8, #1
	orr	w1, w8, #0x40
	mov	x0, x19
	bl	_pci_write_config_word
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #84
	bl	_pci_read_config_byte
	ldr	w8, [x20, #4]
	lsl	w8, w8, #1
	ldr	w23, [sp, #8]
	mov	w24, #3
	lsl	w25, w24, w8
	mov	x0, x22
	mov	x1, x21
	bl	_pci_bus_clock_list_ultra
	ldr	w8, [x20, #4]
	lsl	w8, w8, #1
	lsl	w9, w0, w8
	lsl	w8, w24, w8
	orr	w8, w8, w25
	bic	w8, w23, w8
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #84
	bl	_pci_write_config_byte
	bl	_local_irq_restore
	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	_aec6210_set_mode
.subsections_via_symbols
