	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_timings_udma_ata6
_set_timings_udma_ata6:                 ## @set_timings_udma_ata6
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdx, %rdi
	callq	_ide_timing_find_mode
	movq	_XFER_UDMA_5@GOTPCREL(%rip), %rdx
	movl	$1, %ecx
	cmpq	%rbx, (%rdx)
	jl	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_kauai_udma_timings@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_kauai_lookup_timing
	movq	_TR_100_UDMAREG_UDMA_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%r14), %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r14)
	movq	_TR_100_UDMAREG_UDMA_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	xorl	%ecx, %ecx
LBB0_3:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFER_UDMA_5,8,3                ## @XFER_UDMA_5
	.comm	_kauai_udma_timings,4,2         ## @kauai_udma_timings
	.comm	_TR_100_UDMAREG_UDMA_MASK,4,2   ## @TR_100_UDMAREG_UDMA_MASK
	.comm	_TR_100_UDMAREG_UDMA_EN,4,2     ## @TR_100_UDMAREG_UDMA_EN
	.no_dead_strip	_set_timings_udma_ata6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_timings_udma_ata6
_set_timings_udma_ata6:                 ; @set_timings_udma_ata6
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	mov	x0, x2
	bl	_ide_timing_find_mode
Lloh0:
	adrp	x8, _XFER_UDMA_5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFER_UDMA_5@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	ccmp	x0, #0, #4, ge
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _kauai_udma_timings@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kauai_udma_timings@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_kauai_lookup_timing
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
Lloh6:
	adrp	x10, _TR_100_UDMAREG_UDMA_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TR_100_UDMAREG_UDMA_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	bic	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19]
Lloh9:
	adrp	x9, _TR_100_UDMAREG_UDMA_EN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TR_100_UDMAREG_UDMA_EN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XFER_UDMA_5,8,3                ; @XFER_UDMA_5
	.comm	_kauai_udma_timings,4,2         ; @kauai_udma_timings
	.comm	_TR_100_UDMAREG_UDMA_MASK,4,2   ; @TR_100_UDMAREG_UDMA_MASK
	.comm	_TR_100_UDMAREG_UDMA_EN,4,2     ; @TR_100_UDMAREG_UDMA_EN
	.no_dead_strip	_set_timings_udma_ata6
.subsections_via_symbols
