	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx4939ide_set_dma_mode
_tx4939ide_set_dma_mode:                ## @tx4939ide_set_dma_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	8(%rdi), %rax
	movq	_XFER_UDMA_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	cmpq	%rsi, %rcx
	setle	%dl
	leal	(%rdx,%rdx,2), %edx
	jle	LBB0_2
## %bb.1:
	movq	_XFER_MW_DMA_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	subl	%ecx, %esi
	addl	%esi, %edx
	addl	$5, %edx
	cmpq	$0, (%rdi)
	setne	%cl
	movl	$-241, %esi
	movl	$-15728641, %edi                ## imm = 0xFF0FFFFF
	cmovel	%esi, %edi
	shlb	$4, %cl
	orb	$4, %cl
	shll	%cl, %edx
	andl	(%rax), %edi
	orl	%edx, %edi
	movl	%edi, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFER_UDMA_0,8,3                ## @XFER_UDMA_0
	.comm	_XFER_MW_DMA_0,8,3              ## @XFER_MW_DMA_0
	.no_dead_strip	_tx4939ide_set_dma_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx4939ide_set_dma_mode
_tx4939ide_set_dma_mode:                ; @tx4939ide_set_dma_mode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _XFER_UDMA_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFER_UDMA_0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _XFER_MW_DMA_0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XFER_MW_DMA_0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, x1
	mov	w10, #8
	mov	w11, #5
	csel	w10, w11, w10, gt
	csel	w8, w9, w8, gt
	sub	w8, w1, w8
	add	w8, w10, w8
	ldp	x10, x9, [x0]
	cmp	x10, #0
	mov	w10, #-15728641
	mov	w11, #-241
	csel	w10, w11, w10, eq
	mov	w11, #20
	mov	w12, #4
	csel	w11, w12, w11, eq
	lsl	w8, w8, w11
	ldr	w11, [x9]
	and	w10, w10, w11
	orr	w8, w10, w8
	str	w8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XFER_UDMA_0,8,3                ; @XFER_UDMA_0
	.comm	_XFER_MW_DMA_0,8,3              ; @XFER_MW_DMA_0
	.no_dead_strip	_tx4939ide_set_dma_mode
.subsections_via_symbols
