	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_map_irq                    ## -- Begin function cxl_map_irq
	.p2align	4, 0x90
_cxl_map_irq:                           ## @cxl_map_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_irq_create_mapping
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	*%rax
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_pr_devel
	movl	%ebx, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cxl_map_irq: irq_create_mapping failed\n"

	.comm	_cxl_ops,8,3                    ## @cxl_ops
L_.str.1:                               ## @.str.1
	.asciz	"hwirq %#lx mapped to virq %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"cxl_map_irq: request_irq failed: %i\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_map_irq                    ; -- Begin function cxl_map_irq
	.p2align	2
_cxl_map_irq:                           ; @cxl_map_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	mov	x0, #0
	bl	_irq_create_mapping
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	blr	x8
LBB0_3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	mov	x2, x20
	bl	_pr_devel
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	mov	x3, x22
	mov	x4, x21
	bl	_request_irq
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.4:
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	w20, #0
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cxl_map_irq: irq_create_mapping failed\n"

	.comm	_cxl_ops,8,3                    ; @cxl_ops
l_.str.1:                               ; @.str.1
	.asciz	"hwirq %#lx mapped to virq %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"cxl_map_irq: request_irq failed: %i\n"

.subsections_via_symbols
