	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_hw_clear_irq
_malidp_hw_clear_irq:                   ## @malidp_hw_clear_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_malidp_get_block_base
	movq	(%rbx), %rcx
	movq	_MALIDP_REGMAP_HAS_CLEARIRQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	jne	LBB0_1
## %bb.2:
	movq	_MALIDP_REG_STATUS@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_MALIDP_REG_CLEARIRQ@GOTPCREL(%rip), %rcx
LBB0_3:
	addq	(%rcx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_malidp_hw_write                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MALIDP_REGMAP_HAS_CLEARIRQ,4,2 ## @MALIDP_REGMAP_HAS_CLEARIRQ
	.comm	_MALIDP_REG_CLEARIRQ,8,3        ## @MALIDP_REG_CLEARIRQ
	.comm	_MALIDP_REG_STATUS,8,3          ## @MALIDP_REG_STATUS
	.no_dead_strip	_malidp_hw_clear_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_hw_clear_irq
_malidp_hw_clear_irq:                   ; @malidp_hw_clear_irq
	.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
	mov	x19, x2
	mov	x20, x0
	bl	_malidp_get_block_base
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MALIDP_REGMAP_HAS_CLEARIRQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MALIDP_REGMAP_HAS_CLEARIRQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MALIDP_REG_STATUS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MALIDP_REG_STATUS@GOTPAGEOFF]
Lloh5:
	adrp	x11, _MALIDP_REG_CLEARIRQ@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MALIDP_REG_CLEARIRQ@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	add	x2, x8, x0
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_malidp_hw_write
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MALIDP_REGMAP_HAS_CLEARIRQ,4,2 ; @MALIDP_REGMAP_HAS_CLEARIRQ
	.comm	_MALIDP_REG_CLEARIRQ,8,3        ; @MALIDP_REG_CLEARIRQ
	.comm	_MALIDP_REG_STATUS,8,3          ; @MALIDP_REG_STATUS
	.no_dead_strip	_malidp_hw_clear_irq
.subsections_via_symbols
