	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_qdma_irq_init
_fsl_qdma_irq_init:                     ## @fsl_qdma_irq_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_platform_get_irq_byname
	movq	%rax, (%r15)
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_fsl_qdma_error_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %r8
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.13:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, 8(%r15)
	jle	LBB0_11
## %bb.4:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edx
	callq	_sprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_get_irq_byname
	movq	%rax, %rbx
	movq	16(%r15), %rax
	movq	%rbx, (%rax,%r12,8)
	testq	%rbx, %rbx
	js	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_fsl_qdma_queue_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	leaq	L_.str.4(%rip), %r8
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%eax, %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r13d
	movq	16(%r15), %rax
	movl	(%rax,%r12,8), %ebx
	movl	%edx, %edi
	callq	_get_cpu_mask
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_irq_set_affinity_hint
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movslq	8(%r15), %rax
	xorl	%ebx, %ebx
	cmpq	%rax, %r12
	jl	LBB0_5
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_9:
	movl	%eax, %ebx
	movq	16(%r15), %rax
	movq	(%rax,%r12,8), %rcx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qdma-error"

	.comm	_fsl_qdma_error_handler,4,2     ## @fsl_qdma_error_handler
L_.str.1:                               ## @.str.1
	.asciz	"qDMA error"

L_.str.2:                               ## @.str.2
	.asciz	"Can't register qDMA controller IRQ.\n"

L_.str.3:                               ## @.str.3
	.asciz	"qdma-queue%d"

	.comm	_fsl_qdma_queue_handler,4,2     ## @fsl_qdma_queue_handler
L_.str.4:                               ## @.str.4
	.asciz	"qDMA queue"

L_.str.5:                               ## @.str.5
	.asciz	"Can't register qDMA queue IRQ.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Can't set cpu %d affinity to IRQ %d.\n"

	.no_dead_strip	_fsl_qdma_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_qdma_irq_init
_fsl_qdma_irq_init:                     ; @fsl_qdma_irq_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_platform_get_irq_byname
	mov	x21, x0
	str	x0, [x20]
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _fsl_qdma_error_handler@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fsl_qdma_error_handler@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x4, l_.str.1@PAGE
Lloh9:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_6
; %bb.2:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_dev_err
LBB0_4:
	ldr	x8, [sp, #40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.5:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x22, #0
Lloh15:
	adrp	x23, l_.str.3@PAGE
Lloh16:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh17:
	adrp	x26, _fsl_qdma_queue_handler@GOTPAGE
Lloh18:
	ldr	x26, [x26, _fsl_qdma_queue_handler@GOTPAGEOFF]
Lloh19:
	adrp	x24, l_.str.4@PAGE
Lloh20:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #20
	mov	x1, x23
	mov	x2, x22
	bl	_sprintf
	add	x1, sp, #20
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x1, x0
	ldr	x8, [x20, #16]
	str	x0, [x8, x22, lsl #3]
	tbnz	x0, #63, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x26]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w3, #0
	mov	x4, x24
	mov	x5, x20
	bl	_devm_request_irq
	cbnz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_num_online_cpus
	sdiv	w8, w22, w0
	msub	w25, w8, w0, w22
	ldr	x8, [x20, #16]
	ldr	x21, [x8, x22, lsl #3]
	mov	x0, x25
	bl	_get_cpu_mask
	mov	x1, x0
	mov	x0, x21
	bl	_irq_set_affinity_hint
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20, #8]
	cmp	x22, x8
	b.lt	LBB0_8
	b	LBB0_4
LBB0_12:
	mov	w21, #0
	b	LBB0_4
LBB0_13:
	mov	x21, x1
	b	LBB0_4
LBB0_14:
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_15:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x22, lsl #3]
	stp	x25, x8, [sp]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qdma-error"

	.comm	_fsl_qdma_error_handler,4,2     ; @fsl_qdma_error_handler
l_.str.1:                               ; @.str.1
	.asciz	"qDMA error"

l_.str.2:                               ; @.str.2
	.asciz	"Can't register qDMA controller IRQ.\n"

l_.str.3:                               ; @.str.3
	.asciz	"qdma-queue%d"

	.comm	_fsl_qdma_queue_handler,4,2     ; @fsl_qdma_queue_handler
l_.str.4:                               ; @.str.4
	.asciz	"qDMA queue"

l_.str.5:                               ; @.str.5
	.asciz	"Can't register qDMA queue IRQ.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Can't set cpu %d affinity to IRQ %d.\n"

	.no_dead_strip	_fsl_qdma_irq_init
.subsections_via_symbols
