	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10dmac_halt
_a10dmac_halt:                          ## @a10dmac_halt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_a10dmac_read_ctl
	movq	(%rbx), %rcx
	movq	_CH_NDMA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_AWIN_NDMA_CTL_DMA_LOADING@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_AWIN_DDMA_CTL_DMA_LOADING@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_a10dmac_write_ctl              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CH_NDMA,8,3                    ## @CH_NDMA
	.comm	_AWIN_NDMA_CTL_DMA_LOADING,4,2  ## @AWIN_NDMA_CTL_DMA_LOADING
	.comm	_AWIN_DDMA_CTL_DMA_LOADING,4,2  ## @AWIN_DDMA_CTL_DMA_LOADING
	.no_dead_strip	_a10dmac_halt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10dmac_halt
_a10dmac_halt:                          ; @a10dmac_halt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x0, x1
	bl	_a10dmac_read_ctl
Lloh0:
	adrp	x8, _CH_NDMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CH_NDMA@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _AWIN_NDMA_CTL_DMA_LOADING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AWIN_NDMA_CTL_DMA_LOADING@GOTPAGEOFF]
Lloh5:
	adrp	x11, _AWIN_DDMA_CTL_DMA_LOADING@GOTPAGE
Lloh6:
	ldr	x11, [x11, _AWIN_DDMA_CTL_DMA_LOADING@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_a10dmac_write_ctl
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CH_NDMA,8,3                    ; @CH_NDMA
	.comm	_AWIN_NDMA_CTL_DMA_LOADING,4,2  ; @AWIN_NDMA_CTL_DMA_LOADING
	.comm	_AWIN_DDMA_CTL_DMA_LOADING,4,2  ; @AWIN_DDMA_CTL_DMA_LOADING
	.no_dead_strip	_a10dmac_halt
.subsections_via_symbols
