	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_pcie_setup_irq
_rockchip_pcie_setup_irq:               ## @rockchip_pcie_setup_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	%rdi, %r15
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_to_platform_device
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_rockchip_pcie_subsys_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	L_.str.2(%rip), %r8
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_rockchip_pcie_legacy_int_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r15, %rdx
	callq	_irq_set_chained_handler_and_data
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_rockchip_pcie_client_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	leaq	L_.str.8(%rip), %r8
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_10
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sys"

L_.str.1:                               ## @.str.1
	.asciz	"missing sys IRQ resource\n"

	.comm	_rockchip_pcie_subsys_irq_handler,4,2 ## @rockchip_pcie_subsys_irq_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.2:                               ## @.str.2
	.asciz	"pcie-sys"

L_.str.3:                               ## @.str.3
	.asciz	"failed to request PCIe subsystem IRQ\n"

L_.str.4:                               ## @.str.4
	.asciz	"legacy"

L_.str.5:                               ## @.str.5
	.asciz	"missing legacy IRQ resource\n"

	.comm	_rockchip_pcie_legacy_int_handler,4,2 ## @rockchip_pcie_legacy_int_handler
L_.str.6:                               ## @.str.6
	.asciz	"client"

L_.str.7:                               ## @.str.7
	.asciz	"missing client IRQ resource\n"

	.comm	_rockchip_pcie_client_irq_handler,4,2 ## @rockchip_pcie_client_irq_handler
L_.str.8:                               ## @.str.8
	.asciz	"pcie-client"

L_.str.9:                               ## @.str.9
	.asciz	"failed to request PCIe client IRQ\n"

	.no_dead_strip	_rockchip_pcie_setup_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_pcie_setup_irq
_rockchip_pcie_setup_irq:               ; @rockchip_pcie_setup_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_to_platform_device
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_platform_get_irq_byname
	mov	x20, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _rockchip_pcie_subsys_irq_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rockchip_pcie_subsys_irq_handler@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x23, _IRQF_SHARED@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IRQF_SHARED@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh7:
	adrp	x4, l_.str.2@PAGE
Lloh8:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x5, x21
	bl	_devm_request_irq
	cbz	w0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_platform_get_irq_byname
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.7:
Lloh15:
	adrp	x8, _rockchip_pcie_legacy_int_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rockchip_pcie_legacy_int_handler@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_irq_set_chained_handler_and_data
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_platform_get_irq_byname
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.8:
Lloh20:
	adrp	x8, _rockchip_pcie_client_irq_handler@GOTPAGE
Lloh21:
	ldr	x8, [x8, _rockchip_pcie_client_irq_handler@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	w3, [x23]
Lloh23:
	adrp	x4, l_.str.8@PAGE
Lloh24:
	add	x4, x4, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x5, x21
	bl	_devm_request_irq
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.9:
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_4
LBB0_10:
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_11:
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sys"

l_.str.1:                               ; @.str.1
	.asciz	"missing sys IRQ resource\n"

	.comm	_rockchip_pcie_subsys_irq_handler,4,2 ; @rockchip_pcie_subsys_irq_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.2:                               ; @.str.2
	.asciz	"pcie-sys"

l_.str.3:                               ; @.str.3
	.asciz	"failed to request PCIe subsystem IRQ\n"

l_.str.4:                               ; @.str.4
	.asciz	"legacy"

l_.str.5:                               ; @.str.5
	.asciz	"missing legacy IRQ resource\n"

	.comm	_rockchip_pcie_legacy_int_handler,4,2 ; @rockchip_pcie_legacy_int_handler
l_.str.6:                               ; @.str.6
	.asciz	"client"

l_.str.7:                               ; @.str.7
	.asciz	"missing client IRQ resource\n"

	.comm	_rockchip_pcie_client_irq_handler,4,2 ; @rockchip_pcie_client_irq_handler
l_.str.8:                               ; @.str.8
	.asciz	"pcie-client"

l_.str.9:                               ; @.str.9
	.asciz	"failed to request PCIe client IRQ\n"

	.no_dead_strip	_rockchip_pcie_setup_irq
.subsections_via_symbols
