	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ali_check_atapi_dma
_ali_check_atapi_dma:                   ## @ali_check_atapi_dma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ali_atapi_dma@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_atapi_cmd_type
	movq	%rax, %rcx
	movq	_ATAPI_MISC@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ali_atapi_dma,4,2              ## @ali_atapi_dma
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ATAPI_MISC,8,3                 ## @ATAPI_MISC
	.no_dead_strip	_ali_check_atapi_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ali_check_atapi_dma
_ali_check_atapi_dma:                   ; @ali_check_atapi_dma
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ali_atapi_dma@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ali_atapi_dma@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_atapi_cmd_type
Lloh3:
	adrp	x8, _ATAPI_MISC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATAPI_MISC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 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	_ali_atapi_dma,4,2              ; @ali_atapi_dma
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ATAPI_MISC,8,3                 ; @ATAPI_MISC
	.no_dead_strip	_ali_check_atapi_dma
.subsections_via_symbols
