	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_setup_irq             ## -- Begin function hidma_ll_setup_irq
	.p2align	4, 0x90
_hidma_ll_setup_irq:                    ## @hidma_ll_setup_irq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movq	_HIDMA_EVCA_IRQ_CLR_REG@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	8(%rdi), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_HIDMA_EVCA_IRQ_EN_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_HIDMA_EVCA_INTCTRL_REG@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	andl	$-16, %eax
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	orl	%eax, %edi
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_ENABLE_IRQS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	(%r12), %edi
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_HIDMA_EVCA_INTCTRL_REG,8,3     ## @HIDMA_EVCA_INTCTRL_REG
	.comm	_ENABLE_IRQS,4,2                ## @ENABLE_IRQS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_setup_irq             ; -- Begin function hidma_ll_setup_irq
	.p2align	2
_hidma_ll_setup_irq:                    ; @hidma_ll_setup_irq
	.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
	str	w1, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _HIDMA_EVCA_IRQ_CLR_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HIDMA_EVCA_IRQ_CLR_REG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x21, _HIDMA_EVCA_IRQ_EN_REG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HIDMA_EVCA_IRQ_EN_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x22, _HIDMA_EVCA_INTCTRL_REG@GOTPAGE
Lloh5:
	ldr	x22, [x22, _HIDMA_EVCA_INTCTRL_REG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	and	w8, w0, #0xfffffff0
	ldr	w9, [x19]
	cmp	w9, #0
	cset	w9, eq
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
Lloh6:
	adrp	x22, _ENABLE_IRQS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ENABLE_IRQS@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x22]
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	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	_writel
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_HIDMA_EVCA_INTCTRL_REG,8,3     ; @HIDMA_EVCA_INTCTRL_REG
	.comm	_ENABLE_IRQS,4,2                ; @ENABLE_IRQS
.subsections_via_symbols
