	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vortex_adbdma_setmode
_vortex_adbdma_setmode:                 ## @vortex_adbdma_setmode
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %r10
	movslq	%esi, %rsi
	movl	%r9d, (%r10,%rsi,8)
	movq	_OFFSET_MASK@GOTPCREL(%rip), %rax
	movl	4(%r10,%rsi,8), %ebx
	movl	16(%rbp), %edi
	xorl	%ebx, %edi
	andl	(%rax), %edi
	movl	%ecx, %eax
	xorl	%ebx, %edi
	movl	%edi, 4(%r10,%rsi,8)
	movq	_IE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_IE_MASK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edx
	andl	(%rcx), %edx
	xorl	%edi, %edx
	movl	%edx, 4(%r10,%rsi,8)
	movq	_DIR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_DIR_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %eax
	andl	(%rcx), %eax
	xorl	%eax, %edx
	movl	%edx, 4(%r10,%rsi,8)
	movq	_FMT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r8d
	movq	_FMT_MASK@GOTPCREL(%rip), %rax
	xorl	%edx, %r8d
	andl	(%rax), %r8d
	xorl	%r8d, %edx
	movl	%edx, 4(%r10,%rsi,8)
	movl	(%r14), %edi
	movq	_VORTEX_ADBDMA_CTRL@GOTPCREL(%rip), %r15
	shll	$2, %esi
	movslq	%esi, %rbx
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	callq	_hwwrite
	movl	(%r14), %edi
	addq	(%r15), %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hwread                         ## 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_MASK,4,2                   ## @DIR_MASK
	.comm	_DIR_SHIFT,4,2                  ## @DIR_SHIFT
	.comm	_FMT_MASK,4,2                   ## @FMT_MASK
	.comm	_FMT_SHIFT,4,2                  ## @FMT_SHIFT
	.comm	_VORTEX_ADBDMA_CTRL,8,3         ## @VORTEX_ADBDMA_CTRL
	.no_dead_strip	_vortex_adbdma_setmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vortex_adbdma_setmode
_vortex_adbdma_setmode:                 ; @vortex_adbdma_setmode
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x8, x8, w1, sxtw #3
	str	w5, [x8]
Lloh0:
	adrp	x9, _OFFSET_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OFFSET_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w10, w9, w6
	ldr	w11, [x8, #4]
	bic	w9, w11, w9
	orr	w9, w9, w10
	str	w9, [x8, #4]
Lloh3:
	adrp	x10, _IE_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IE_MASK@GOTPAGEOFF]
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_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DIR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _DIR_SHIFT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _DIR_SHIFT@GOTPAGEOFF]
	bic	w9, w9, w10
Lloh14:
	ldr	w11, [x11]
	lsl	w11, w3, w11
	and	w10, w11, w10
	orr	w9, w10, w9
	str	w9, [x8, #4]
Lloh15:
	adrp	x10, _FMT_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FMT_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	bic	w9, w9, w10
Lloh18:
	adrp	x11, _FMT_SHIFT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _FMT_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	lsl	w11, w4, w11
	and	w10, w11, w10
	orr	w2, w10, w9
	str	w2, [x8, #4]
	ldr	w0, [x0]
Lloh21:
	adrp	x20, _VORTEX_ADBDMA_CTRL@GOTPAGE
Lloh22:
	ldr	x20, [x20, _VORTEX_ADBDMA_CTRL@GOTPAGEOFF]
	ldr	x8, [x20]
	lsl	w9, w1, #2
	sxtw	x21, w9
	add	x1, x8, x21
	bl	_hwwrite
	ldr	w0, [x19]
	ldr	x8, [x20]
	add	x1, x8, x21
	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	_hwread
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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_MASK,4,2                   ; @DIR_MASK
	.comm	_DIR_SHIFT,4,2                  ; @DIR_SHIFT
	.comm	_FMT_MASK,4,2                   ; @FMT_MASK
	.comm	_FMT_SHIFT,4,2                  ; @FMT_SHIFT
	.comm	_VORTEX_ADBDMA_CTRL,8,3         ; @VORTEX_ADBDMA_CTRL
	.no_dead_strip	_vortex_adbdma_setmode
.subsections_via_symbols
