	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function schizo_intr_register
_schizo_intr_register:                  ## @schizo_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
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_schizo_get_intrmap
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_M_DEVBUF@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	-40(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_INTMAP_VEC
	movq	_schizo_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	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_schizo_ic,4,2                  ## @schizo_ic
	.no_dead_strip	_schizo_intr_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function schizo_intr_register
_schizo_intr_register:                  ; @schizo_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	_schizo_get_intrmap
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x22, _M_DEVBUF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _M_DEVBUF@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w0, #24
	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
Lloh5:
	adrp	x1, _schizo_ic@GOTPAGE
Lloh6:
	ldr	x1, [x1, _schizo_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:
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_schizo_ic,4,2                  ; @schizo_ic
	.no_dead_strip	_schizo_intr_register
.subsections_via_symbols
