	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_enable                ## -- Begin function hidma_ll_enable
	.p2align	4, 0x90
_hidma_ll_enable:                       ## @hidma_ll_enable
	.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
	movq	_HIDMA_EVCA_CTRLSTS_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_HIDMA_CH_CONTROL_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	shll	$16, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_HIDMA_CH_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %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
	movl	%eax, %edi
	callq	_hidma_is_chan_enabled
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	$10000, %r8d                    ## imm = 0x2710
	callq	_readl_poll_timeout
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	24(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movq	_HIDMA_TRCA_CTRLSTS_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	32(%r14), %rdi
	callq	_readl
	movl	(%r12), %ecx
	shll	$16, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r13), %ebx
	shll	$16, %ebx
	orl	%ecx, %ebx
	movq	(%r15), %rsi
	addq	32(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	(%r15), %r15
	addq	32(%r14), %r15
	movl	%ebx, %edi
	callq	_HIDMA_CH_STATE
	movl	%eax, %edi
	callq	_hidma_is_chan_enabled
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	$10000, %r8d                    ## imm = 0x2710
	callq	_readl_poll_timeout
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	24(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	movq	_HIDMA_CH_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	%rax, 8(%r14)
	movq	_ENABLE_IRQS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HIDMA_EVCA_IRQ_EN_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	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_EVCA_CTRLSTS_REG,8,3     ## @HIDMA_EVCA_CTRLSTS_REG
	.comm	_HIDMA_CH_CONTROL_MASK,4,2      ## @HIDMA_CH_CONTROL_MASK
	.comm	_HIDMA_CH_ENABLE,4,2            ## @HIDMA_CH_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event channel did not get enabled\n"

	.comm	_HIDMA_TRCA_CTRLSTS_REG,8,3     ## @HIDMA_TRCA_CTRLSTS_REG
L_.str.1:                               ## @.str.1
	.asciz	"transfer channel did not get enabled\n"

	.comm	_HIDMA_CH_ENABLED,8,3           ## @HIDMA_CH_ENABLED
	.comm	_ENABLE_IRQS,4,2                ## @ENABLE_IRQS
	.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_enable                ; -- Begin function hidma_ll_enable
	.p2align	2
_hidma_ll_enable:                       ; @hidma_ll_enable
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _HIDMA_EVCA_CTRLSTS_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HIDMA_EVCA_CTRLSTS_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x22, _HIDMA_CH_CONTROL_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HIDMA_CH_CONTROL_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh4:
	adrp	x23, _HIDMA_CH_ENABLE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _HIDMA_CH_ENABLE@GOTPAGEOFF]
	bic	w8, w0, w8, lsl #16
	ldr	w9, [x23]
	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
	bl	_hidma_is_chan_enabled
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1000
	mov	w4, #10000
	bl	_readl_poll_timeout
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #32]
Lloh8:
	adrp	x21, _HIDMA_TRCA_CTRLSTS_REG@GOTPAGE
Lloh9:
	ldr	x21, [x21, _HIDMA_TRCA_CTRLSTS_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x22]
	bic	w8, w0, w8, lsl #16
	ldr	w9, [x23]
	orr	w20, w8, w9, lsl #16
	ldr	x8, [x19, #32]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19, #32]
	ldr	x9, [x21]
	add	x21, x9, x8
	mov	x0, x20
	bl	_HIDMA_CH_STATE
	bl	_hidma_is_chan_enabled
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1000
	mov	w4, #10000
	bl	_readl_poll_timeout
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #24]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _HIDMA_CH_ENABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HIDMA_CH_ENABLED@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #8]
Lloh15:
	adrp	x8, _ENABLE_IRQS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENABLE_IRQS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _HIDMA_EVCA_IRQ_EN_REG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HIDMA_EVCA_IRQ_EN_REG@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_5:
	mov	x0, x20
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDMA_EVCA_CTRLSTS_REG,8,3     ; @HIDMA_EVCA_CTRLSTS_REG
	.comm	_HIDMA_CH_CONTROL_MASK,4,2      ; @HIDMA_CH_CONTROL_MASK
	.comm	_HIDMA_CH_ENABLE,4,2            ; @HIDMA_CH_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event channel did not get enabled\n"

	.comm	_HIDMA_TRCA_CTRLSTS_REG,8,3     ; @HIDMA_TRCA_CTRLSTS_REG
l_.str.1:                               ; @.str.1
	.asciz	"transfer channel did not get enabled\n"

	.comm	_HIDMA_CH_ENABLED,8,3           ; @HIDMA_CH_ENABLED
	.comm	_ENABLE_IRQS,4,2                ; @ENABLE_IRQS
	.comm	_HIDMA_EVCA_IRQ_EN_REG,8,3      ; @HIDMA_EVCA_IRQ_EN_REG
.subsections_via_symbols
