	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpt370a_filter
_hpt370a_filter:                        ## @hpt370a_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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ATA_DEV_ATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_bad_ata100_5@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hpt_dma_blacklisted
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ATA_SHIFT_UDMA@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$224, %eax
	shll	%cl, %eax
	notl	%eax
	cltq
	andq	%rax, %r14
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ata_bmdma_mode_filter          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_DEV_ATA,8,3                ## @ATA_DEV_ATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UDMA100"

	.comm	_bad_ata100_5,4,2               ## @bad_ata100_5
	.comm	_ATA_SHIFT_UDMA,4,2             ## @ATA_SHIFT_UDMA
	.no_dead_strip	_hpt370a_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpt370a_filter
_hpt370a_filter:                        ; @hpt370a_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, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ATA_DEV_ATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_DEV_ATA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _bad_ata100_5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bad_ata100_5@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hpt_dma_blacklisted
	cbz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _ATA_SHIFT_UDMA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATA_SHIFT_UDMA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #224
	lsl	w8, w9, w8
	mvn	w8, w8
	sxtw	x8, w8
	and	x19, x8, x19
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ata_bmdma_mode_filter
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_DEV_ATA,8,3                ; @ATA_DEV_ATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UDMA100"

	.comm	_bad_ata100_5,4,2               ; @bad_ata100_5
	.comm	_ATA_SHIFT_UDMA,4,2             ; @ATA_SHIFT_UDMA
	.no_dead_strip	_hpt370a_filter
.subsections_via_symbols
