	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etnaviv_op_to_dma_dir
_etnaviv_op_to_dma_dir:                 ## @etnaviv_op_to_dma_dir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ETNA_PREP_READ@GOTPCREL(%rip), %rcx
	movq	_ETNA_PREP_WRITE@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	testl	%edi, (%rcx)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	testl	%edi, (%rcx)
	je	LBB0_5
LBB0_4:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETNA_PREP_READ,4,2             ## @ETNA_PREP_READ
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_ETNA_PREP_WRITE,4,2            ## @ETNA_PREP_WRITE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.no_dead_strip	_etnaviv_op_to_dma_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etnaviv_op_to_dma_dir
_etnaviv_op_to_dma_dir:                 ; @etnaviv_op_to_dma_dir
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ETNA_PREP_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETNA_PREP_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETNA_PREP_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETNA_PREP_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh8:
	adrp	x11, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _DMA_TO_DEVICE@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x10, x11, eq
Lloh10:
	adrp	x10, _DMA_FROM_DEVICE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DMA_FROM_DEVICE@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETNA_PREP_READ,4,2             ; @ETNA_PREP_READ
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_ETNA_PREP_WRITE,4,2            ; @ETNA_PREP_WRITE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.no_dead_strip	_etnaviv_op_to_dma_dir
.subsections_via_symbols
