	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocelot_irq_unmask
_ocelot_irq_unmask:                     ## @ocelot_irq_unmask
	.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
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_irq_data_get_chip_type
	movq	%rax, %r15
	movl	(%rbx), %r14d
	movq	%r12, %rdi
	callq	_irq_gc_lock
	xorl	%edi, %edi
	callq	_ICPU_CFG_INTR_INTR_TRIGGER
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_irq_reg_readl
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_ICPU_CFG_INTR_INTR_TRIGGER
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_irq_reg_readl
	orl	%ebx, %eax
	testl	%r14d, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ICPU_CFG_INTR_INTR_STICKY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_irq_reg_writel
LBB0_2:
	movl	%r14d, %eax
	notl	%eax
	movq	(%r15), %rcx
	andl	%eax, (%rcx)
	movq	_ICPU_CFG_INTR_INTR_ENA_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_irq_reg_writel
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_irq_gc_unlock                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICPU_CFG_INTR_INTR_STICKY,4,2  ## @ICPU_CFG_INTR_INTR_STICKY
	.comm	_ICPU_CFG_INTR_INTR_ENA_SET,4,2 ## @ICPU_CFG_INTR_INTR_ENA_SET
	.no_dead_strip	_ocelot_irq_unmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocelot_irq_unmask
_ocelot_irq_unmask:                     ; @ocelot_irq_unmask
	.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	x20, x0
	bl	_irq_data_get_irq_chip_data
	mov	x19, x0
	mov	x0, x20
	bl	_irq_data_get_chip_type
	mov	x21, x0
	ldr	w20, [x20]
	mov	x0, x19
	bl	_irq_gc_lock
	mov	w0, #0
	bl	_ICPU_CFG_INTR_INTR_TRIGGER
	mov	x1, x0
	mov	x0, x19
	bl	_irq_reg_readl
	mov	x22, x0
	mov	w0, #1
	bl	_ICPU_CFG_INTR_INTR_TRIGGER
	mov	x1, x0
	mov	x0, x19
	bl	_irq_reg_readl
	orr	w8, w0, w22
	tst	w8, w20
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ICPU_CFG_INTR_INTR_STICKY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICPU_CFG_INTR_INTR_STICKY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_irq_reg_writel
LBB0_2:
	ldr	x8, [x21]
	ldr	w9, [x8]
	bic	w9, w9, w20
	str	w9, [x8]
Lloh3:
	adrp	x8, _ICPU_CFG_INTR_INTR_ENA_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICPU_CFG_INTR_INTR_ENA_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_irq_reg_writel
	mov	x0, x19
	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	_irq_gc_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ICPU_CFG_INTR_INTR_STICKY,4,2  ; @ICPU_CFG_INTR_INTR_STICKY
	.comm	_ICPU_CFG_INTR_INTR_ENA_SET,4,2 ; @ICPU_CFG_INTR_INTR_ENA_SET
	.no_dead_strip	_ocelot_irq_unmask
.subsections_via_symbols
