	.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	(%rsi), %rax
	movq	_XFER_UDMA_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	setge	%dl
	leal	(%rdx,%rdx,2), %edx
	jge	LBB0_2
## %bb.1:
	movq	_XFER_MW_DMA_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	subl	%ecx, %eax
	addl	%edx, %eax
	addl	$5, %eax
	cmpq	$0, 8(%rsi)
	setne	%cl
	movl	$-241, %edx
	movl	$-15728641, %esi                ## imm = 0xFF0FFFFF
	cmovel	%edx, %esi
	shlb	$4, %cl
	orb	$4, %cl
	shll	%cl, %eax
	andl	(%rdi), %esi
	orl	%eax, %esi
	movl	%esi, (%rdi)
	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]
	ldp	x10, x11, [x1]
	cmp	x10, x8
	mov	w12, #8
	mov	w13, #5
	csel	w12, w13, w12, lt
	csel	w8, w9, w8, lt
	sub	w8, w10, w8
	add	w8, w12, w8
	cmp	x11, #0
	mov	w9, #20
	mov	w10, #4
	csel	w9, w10, w9, eq
	lsl	w8, w8, w9
	mov	w9, #-15728641
	mov	w10, #-241
	csel	w9, w10, w9, eq
	ldr	w10, [x0]
	and	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x0]
	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
