	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vortex_wtdma_setmode
_vortex_wtdma_setmode:                  ## @vortex_wtdma_setmode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %r10d
	movq	8(%rdi), %rax
	movslq	%esi, %rsi
	movl	%r8d, (%rax,%rsi,8)
	movl	$0, 4(%rax,%rsi,8)
	movq	_OFFSET_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r9d
	movl	%r9d, 4(%rax,%rsi,8)
	movq	_IE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_IE_MASK@GOTPCREL(%rip), %rcx
	xorl	%r9d, %edx
	andl	(%rcx), %edx
	xorl	%r9d, %edx
	movl	%edx, 4(%rax,%rsi,8)
	movq	_DIR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movl	%edx, 4(%rax,%rsi,8)
	movq	_FMT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r10d
	movq	_FMT_MASK@GOTPCREL(%rip), %rcx
	orl	%r10d, %edx
	andl	(%rcx), %edx
	movl	%edx, 4(%rax,%rsi,8)
	movl	(%rdi), %edi
	movq	_VORTEX_WTDMA_CTRL@GOTPCREL(%rip), %rax
	shll	$2, %esi
	movslq	%esi, %rsi
	addq	(%rax), %rsi
	popq	%rbp
	jmp	_hwwrite                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OFFSET_MASK,4,2                ## @OFFSET_MASK
	.comm	_IE_MASK,4,2                    ## @IE_MASK
	.comm	_IE_SHIFT,4,2                   ## @IE_SHIFT
	.comm	_DIR_SHIFT,4,2                  ## @DIR_SHIFT
	.comm	_FMT_MASK,4,2                   ## @FMT_MASK
	.comm	_FMT_SHIFT,4,2                  ## @FMT_SHIFT
	.comm	_VORTEX_WTDMA_CTRL,8,3          ## @VORTEX_WTDMA_CTRL
	.no_dead_strip	_vortex_wtdma_setmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vortex_wtdma_setmode
_vortex_wtdma_setmode:                  ; @vortex_wtdma_setmode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	add	x8, x8, w1, sxtw #3
	stp	w4, wzr, [x8]
Lloh0:
	adrp	x9, _OFFSET_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OFFSET_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w5
Lloh3:
	adrp	x10, _IE_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IE_MASK@GOTPAGEOFF]
	str	w9, [x8, #4]
Lloh5:
	ldr	w10, [x10]
	bic	w9, w9, w10
Lloh6:
	adrp	x11, _IE_SHIFT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	lsl	w11, w2, w11
	and	w10, w11, w10
	orr	w9, w10, w9
	str	w9, [x8, #4]
Lloh9:
	adrp	x10, _DIR_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DIR_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w10, w11, w10
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _FMT_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FMT_MASK@GOTPAGEOFF]
	str	w9, [x8, #4]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _FMT_SHIFT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _FMT_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	lsl	w11, w3, w11
	orr	w9, w11, w9
	and	w2, w9, w10
	str	w2, [x8, #4]
	ldr	w0, [x0]
Lloh18:
	adrp	x8, _VORTEX_WTDMA_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VORTEX_WTDMA_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	lsl	w9, w1, #2
	add	x1, x8, w9, sxtw
	b	_hwwrite
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OFFSET_MASK,4,2                ; @OFFSET_MASK
	.comm	_IE_MASK,4,2                    ; @IE_MASK
	.comm	_IE_SHIFT,4,2                   ; @IE_SHIFT
	.comm	_DIR_SHIFT,4,2                  ; @DIR_SHIFT
	.comm	_FMT_MASK,4,2                   ; @FMT_MASK
	.comm	_FMT_SHIFT,4,2                  ; @FMT_SHIFT
	.comm	_VORTEX_WTDMA_CTRL,8,3          ; @VORTEX_WTDMA_CTRL
	.no_dead_strip	_vortex_wtdma_setmode
.subsections_via_symbols
