	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_create_qp_eqs
_ocrdma_create_qp_eqs:                  ## @ocrdma_create_qp_eqs
	.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, %r12
	movq	16(%rdi), %rax
	movq	_BE_INTERRUPT_MODE_INTX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	24(%r12), %ebx
	subl	28(%r12), %ebx
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_min_t
	movl	%eax, %ebx
LBB0_3:
	leal	(,%rbx,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.5:
	movq	_OCRDMA_EQ_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_ocrdma_create_eq
	testl	%eax, %eax
	je	LBB0_11
LBB0_6:
	cmpl	$0, 4(%r12)
	jg	LBB0_17
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	movl	$0, %ecx
	je	LBB0_10
## %bb.8:
	negl	%ebx
	movq	%r12, %rdi
	callq	_ocrdma_destroy_qp_eqs
	movl	%ebx, %ecx
	jmp	LBB0_10
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_10
LBB0_11:
	movl	%ebx, %r14d
	shlq	$2, %r14
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%r15), %edi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_sprintf
	movq	8(%r12), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	callq	_ocrdma_get_irq
	movq	_ocrdma_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%r12), %r8
	movl	(%r8,%r15), %ecx
	addq	%r15, %r8
	movl	%eax, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	4(%r12)
	leaq	4(%r15), %r13
	cmpq	%r13, %r14
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	movq	8(%r12), %rax
	leaq	(%rax,%r15), %rsi
	addq	$4, %rsi
	movq	_OCRDMA_EQ_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ocrdma_create_eq
	movq	%r13, %r15
	testl	%eax, %eax
	je	LBB0_12
	jmp	LBB0_6
LBB0_17:
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	addq	8(%r12), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	__ocrdma_destroy_eq
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_INTERRUPT_MODE_INTX,8,3     ## @BE_INTERRUPT_MODE_INTX
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_u32,4,2                        ## @u32
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCRDMA_EQ_LEN,4,2              ## @OCRDMA_EQ_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ocrdma_qp%d-%d"

	.comm	_ocrdma_irq_handler,4,2         ## @ocrdma_irq_handler
	.no_dead_strip	_ocrdma_create_qp_eqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_create_qp_eqs
_ocrdma_create_qp_eqs:                  ; @ocrdma_create_qp_eqs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _BE_INTERRUPT_MODE_INTX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BE_INTERRUPT_MODE_INTX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	mov	w22, #1
	b	LBB0_3
LBB0_2:
	ldp	w8, w9, [x19, #24]
	sub	w20, w8, w9
Lloh6:
	adrp	x8, _u32@GOTPAGE
Lloh7:
	ldr	x8, [x8, _u32@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	bl	_num_online_cpus
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_min_t
	mov	x22, x0
	mov	x20, #0
LBB0_3:
	lsl	w0, w22, #2
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.4:
	cmp	w22, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x1, x0
Lloh12:
	adrp	x23, _OCRDMA_EQ_LEN@GOTPAGE
Lloh13:
	ldr	x23, [x23, _OCRDMA_EQ_LEN@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocrdma_create_eq
	cbz	w0, LBB0_10
LBB0_6:
	mov	w20, #0
	ldr	w8, [x19, #4]
	cmp	w8, #0
	b.gt	LBB0_15
; %bb.7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.8:
	neg	w20, w8
	mov	x0, x19
	bl	_ocrdma_destroy_qp_eqs
	b	LBB0_15
LBB0_9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_10:
	mov	w21, #0
	mov	x26, #0
	mov	w8, w22
	lsl	x24, x8, #2
Lloh20:
	adrp	x22, l_.str@PAGE
Lloh21:
	add	x22, x22, l_.str@PAGEOFF
Lloh22:
	adrp	x25, _ocrdma_irq_handler@GOTPAGE
Lloh23:
	ldr	x25, [x25, _ocrdma_irq_handler@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x26]
	ldr	w2, [x19]
	mov	x1, x22
	mov	x3, x21
	bl	_sprintf
	ldr	x8, [x19, #8]
	add	x1, x8, x26
	mov	x0, x19
	bl	_ocrdma_get_irq
	ldr	w1, [x25]
	ldr	x8, [x19, #8]
	add	x4, x8, x26
	ldr	w3, [x4]
	mov	x2, x20
	bl	_request_irq
	cbnz	w0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	add	x27, x26, #4
	cmp	x24, x27
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w21, w21, #1
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	add	x1, x8, #4
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocrdma_create_eq
	mov	x26, x27
	cbz	w0, LBB0_11
	b	LBB0_6
LBB0_14:
	mov	w20, #0
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x8, [x19, #8]
	add	x1, x8, x26
	mov	x0, x19
	bl	__ocrdma_destroy_eq
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_INTERRUPT_MODE_INTX,8,3     ; @BE_INTERRUPT_MODE_INTX
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_u32,4,2                        ; @u32
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCRDMA_EQ_LEN,4,2              ; @OCRDMA_EQ_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ocrdma_qp%d-%d"

	.comm	_ocrdma_irq_handler,4,2         ; @ocrdma_irq_handler
	.no_dead_strip	_ocrdma_create_qp_eqs
.subsections_via_symbols
