	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aec6260_set_mode
_aec6260_set_mode:                      ## @aec6260_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %edi
	callq	_to_pci_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	movq	(%rax), %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movb	(%r13), %r14b
	shlb	$2, %r14b
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	callq	_local_irq_save
	movl	(%r13), %esi
	orl	$64, %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_byte
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_pci_bus_clock_list
	movl	%eax, -44(%rbp)
	movl	(%r13), %esi
	orl	$64, %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_pci_write_config_byte
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %esi
	orl	$68, %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_byte
	andb	$4, %r14b
	movl	$7, %ebx
	movl	%r14d, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	-48(%rbp), %ebx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_pci_bus_clock_list_ultra
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, %ebx
	movl	(%r12), %esi
	orl	$68, %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_pci_write_config_byte
	callq	_local_irq_restore
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_aec6260_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aec6260_set_mode
_aec6260_set_mode:                      ; @aec6260_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
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x23, #4]
	bl	_to_pci_dev
	mov	x19, x0
	bl	_pci_get_drvdata
	ldr	x22, [x0]
	ldr	w24, [x21]
	str	xzr, [sp, #8]
	bl	_local_irq_save
	ldr	w8, [x21]
	orr	w1, w8, #0x40
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_byte
	mov	x0, x20
	mov	x1, x22
	bl	_pci_bus_clock_list
	mov	x2, x0
	str	w0, [sp, #8]
	ldr	w8, [x21]
	orr	w1, w8, #0x40
	mov	x0, x19
	bl	_pci_write_config_byte
	ldr	w8, [x23]
	mov	w21, #68
	orr	w1, w8, w21
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_byte
	ubfiz	w24, w24, #2, #1
	ldr	w8, [sp, #12]
	mov	w9, #7
	lsl	w9, w9, w24
	bic	w25, w8, w9
	mov	x0, x20
	mov	x1, x22
	bl	_pci_bus_clock_list_ultra
	lsl	w8, w0, w24
	orr	w2, w8, w25
	ldr	w8, [x23]
	orr	w1, w8, w21
	mov	x0, x19
	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	_aec6260_set_mode
.subsections_via_symbols
