	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sil_pata_udma_filter
_sil_pata_udma_filter:                  ## @sil_pata_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movl	16(%rbx), %edi
	callq	_to_pci_dev
	movq	_IDE_HFLAG_MMIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rbx), %ecx
	movq	8(%rbx), %rcx
	sete	%dl
	shlq	$6, %rdx
	leaq	(%rdx,%rcx), %rsi
	addq	$74, %rsi
	movq	%rax, %rdi
	callq	_sil_ioread8
	andl	$48, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$32, %eax
	je	LBB0_3
## %bb.2:
	cmpl	$16, %eax
	jne	LBB0_5
LBB0_3:
	movq	_ATA_UDMA6@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_ATA_UDMA5@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUG
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_HFLAG_MMIO,4,2             ## @IDE_HFLAG_MMIO
	.comm	_ATA_UDMA6,4,2                  ## @ATA_UDMA6
	.comm	_ATA_UDMA5,4,2                  ## @ATA_UDMA5
	.no_dead_strip	_sil_pata_udma_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sil_pata_udma_filter
_sil_pata_udma_filter:                  ; @sil_pata_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
	ldr	x19, [x0]
	ldr	w0, [x19, #16]
	bl	_to_pci_dev
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
Lloh0:
	adrp	x10, _IDE_HFLAG_MMIO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IDE_HFLAG_MMIO@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #74
	mov	w10, #138
	csel	x9, x10, x9, eq
	add	x1, x9, x8
	bl	_sil_ioread8
	ands	w8, w0, #0x30
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #32
	b.eq	LBB0_3
; %bb.2:
	cmp	w8, #16
	b.ne	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ATA_UDMA6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_UDMA6@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ATA_UDMA5@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATA_UDMA5@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	bl	_BUG
	mov	w0, #0
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	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_HFLAG_MMIO,4,2             ; @IDE_HFLAG_MMIO
	.comm	_ATA_UDMA6,4,2                  ; @ATA_UDMA6
	.comm	_ATA_UDMA5,4,2                  ; @ATA_UDMA5
	.no_dead_strip	_sil_pata_udma_filter
.subsections_via_symbols
