	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_uninit                ## -- Begin function hidma_ll_uninit
	.p2align	4, 0x90
_hidma_ll_uninit:                       ## @hidma_ll_uninit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	cmpq	$0, 48(%rdi)
	je	LBB0_3
## %bb.4:
	movq	$0, 48(%rbx)
	movl	(%rbx), %r14d
	shll	$2, %r14d
	leaq	40(%rbx), %rdi
	callq	_tasklet_kill
	movq	32(%rbx), %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	$0, 32(%rbx)
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_hidma_ll_reset
	movl	%eax, %r14d
	movq	_HIDMA_EVCA_IRQ_STAT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_HIDMA_EVCA_IRQ_CLR_REG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_HIDMA_EVCA_IRQ_EN_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	%r14d, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_HIDMA_EVCA_IRQ_STAT_REG,8,3    ## @HIDMA_EVCA_IRQ_STAT_REG
	.comm	_HIDMA_EVCA_IRQ_CLR_REG,8,3     ## @HIDMA_EVCA_IRQ_CLR_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_uninit                ; -- Begin function hidma_ll_uninit
	.p2align	2
_hidma_ll_uninit:                       ; @hidma_ll_uninit
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_4
; %bb.2:
	str	xzr, [x19, #48]
	ldr	w8, [x19]
	lsl	w20, w8, #2
	add	x0, x19, #40
	bl	_tasklet_kill
	ldr	x0, [x19, #32]
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	str	xzr, [x19, #32]
	add	x0, x19, #24
	mov	w1, #0
	bl	_atomic_set
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_hidma_ll_reset
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _HIDMA_EVCA_IRQ_STAT_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HIDMA_EVCA_IRQ_STAT_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _HIDMA_EVCA_IRQ_CLR_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HIDMA_EVCA_IRQ_CLR_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _HIDMA_EVCA_IRQ_EN_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HIDMA_EVCA_IRQ_EN_REG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	x0, x20
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_HIDMA_EVCA_IRQ_STAT_REG,8,3    ; @HIDMA_EVCA_IRQ_STAT_REG
	.comm	_HIDMA_EVCA_IRQ_CLR_REG,8,3     ; @HIDMA_EVCA_IRQ_CLR_REG
	.comm	_HIDMA_EVCA_IRQ_EN_REG,8,3      ; @HIDMA_EVCA_IRQ_EN_REG
.subsections_via_symbols
