	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cy82c693_set_dma_mode
_cy82c693_set_dma_mode:                 ## @cy82c693_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %ebx
	cmpq	$0, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_CY82_INDEX_CHANNEL0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CY82_INDEX_CHANNEL1@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	movl	%ebx, %eax
	andl	$3, %eax
	shrl	$2, %ebx
	andl	$4, %ebx
	orl	%eax, %ebx
	movq	_CY82_INDEX_PORT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_outb
	movq	_CY82_DATA_PORT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_outb
	movq	_BUSMASTER_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CY82_INDEX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_outb
	movl	(%r15), %esi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CY82_INDEX_CHANNEL1,4,2        ## @CY82_INDEX_CHANNEL1
	.comm	_CY82_INDEX_CHANNEL0,4,2        ## @CY82_INDEX_CHANNEL0
	.comm	_CY82_INDEX_PORT,4,2            ## @CY82_INDEX_PORT
	.comm	_CY82_DATA_PORT,4,2             ## @CY82_DATA_PORT
	.comm	_BUSMASTER_TIMEOUT,4,2          ## @BUSMASTER_TIMEOUT
	.comm	_CY82_INDEX_TIMEOUT,4,2         ## @CY82_INDEX_TIMEOUT
	.no_dead_strip	_cy82c693_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 cy82c693_set_dma_mode
_cy82c693_set_dma_mode:                 ; @cy82c693_set_dma_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _CY82_INDEX_CHANNEL1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CY82_INDEX_CHANNEL1@GOTPAGEOFF]
	ldr	x10, [x0]
Lloh2:
	adrp	x11, _CY82_INDEX_CHANNEL0@GOTPAGE
Lloh3:
	ldr	x11, [x11, _CY82_INDEX_CHANNEL0@GOTPAGEOFF]
	cmp	x10, #0
	csel	x9, x11, x9, eq
	ldr	w0, [x9]
	lsr	w9, w8, #2
	and	w19, w9, #0x4
	bfxil	w19, w8, #0, #2
Lloh4:
	adrp	x20, _CY82_INDEX_PORT@GOTPAGE
Lloh5:
	ldr	x20, [x20, _CY82_INDEX_PORT@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_outb
Lloh6:
	adrp	x21, _CY82_DATA_PORT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CY82_DATA_PORT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_outb
Lloh8:
	adrp	x8, _BUSMASTER_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUSMASTER_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
Lloh11:
	adrp	x8, _CY82_INDEX_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CY82_INDEX_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_outb
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_outb
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CY82_INDEX_CHANNEL1,4,2        ; @CY82_INDEX_CHANNEL1
	.comm	_CY82_INDEX_CHANNEL0,4,2        ; @CY82_INDEX_CHANNEL0
	.comm	_CY82_INDEX_PORT,4,2            ; @CY82_INDEX_PORT
	.comm	_CY82_DATA_PORT,4,2             ; @CY82_DATA_PORT
	.comm	_BUSMASTER_TIMEOUT,4,2          ; @BUSMASTER_TIMEOUT
	.comm	_CY82_INDEX_TIMEOUT,4,2         ; @CY82_INDEX_TIMEOUT
	.no_dead_strip	_cy82c693_set_dma_mode
.subsections_via_symbols
