	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edp_ctrl_irq_enable
_edp_ctrl_irq_enable:                   ## @edp_ctrl_irq_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_REG_EDP_INTERRUPT_REG_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_EDP_INTR_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_edp_write
	movq	_REG_EDP_INTERRUPT_REG_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	movq	_EDP_INTR_MASK2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	callq	_edp_write
	movq	_REG_EDP_INTERRUPT_REG_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	xorl	%esi, %esi
LBB0_3:
	callq	_edp_write
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DBG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_REG_EDP_INTERRUPT_REG_1,8,3    ## @REG_EDP_INTERRUPT_REG_1
	.comm	_EDP_INTR_MASK1,4,2             ## @EDP_INTR_MASK1
	.comm	_REG_EDP_INTERRUPT_REG_2,8,3    ## @REG_EDP_INTERRUPT_REG_2
	.comm	_EDP_INTR_MASK2,4,2             ## @EDP_INTR_MASK2
L_.str.1:                               ## @.str.1
	.asciz	"exit"

	.no_dead_strip	_edp_ctrl_irq_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edp_ctrl_irq_enable
_edp_ctrl_irq_enable:                   ; @edp_ctrl_irq_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _REG_EDP_INTERRUPT_REG_1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REG_EDP_INTERRUPT_REG_1@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	cbz	w20, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EDP_INTR_MASK1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EDP_INTR_MASK1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_edp_write
Lloh8:
	adrp	x8, _REG_EDP_INTERRUPT_REG_2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_EDP_INTERRUPT_REG_2@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh10:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh11:
	adrp	x8, _EDP_INTR_MASK2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDP_INTR_MASK2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	bl	_edp_write
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _REG_EDP_INTERRUPT_REG_2@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REG_EDP_INTERRUPT_REG_2@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
LBB0_3:
	bl	_edp_write
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_DBG
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_REG_EDP_INTERRUPT_REG_1,8,3    ; @REG_EDP_INTERRUPT_REG_1
	.comm	_EDP_INTR_MASK1,4,2             ; @EDP_INTR_MASK1
	.comm	_REG_EDP_INTERRUPT_REG_2,8,3    ; @REG_EDP_INTERRUPT_REG_2
	.comm	_EDP_INTR_MASK2,4,2             ; @EDP_INTR_MASK2
l_.str.1:                               ; @.str.1
	.asciz	"exit"

	.no_dead_strip	_edp_ctrl_irq_enable
.subsections_via_symbols
