	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_adma_use_reg_mode
_nv_adma_use_reg_mode:                  ## @nv_adma_use_reg_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rdi), %rax
	movq	(%rax), %rcx
	movq	_NV_ADMA_ATAPI_SETUP_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %eax
	testl	%edx, (%rcx)
	je	LBB0_1
LBB0_4:
	popq	%rbp
	retq
LBB0_1:
	movq	_ATA_TFLAG_POLLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rdi)
	jne	LBB0_4
## %bb.2:
	movq	_ATA_QCFLAG_DMAMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	jne	LBB0_4
## %bb.3:
	movq	16(%rdi), %rcx
	movq	_ATA_PROT_NODATA@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_ADMA_ATAPI_SETUP_COMPLETE,4,2 ## @NV_ADMA_ATAPI_SETUP_COMPLETE
	.comm	_ATA_TFLAG_POLLING,4,2          ## @ATA_TFLAG_POLLING
	.comm	_ATA_QCFLAG_DMAMAP,4,2          ## @ATA_QCFLAG_DMAMAP
	.comm	_ATA_PROT_NODATA,8,3            ## @ATA_PROT_NODATA
	.no_dead_strip	_nv_adma_use_reg_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_adma_use_reg_mode
_nv_adma_use_reg_mode:                  ; @nv_adma_use_reg_mode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NV_ADMA_ATAPI_SETUP_COMPLETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_ADMA_ATAPI_SETUP_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
	ldr	w8, [x0, #8]
Lloh3:
	adrp	x9, _ATA_TFLAG_POLLING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_TFLAG_POLLING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #1
	ret
LBB0_4:
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _ATA_QCFLAG_DMAMAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_QCFLAG_DMAMAP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
	ret
LBB0_6:
	ldr	x8, [x0, #16]
Lloh9:
	adrp	x9, _ATA_PROT_NODATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATA_PROT_NODATA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_ADMA_ATAPI_SETUP_COMPLETE,4,2 ; @NV_ADMA_ATAPI_SETUP_COMPLETE
	.comm	_ATA_TFLAG_POLLING,4,2          ; @ATA_TFLAG_POLLING
	.comm	_ATA_QCFLAG_DMAMAP,4,2          ; @ATA_QCFLAG_DMAMAP
	.comm	_ATA_PROT_NODATA,8,3            ; @ATA_PROT_NODATA
	.no_dead_strip	_nv_adma_use_reg_mode
.subsections_via_symbols
