	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_disable               ## -- Begin function hidma_ll_disable
	.p2align	4, 0x90
_hidma_ll_disable:                      ## @hidma_ll_disable
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_hidma_ll_isenabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_HIDMA_TRCA_CTRLSTS_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	24(%r14), %rdi
	callq	_readl
	movq	_HIDMA_CH_CONTROL_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	shll	$16, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_HIDMA_CH_SUSPEND@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	shll	$16, %ebx
	orl	%ecx, %ebx
	movq	(%r15), %rsi
	addq	24(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	(%r15), %r15
	addq	24(%r14), %r15
	movl	%ebx, %edi
	callq	_HIDMA_CH_STATE
	movq	_HIDMA_CH_SUSPENDED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	$10000, %r8d                    ## imm = 0x2710
	callq	_readl_poll_timeout
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_HIDMA_EVCA_CTRLSTS_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	(%r13), %ecx
	shll	$16, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r12), %ebx
	shll	$16, %ebx
	orl	%ecx, %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	(%r15), %r15
	addq	(%r14), %r15
	movl	%ebx, %edi
	callq	_HIDMA_CH_STATE
	xorl	%edx, %edx
	movq	_HIDMA_CH_SUSPENDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	$10000, %r8d                    ## imm = 0x2710
	callq	_readl_poll_timeout
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_HIDMA_CH_SUSPENDED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	%rax, 8(%r14)
	movq	_HIDMA_EVCA_IRQ_EN_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_writel
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDMA_TRCA_CTRLSTS_REG,8,3     ## @HIDMA_TRCA_CTRLSTS_REG
	.comm	_HIDMA_CH_CONTROL_MASK,4,2      ## @HIDMA_CH_CONTROL_MASK
	.comm	_HIDMA_CH_SUSPEND,4,2           ## @HIDMA_CH_SUSPEND
	.comm	_HIDMA_CH_SUSPENDED,8,3         ## @HIDMA_CH_SUSPENDED
	.comm	_HIDMA_EVCA_CTRLSTS_REG,8,3     ## @HIDMA_EVCA_CTRLSTS_REG
	.comm	_HIDMA_EVCA_IRQ_EN_REG,8,3      ## @HIDMA_EVCA_IRQ_EN_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_disable               ; -- Begin function hidma_ll_disable
	.p2align	2
_hidma_ll_disable:                      ; @hidma_ll_disable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_hidma_ll_isenabled
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x21, _HIDMA_TRCA_CTRLSTS_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HIDMA_TRCA_CTRLSTS_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x23, _HIDMA_CH_CONTROL_MASK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HIDMA_CH_CONTROL_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh4:
	adrp	x24, _HIDMA_CH_SUSPEND@GOTPAGE
Lloh5:
	ldr	x24, [x24, _HIDMA_CH_SUSPEND@GOTPAGEOFF]
	bic	w8, w0, w8, lsl #16
	ldr	w9, [x24]
	orr	w20, w8, w9, lsl #16
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	add	x21, x9, x8
	mov	x0, x20
	bl	_HIDMA_CH_STATE
Lloh6:
	adrp	x22, _HIDMA_CH_SUSPENDED@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HIDMA_CH_SUSPENDED@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w2, eq
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1000
	mov	w4, #10000
	bl	_readl_poll_timeout
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
Lloh8:
	adrp	x21, _HIDMA_EVCA_CTRLSTS_REG@GOTPAGE
Lloh9:
	ldr	x21, [x21, _HIDMA_EVCA_CTRLSTS_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x23]
	bic	w8, w0, w8, lsl #16
	ldr	w9, [x24]
	orr	w20, w8, w9, lsl #16
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x21, x9, x8
	mov	x0, x20
	bl	_HIDMA_CH_STATE
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w2, eq
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1000
	mov	w4, #10000
	bl	_readl_poll_timeout
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x22]
	stp	x8, x8, [x19, #8]
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _HIDMA_EVCA_IRQ_EN_REG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HIDMA_EVCA_IRQ_EN_REG@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDMA_TRCA_CTRLSTS_REG,8,3     ; @HIDMA_TRCA_CTRLSTS_REG
	.comm	_HIDMA_CH_CONTROL_MASK,4,2      ; @HIDMA_CH_CONTROL_MASK
	.comm	_HIDMA_CH_SUSPEND,4,2           ; @HIDMA_CH_SUSPEND
	.comm	_HIDMA_CH_SUSPENDED,8,3         ; @HIDMA_CH_SUSPENDED
	.comm	_HIDMA_EVCA_CTRLSTS_REG,8,3     ; @HIDMA_EVCA_CTRLSTS_REG
	.comm	_HIDMA_EVCA_IRQ_EN_REG,8,3      ; @HIDMA_EVCA_IRQ_EN_REG
.subsections_via_symbols
