	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmae_start
_dmae_start:                            ## @dmae_start
	.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, %r15
	callq	_to_sh_dev
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_chcr_read
	movl	%eax, %ebx
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_TEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_sh_dmae_writel
LBB0_2:
	movq	_CHCR_DE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	(%r14), %ebx
	movq	_CHCR_TE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%ebx, %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chcr_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TEND,4,2                       ## @TEND
	.comm	_CHCR_DE,4,2                    ## @CHCR_DE
	.comm	_CHCR_TE,4,2                    ## @CHCR_TE
	.no_dead_strip	_dmae_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmae_start
_dmae_start:                            ; @dmae_start
	.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
	bl	_to_sh_dev
	mov	x20, x0
	mov	x0, x19
	bl	_chcr_read
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _TEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEND@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_sh_dmae_writel
LBB0_2:
Lloh3:
	adrp	x8, _CHCR_DE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHCR_DE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w8, w21
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _CHCR_TE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHCR_TE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w1, w8, w9
	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	_chcr_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TEND,4,2                       ; @TEND
	.comm	_CHCR_DE,4,2                    ; @CHCR_DE
	.comm	_CHCR_TE,4,2                    ; @CHCR_TE
	.no_dead_strip	_dmae_start
.subsections_via_symbols
