	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpt3xx_udma_filter
_hpt3xx_udma_filter:                    ## @hpt3xx_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	8(%rdi), %rbx
	movl	4(%rbx), %edi
	callq	_hpt3xx_get_info
	movl	(%rbx), %ebx
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_18
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:
	movl	(%r14), %edi
	callq	_ata_id_is_sata
	movl	%ebx, %ecx
	andl	$-15, %ecx
	testl	%eax, %eax
	jmp	LBB0_17
LBB0_13:
	movq	_HPT370_ALLOW_ATA100_5@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.14:
	movq	_bad_ata100_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_check_in_drive_list
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	_ATA_UDMA4@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_18
LBB0_8:
	movq	_HPT370_ALLOW_ATA100_5@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_bad_ata100_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_check_in_drive_list
	testq	%rax, %rax
	je	LBB0_12
LBB0_10:
	movq	_ATA_UDMA4@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	_HPT366_ALLOW_ATA66_4@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_bad_ata66_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_check_in_drive_list
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_ATA_UDMA3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movq	_HPT366_ALLOW_ATA66_3@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_bad_ata66_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_check_in_drive_list
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:
	movq	_ATA_UDMA2@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movq	_bad_ata33@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_check_in_drive_list
	xorl	%ecx, %ecx
	testq	%rax, %rax
LBB0_17:
	cmovnel	%ecx, %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_13
	.long	L0_0_set_8
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_HPT366_ALLOW_ATA66_4,4,2       ## @HPT366_ALLOW_ATA66_4
	.comm	_bad_ata66_4,4,2                ## @bad_ata66_4
	.comm	_ATA_UDMA3,4,2                  ## @ATA_UDMA3
	.comm	_HPT366_ALLOW_ATA66_3,4,2       ## @HPT366_ALLOW_ATA66_3
	.comm	_bad_ata66_3,4,2                ## @bad_ata66_3
	.comm	_ATA_UDMA2,4,2                  ## @ATA_UDMA2
	.comm	_HPT370_ALLOW_ATA100_5,4,2      ## @HPT370_ALLOW_ATA100_5
	.comm	_bad_ata100_5,4,2               ## @bad_ata100_5
	.comm	_ATA_UDMA4,4,2                  ## @ATA_UDMA4
	.comm	_bad_ata33,4,2                  ## @bad_ata33
	.no_dead_strip	_hpt3xx_udma_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpt3xx_udma_filter
_hpt3xx_udma_filter:                    ; @hpt3xx_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	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x19, #4]
	bl	_hpt3xx_get_info
	ldr	w19, [x19]
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_17
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x20]
	bl	_ata_id_is_sata
	and	w8, w19, #0xfffffff1
	cmp	w0, #0
	csel	w19, w19, w8, eq
	b	LBB0_17
LBB0_3:
Lloh2:
	adrp	x8, _HPT370_ALLOW_ATA100_5@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPT370_ALLOW_ATA100_5@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _bad_ata100_5@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bad_ata100_5@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_check_in_drive_list
	cbz	x0, LBB0_2
LBB0_5:
Lloh8:
	adrp	x8, _ATA_UDMA4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATA_UDMA4@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	b	LBB0_17
LBB0_6:
Lloh11:
	adrp	x8, _HPT370_ALLOW_ATA100_5@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPT370_ALLOW_ATA100_5@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _bad_ata100_5@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bad_ata100_5@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_check_in_drive_list
	cbz	x0, LBB0_16
LBB0_8:
Lloh17:
	adrp	x8, _ATA_UDMA4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATA_UDMA4@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh19:
	adrp	x8, _HPT366_ALLOW_ATA66_4@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HPT366_ALLOW_ATA66_4@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.10:
Lloh22:
	adrp	x8, _bad_ata66_4@GOTPAGE
Lloh23:
	ldr	x8, [x8, _bad_ata66_4@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_check_in_drive_list
	cbz	x0, LBB0_12
LBB0_11:
Lloh25:
	adrp	x8, _ATA_UDMA3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ATA_UDMA3@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
LBB0_12:
Lloh28:
	adrp	x8, _HPT366_ALLOW_ATA66_3@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HPT366_ALLOW_ATA66_3@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.13:
Lloh31:
	adrp	x8, _bad_ata66_3@GOTPAGE
Lloh32:
	ldr	x8, [x8, _bad_ata66_3@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_check_in_drive_list
	cbz	x0, LBB0_16
LBB0_14:
Lloh34:
	adrp	x8, _ATA_UDMA2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ATA_UDMA2@GOTPAGEOFF]
LBB0_15:
	ldr	w19, [x8]
LBB0_16:
Lloh36:
	adrp	x8, _bad_ata33@GOTPAGE
Lloh37:
	ldr	x8, [x8, _bad_ata33@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_check_in_drive_list
	cmp	x0, #0
	csel	w19, w19, wzr, eq
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_HPT366_ALLOW_ATA66_4,4,2       ; @HPT366_ALLOW_ATA66_4
	.comm	_bad_ata66_4,4,2                ; @bad_ata66_4
	.comm	_ATA_UDMA3,4,2                  ; @ATA_UDMA3
	.comm	_HPT366_ALLOW_ATA66_3,4,2       ; @HPT366_ALLOW_ATA66_3
	.comm	_bad_ata66_3,4,2                ; @bad_ata66_3
	.comm	_ATA_UDMA2,4,2                  ; @ATA_UDMA2
	.comm	_HPT370_ALLOW_ATA100_5,4,2      ; @HPT370_ALLOW_ATA100_5
	.comm	_bad_ata100_5,4,2               ; @bad_ata100_5
	.comm	_ATA_UDMA4,4,2                  ; @ATA_UDMA4
	.comm	_bad_ata33,4,2                  ; @bad_ata33
	.no_dead_strip	_hpt3xx_udma_filter
.subsections_via_symbols
