	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_irq_init
_fsi_irq_init:                          ## @fsi_irq_init
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_fsi_port_ab_io_bit
	movl	%eax, %r14d
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_DIFF_CTL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DOFF_CTL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_fsi_irq_disable
	movq	_IRQ_HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_fsi_reg_write
	movq	_FIFO_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ecx, %edx
	callq	_fsi_reg_mask_set
	movq	_INT_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fsi_master_mask_set            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DOFF_CTL,4,2                   ## @DOFF_CTL
	.comm	_DIFF_CTL,4,2                   ## @DIFF_CTL
	.comm	_IRQ_HALF,4,2                   ## @IRQ_HALF
	.comm	_FIFO_CLR,4,2                   ## @FIFO_CLR
	.comm	_INT_ST,4,2                     ## @INT_ST
	.no_dead_strip	_fsi_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_irq_init
_fsi_irq_init:                          ; @fsi_irq_init
	.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, x1
	mov	x20, x0
	bl	_fsi_port_ab_io_bit
	mov	x21, x0
Lloh0:
	adrp	x8, _DOFF_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOFF_CTL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DIFF_CTL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DIFF_CTL@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w22, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_fsi_irq_disable
Lloh4:
	adrp	x8, _IRQ_HALF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HALF@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_fsi_reg_write
Lloh7:
	adrp	x8, _FIFO_CLR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FIFO_CLR@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x2
	bl	_fsi_reg_mask_set
Lloh10:
	adrp	x8, _INT_ST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INT_ST@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	mov	w2, #0
	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	_fsi_master_mask_set
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DOFF_CTL,4,2                   ; @DOFF_CTL
	.comm	_DIFF_CTL,4,2                   ; @DIFF_CTL
	.comm	_IRQ_HALF,4,2                   ; @IRQ_HALF
	.comm	_FIFO_CLR,4,2                   ; @FIFO_CLR
	.comm	_INT_ST,4,2                     ; @INT_ST
	.no_dead_strip	_fsi_irq_init
.subsections_via_symbols
