	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ali_dma_check
_ali_dma_check:                         ## @ali_dma_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_m5229_revision@GOTPCREL(%rip), %rax
	cmpl	$193, (%rax)
	jg	LBB0_3
## %bb.1:
	movq	(%rdi), %rax
	movq	_ide_disk@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_IDE_TFLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	testl	%ecx, (%rsi)
	je	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m5229_revision,4,2             ## @m5229_revision
	.comm	_ide_disk,8,3                   ## @ide_disk
	.comm	_IDE_TFLAG_WRITE,4,2            ## @IDE_TFLAG_WRITE
	.no_dead_strip	_ali_dma_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ali_dma_check
_ali_dma_check:                         ; @ali_dma_check
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _m5229_revision@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m5229_revision@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #193
	b.gt	LBB0_4
; %bb.1:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _ide_disk@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ide_disk@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x1]
Lloh6:
	adrp	x9, _IDE_TFLAG_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IDE_TFLAG_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #1
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_m5229_revision,4,2             ; @m5229_revision
	.comm	_ide_disk,8,3                   ; @ide_disk
	.comm	_IDE_TFLAG_WRITE,4,2            ; @IDE_TFLAG_WRITE
	.no_dead_strip	_ali_dma_check
.subsections_via_symbols
