	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fire_intr_register
_fire_intr_register:                    ## @fire_intr_register
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_fire_get_intrmap
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_FO_EQ_FIRST_INO@GOTPCREL(%rip), %rax
	movq	_FO_EQ_LAST_INO@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	movl	$4, %edi
	movl	$24, %ecx
	cmovll	%ecx, %edi
	cmpq	%r15, (%rax)
	cmovgl	%ecx, %edi
	movq	_M_DEVBUF@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	-40(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_INTMAP_VEC
	movq	_fire_ic@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_intr_controller_register
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r14d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_FO_EQ_FIRST_INO,8,3            ## @FO_EQ_FIRST_INO
	.comm	_FO_EQ_LAST_INO,8,3             ## @FO_EQ_LAST_INO
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fire_ic,4,2                    ## @fire_ic
	.no_dead_strip	_fire_intr_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fire_intr_register
_fire_intr_register:                    ; @fire_intr_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x2, sp
	add	x3, sp, #8
	bl	_fire_get_intrmap
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _FO_EQ_FIRST_INO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FO_EQ_FIRST_INO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _FO_EQ_LAST_INO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FO_EQ_LAST_INO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x19
	ccmp	x8, x19, #0, ge
	mov	w8, #24
	mov	w9, #4
	csel	w0, w9, w8, le
Lloh6:
	adrp	x22, _M_DEVBUF@GOTPAGE
Lloh7:
	ldr	x22, [x22, _M_DEVBUF@GOTPAGEOFF]
Lloh8:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldp	x8, x9, [sp]
	stp	x8, x20, [x0, #8]
	str	x9, [x0]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_INTMAP_VEC
Lloh14:
	adrp	x1, _fire_ic@GOTPAGE
Lloh15:
	ldr	x1, [x1, _fire_ic@GOTPAGEOFF]
	mov	x2, x21
	bl	_intr_controller_register
	mov	x19, x0
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_free
	b	LBB0_7
LBB0_4:
Lloh16:
	adrp	x8, _ENXIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w19, [x8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_FO_EQ_FIRST_INO,8,3            ; @FO_EQ_FIRST_INO
	.comm	_FO_EQ_LAST_INO,8,3             ; @FO_EQ_LAST_INO
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fire_ic,4,2                    ; @fire_ic
	.no_dead_strip	_fire_intr_register
.subsections_via_symbols
