	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pata_at32_setup_timing
_pata_at32_setup_timing:                ## @pata_at32_setup_timing
	.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
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	4(%rsi), %r14
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movups	(%r12), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_smc_set_timing
	movl	4(%rbx), %edx
	movl	8(%rbx), %eax
	leal	1(%rdx), %ecx
	movl	%ecx, 4(%rbx)
	leal	(%rax,%rdx), %esi
	incl	%esi
	movl	12(%rbx), %edx
	movl	%edx, %edi
	subl	%esi, %edi
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	addl	$2, %esi
	movl	%esi, 12(%rbx)
	movl	%esi, %edx
LBB0_2:
	movl	$1, 16(%rbx)
	leal	-2(%rdx), %esi
	movl	%esi, 20(%rbx)
	movl	%edx, 24(%rbx)
	movl	%ecx, 28(%rbx)
	movl	%eax, 32(%rbx)
	movl	$1, 36(%rbx)
	movl	%esi, 40(%rbx)
	movl	12(%r12), %edx
	movl	8(%r12), %ecx
	movl	(%r12), %r9d
	movl	4(%r12), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	12(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	8(%rbx), %r8d
	movl	16(%rbx), %r9d
	movl	20(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_smc_set_configuration
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ATA: C=%d S=%d P=%d R=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"SMC: C=%d S=%d P=%d NS=%d NP=%d\n"

	.no_dead_strip	_pata_at32_setup_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pata_at32_setup_timing
_pata_at32_setup_timing:                ; @pata_at32_setup_timing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	add	x19, x1, #4
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	q0, [x22]
	str	q0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_smc_set_timing
	ldp	w9, w8, [x20, #4]
	add	w9, w9, #1
	str	w9, [x20, #4]
	ldr	w10, [x20, #12]
	add	w11, w8, w9
	sub	w12, w10, w11
	cmp	w12, #1
	b.gt	LBB0_2
; %bb.1:
	add	w10, w11, #2
	str	w10, [x20, #12]
LBB0_2:
	mov	w11, #1
	sub	w12, w10, #2
	stp	w11, w12, [x20, #16]
	stp	w10, w9, [x20, #24]
	stp	w8, w11, [x20, #32]
	str	w12, [x20, #40]
	ldp	w3, w2, [x22, #8]
	ldp	w5, w4, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldp	w3, w4, [x20, #4]
	ldp	w2, w5, [x20, #12]
	ldr	w8, [x20, #20]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	w0, [x20]
	mov	x1, x19
	bl	_smc_set_configuration
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ATA: C=%d S=%d P=%d R=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"SMC: C=%d S=%d P=%d NS=%d NP=%d\n"

	.no_dead_strip	_pata_at32_setup_timing
.subsections_via_symbols
