	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ali_udma_filter
_ali_udma_filter:                       ## @ali_udma_filter
	.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	%rdi, %r14
	movq	_m5229_revision@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-33, %eax
	cmpl	$160, %eax
	ja	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	movq	_ide_disk@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	_wdc_udma@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_chip_is_1543c_e@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_ATA_ID_PROD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	8(%r14), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m5229_revision,4,2             ## @m5229_revision
	.comm	_ide_disk,8,3                   ## @ide_disk
	.comm	_wdc_udma,8,3                   ## @wdc_udma
	.comm	_chip_is_1543c_e,8,3            ## @chip_is_1543c_e
	.comm	_ATA_ID_PROD,8,3                ## @ATA_ID_PROD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WDC "

	.no_dead_strip	_ali_udma_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ali_udma_filter
_ali_udma_filter:                       ; @ali_udma_filter
	.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	x19, x0
Lloh0:
	adrp	x8, _m5229_revision@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m5229_revision@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #33
	cmp	w8, #160
	b.hi	LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ide_disk@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ide_disk@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _wdc_udma@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wdc_udma@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _chip_is_1543c_e@GOTPAGE
Lloh10:
	ldr	x9, [x9, _chip_is_1543c_e@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _ATA_ID_PROD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATA_ID_PROD@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_m5229_revision,4,2             ; @m5229_revision
	.comm	_ide_disk,8,3                   ; @ide_disk
	.comm	_wdc_udma,8,3                   ; @wdc_udma
	.comm	_chip_is_1543c_e,8,3            ; @chip_is_1543c_e
	.comm	_ATA_ID_PROD,8,3                ; @ATA_ID_PROD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WDC "

	.no_dead_strip	_ali_udma_filter
.subsections_via_symbols
