	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guest_register_serr_irq
_guest_register_serr_irq:               ## @guest_register_serr_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addq	$20, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_kasprintf
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_guest_slice_irq_err@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_cxl_map_irq
	movl	%eax, %ecx
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.2:
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cxl-%s-err"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_guest_slice_irq_err,4,2        ## @guest_slice_irq_err
	.no_dead_strip	_guest_register_serr_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guest_register_serr_irq
_guest_register_serr_irq:               ; @guest_register_serr_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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x0, x0, #20
	bl	_dev_name
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_kasprintf
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x4, x0
	ldp	w1, w0, [x19, #8]
Lloh5:
	adrp	x8, _guest_slice_irq_err@GOTPAGE
Lloh6:
	ldr	x8, [x8, _guest_slice_irq_err@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_cxl_map_irq
	str	w0, [x19, #16]
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cxl-%s-err"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_guest_slice_irq_err,4,2        ; @guest_slice_irq_err
	.no_dead_strip	_guest_register_serr_irq
.subsections_via_symbols
