	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eisa_unmask_irq
_eisa_unmask_irq:                       ## @eisa_unmask_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_EISA_DBG
	movq	_eisa_irq_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movl	%ebx, %ecx
	andb	$7, %cl
	movl	$-2, %edi
	roll	%cl, %edi
	testb	$8, %bl
	jne	LBB0_1
## %bb.2:
	movq	_master_mask@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movl	%edi, (%rax)
	movl	$33, %esi
	jmp	LBB0_3
LBB0_1:
	movq	_slave_mask@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movl	%edi, (%rax)
	movl	$161, %esi
LBB0_3:
	callq	_eisa_out8
	movq	_eisa_irq_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	$33, %edi
	callq	_eisa_in8
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_EISA_DBG
	movl	$161, %edi
	callq	_eisa_in8
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_EISA_DBG                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable irq %d\n"

	.comm	_eisa_irq_lock,4,2              ## @eisa_irq_lock
	.comm	_slave_mask,4,2                 ## @slave_mask
	.comm	_master_mask,4,2                ## @master_mask
L_.str.1:                               ## @.str.1
	.asciz	"pic0 mask %02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"pic1 mask %02x\n"

	.no_dead_strip	_eisa_unmask_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eisa_unmask_irq
_eisa_unmask_irq:                       ; @eisa_unmask_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
	ldr	w19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_EISA_DBG
Lloh2:
	adrp	x0, _eisa_irq_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _eisa_irq_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	and	x8, x19, #0x7
	mov	w9, #1
	lsl	w8, w9, w8
	mvn	w8, w8
	tbnz	w19, #3, LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _master_mask@GOTPAGE
Lloh5:
	ldr	x9, [x9, _master_mask@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w0, w10, w8
	str	w0, [x9]
	mov	w1, #33
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x9, _slave_mask@GOTPAGE
Lloh7:
	ldr	x9, [x9, _slave_mask@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w0, w10, w8
	str	w0, [x9]
	mov	w1, #161
LBB0_3:
	bl	_eisa_out8
Lloh8:
	adrp	x0, _eisa_irq_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _eisa_irq_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	w0, #33
	bl	_eisa_in8
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_EISA_DBG
	mov	w0, #161
	bl	_eisa_in8
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_EISA_DBG
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable irq %d\n"

	.comm	_eisa_irq_lock,4,2              ; @eisa_irq_lock
	.comm	_slave_mask,4,2                 ; @slave_mask
	.comm	_master_mask,4,2                ; @master_mask
l_.str.1:                               ; @.str.1
	.asciz	"pic0 mask %02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"pic1 mask %02x\n"

	.no_dead_strip	_eisa_unmask_irq
.subsections_via_symbols
