	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k2_sata_check_atapi_dma
_k2_sata_check_atapi_dma:               ## @k2_sata_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	(%rdi), %rcx
	movq	_K2_FLAG_NO_ATAPI_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %eax
	testl	%edx, (%rcx)
	je	LBB0_1
## %bb.2:
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	$-134, %ecx
	addl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	$-6, %ecx
	sbbl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_K2_FLAG_NO_ATAPI_DMA,4,2       ## @K2_FLAG_NO_ATAPI_DMA
	.no_dead_strip	_k2_sata_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 k2_sata_check_atapi_dma
_k2_sata_check_atapi_dma:               ; @k2_sata_check_atapi_dma
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _K2_FLAG_NO_ATAPI_DMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _K2_FLAG_NO_ATAPI_DMA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #-1
	ret
LBB0_2:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	sub	w8, w8, #134
	cmn	w8, #6
	csetm	w0, lo
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_K2_FLAG_NO_ATAPI_DMA,4,2       ; @K2_FLAG_NO_ATAPI_DMA
	.no_dead_strip	_k2_sata_check_atapi_dma
.subsections_via_symbols
