	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_create_eqs
_ocrdma_create_eqs:                     ## @ocrdma_create_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	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), %r14
	movl	$1, %r12d
	jmp	LBB0_4
LBB0_2:
	movl	24(%r15), %ebx
	subl	28(%r15), %ebx
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_min_t
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	movl	%eax, %r12d
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.6:
	movq	_OCRDMA_EQ_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ocrdma_create_eq
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movl	%r12d, %eax
	shlq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r12), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_sprintf
	movq	8(%r15), %rsi
	addq	%r12, %rsi
	movq	%r15, %rdi
	callq	_ocrdma_get_irq
	movq	_ocrdma_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%r15), %r8
	movl	(%r8,%r12), %ecx
	addq	%r12, %r8
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	4(%r15)
	leaq	4(%r12), %r14
	xorl	%ebx, %ebx
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%r13d
	movq	8(%r15), %rax
	leaq	(%rax,%r12), %rsi
	addq	$4, %rsi
	movq	_OCRDMA_EQ_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ocrdma_create_eq
	movq	%r14, %r12
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
	jmp	LBB0_12
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ocrdma_destroy_eqs
	jmp	LBB0_12
	.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	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCRDMA_EQ_LEN,4,2              ## @OCRDMA_EQ_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ocrdma%d-%d"

	.comm	_ocrdma_irq_handler,4,2         ## @ocrdma_irq_handler
	.no_dead_strip	_ocrdma_create_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_eqs
_ocrdma_create_eqs:                     ; @ocrdma_create_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_4
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
	cbz	w0, LBB0_9
; %bb.3:
	mov	x22, x0
	mov	x20, #0
LBB0_4:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.5:
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.6:
	mov	x1, x0
Lloh12:
	adrp	x24, _OCRDMA_EQ_LEN@GOTPAGE
Lloh13:
	ldr	x24, [x24, _OCRDMA_EQ_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_ocrdma_create_eq
	cbz	w0, LBB0_12
LBB0_7:
	mov	w23, #0
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	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_12:
	mov	w21, #0
	mov	x27, #0
	mov	w8, w22
	lsl	x25, x8, #2
Lloh18:
	adrp	x22, l_.str@PAGE
Lloh19:
	add	x22, x22, l_.str@PAGEOFF
Lloh20:
	adrp	x26, _ocrdma_irq_handler@GOTPAGE
Lloh21:
	ldr	x26, [x26, _ocrdma_irq_handler@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x27]
	ldr	w2, [x19]
	mov	x1, x22
	mov	x3, x21
	bl	_sprintf
	ldr	x8, [x19, #8]
	add	x1, x8, x27
	mov	x0, x19
	bl	_ocrdma_get_irq
	ldr	w1, [x26]
	ldr	x8, [x19, #8]
	add	x4, x8, x27
	ldr	w3, [x4]
	mov	x2, x20
	bl	_request_irq
	cbnz	w0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	add	x23, x27, #4
	cmp	x25, x23
	b.eq	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w21, w21, #1
	ldr	x8, [x19, #8]
	add	x8, x8, x27
	add	x1, x8, #4
	ldr	w2, [x24]
	mov	x0, x19
	bl	_ocrdma_create_eq
	mov	x27, x23
	cbz	w0, LBB0_13
	b	LBB0_7
LBB0_16:
	mov	x23, x0
	mov	x0, x19
	bl	_ocrdma_destroy_eqs
	b	LBB0_11
	.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 AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.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	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCRDMA_EQ_LEN,4,2              ; @OCRDMA_EQ_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ocrdma%d-%d"

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